{ "swagger": "2.0", "info": { "title": "OperationsClient", "version": "2025-04-01", "description": "Use these APIs to create extension resources through ARM, for Kubernetes Clusters.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" } ] }, "schemes": [ "https" ], "host": "management.azure.com", "produces": [ "application/json" ], "consumes": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, "tags": [ { "name": "Operations" }, { "name": "Operations in a Cluster" } ], "paths": { "/providers/Microsoft.KubernetesConfiguration/operations": { "get": { "operationId": "Operations_List", "tags": [ "Operations" ], "description": "List all the available operations the KubernetesConfiguration resource provider supports.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ResourceProviderOperationList" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "BatchAccountDelete": { "$ref": "./examples/OperationsList.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/operations": { "get": { "operationId": "OperationStatus_List", "tags": [ "Operations in a Cluster" ], "description": "List Async Operations, currently in progress, in a 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" }, { "name": "clusterRp", "in": "path", "description": "The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.", "required": true, "type": "string" }, { "name": "clusterResourceName", "in": "path", "description": "The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters, appliances.", "required": true, "type": "string" }, { "name": "clusterName", "in": "path", "description": "The name of the kubernetes cluster.", "required": true, "type": "string" } ], "responses": { "200": { "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/OperationStatusList" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AsyncOperationStatus List": { "$ref": "./examples/ListAsyncOperationStatus.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } } }, "definitions": { "OperationStatusList": { "type": "object", "description": "The async operations in progress, in the cluster.", "properties": { "value": { "type": "array", "description": "List of async operations in progress, in the cluster.", "items": { "$ref": "#/definitions/OperationStatusResult" }, "readOnly": true }, "nextLink": { "type": "string", "description": "URL to get the next set of Operation Result objects, if any.", "readOnly": true } } }, "OperationStatusResult": { "type": "object", "description": "The current status of an async operation.", "properties": { "id": { "type": "string", "description": "Fully qualified ID for the async operation." }, "name": { "type": "string", "description": "Name of the async operation." }, "status": { "type": "string", "description": "Operation status." }, "properties": { "type": "object", "description": "Additional information, if available.", "x-nullable": true, "additionalProperties": { "type": "string" } }, "error": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail", "description": "If present, details of the operation error.", "x-nullable": true, "readOnly": true } }, "required": [ "status" ] }, "ResourceProviderOperation": { "type": "object", "description": "Supported operation of this resource provider.", "properties": { "name": { "type": "string", "description": "Operation name, in format of {provider}/{resource}/{operation}" }, "display": { "$ref": "#/definitions/ResourceProviderOperationDisplay", "description": "Display metadata associated with the operation." }, "isDataAction": { "type": "boolean", "description": "The flag that indicates whether the operation applies to data plane.", "readOnly": true }, "origin": { "type": "string", "description": "Origin of the operation", "readOnly": true } } }, "ResourceProviderOperationDisplay": { "type": "object", "description": "Display metadata associated with the operation.", "properties": { "provider": { "type": "string", "description": "Resource provider: Microsoft KubernetesConfiguration." }, "resource": { "type": "string", "description": "Resource on which the operation is performed." }, "operation": { "type": "string", "description": "Type of operation: get, read, delete, etc." }, "description": { "type": "string", "description": "Description of this operation." } } }, "ResourceProviderOperationList": { "type": "object", "description": "Result of the request to list operations.", "properties": { "value": { "type": "array", "description": "List of operations supported by this resource provider.", "items": { "$ref": "#/definitions/ResourceProviderOperation" }, "readOnly": true, "x-ms-identifiers": [ "name" ] }, "nextLink": { "type": "string", "description": "URL to the next set of results, if any.", "readOnly": true } } } }, "parameters": {} }