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 Operations Status Result #26456

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": "2023-10-02-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"operationId": "00000000-0000-0000-0000-000000000001"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/operations/00000000-0000-0000-0000-000000000001",
"name": "00000000-0000-0000-0000-000000000001",
"status": "InProgress",
"percentComplete": 40,
"startTime": "2023-07-26T12:14:26.3179428Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2023-10-02-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1",
"operationId": "00000000-0000-0000-0000-000000000001"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1/operations/00000000-0000-0000-0000-000000000001",
"name": "00000000-0000-0000-0000-000000000001",
"status": "InProgress",
"percentComplete": 40,
"startTime": "2023-07-26T12:14:26.3179428Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2023-10-02-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg1",
"resourceName": "clustername1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/operations/d11edb09-6e27-429f-9fe5-17baf773bc4a",
"name": "d11edb09-6e27-429f-9fe5-17baf773bc4a",
"status": "InProgress",
"percentComplete": 40,
"startTime": "2023-07-26T12:14:26.3179428Z"
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/operations/d11edb09-6e27-429f-9fe5-17baf773bc4b",
"name": "d11edb09-6e27-429f-9fe5-17baf773bc4b",
"status": "Failed",
"startTime": "2023-07-26T12:14:26.3179428Z",
"endTime": "2023-07-26T12:14:50.3179428Z",
"error": {
"code": "ReconcileAgentPoolIdentityError",
"message": "Reconcile agent pool nodepool1 identity failed"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2466,6 +2466,144 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations": {
"get": {
"tags": [
"OperationStatusResult"
],
"operationId": "OperationStatusResult_List",
"summary": "Gets a list of operations in the specified managedCluster",
"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/ResourceNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationStatusResultList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List of OperationStatusResult": {
"$ref": "./examples/OperationStatusResultList.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations/{operationId}": {
"get": {
"tags": [
"OperationStatusResult"
],
"operationId": "OperationStatusResult_Get",
"summary": "Get the status of a specific operation in the specified managed cluster.",
"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/ResourceNameParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/OperationIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get OperationStatusResult": {
"$ref": "./examples/OperationStatusResultGet.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/operations/{operationId}": {
"get": {
"tags": [
"OperationStatusResult"
],
"operationId": "OperationStatusResult_GetByAgentPool",
"summary": "Get the status of a specific operation in the specified agent pool.",
"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/ResourceNameParameter"
},
{
"$ref": "#/parameters/AgentPoolNameParameter"
},
{
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/OperationIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get OperationStatusResult": {
"$ref": "./examples/OperationStatusResultGetByAgentPool.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots": {
"get": {
"tags": [
Expand Down Expand Up @@ -8986,6 +9124,29 @@
"machineNames"
],
"description": "Specifies a list of machine names from the agent pool to be deleted."
},
"OperationStatusResultList": {
"description": "The operations list. It contains an URL link to get the next set of results.",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult"
},
"x-ms-identifiers": [
"name"
],
"description": "List of operations",
"readOnly": true
},
"nextLink": {
"type": "string",
"format": "uri",
"description": "URL to get the next set of operation list results (if there are any).",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down