Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aks fleet list credentials api #19559

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2022-06-02-preview",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"fleetName": "fleet"
},
"responses": {
"200": {
"body": {
"kubeconfigs": [
{
"name": "credentialName1",
"value": "credentialValue1"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,48 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/listCredentials": {
"post": {
serbrech marked this conversation as resolved.
Show resolved Hide resolved
"tags": [
"Fleets"
],
"operationId": "Fleets_ListCredentials",
"summary": "Lists the user credentials of a Fleet.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/FleetNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/FleetCredentialResults"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"List Fleet Credentials": {
"$ref": "./examples/Fleets_ListCredentialsResult.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -686,6 +728,40 @@
"description": "The provisioning state of the last accepted operation."
}
}
},
"FleetCredentialResults": {
"type": "object",
"properties": {
"kubeconfigs": {
"type": "array",
"x-ms-identifiers": [
"name"
],
"readOnly": true,
"items": {
"$ref": "#/definitions/FleetCredentialResult"
},
"description": "Base64-encoded Kubernetes configuration file."
}
},
"description": "The list credential result response."
},
"FleetCredentialResult": {
"type": "object",
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "The name of the credential."
},
"value": {
"type": "string",
"format": "byte",
"readOnly": true,
"description": "Base64-encoded Kubernetes configuration file."
}
},
"description": "The credential result response."
}
},
"parameters": {
Expand Down