{ "swagger": "2.0", "info": { "title": "ApiManagementClient", "description": "Resource provider operation status.", "version": "2024-05-01" }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationStatuses/{operationId}": { "get": { "operationId": "OperationStatus_Get", "description": "Returns the current status of an async operation.", "x-ms-examples": { "Get operation status": { "$ref": "./examples/ApiManagementGetOperationStatus.json" } }, "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter" } ], "responses": { "200": { "description": "Requested operation status", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationStatusResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationResults/{operationId}": { "get": { "tags": [ "OperationResults" ], "description": "Returns operation results for long running operations executing DELETE or PATCH on the resource.", "operationId": "OperationsResults_Get", "x-ms-examples": { "ApiManagementGetOperationResult": { "$ref": "./examples/ApiManagementGetOperationResult.json" } }, "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter" } ], "responses": { "200": { "description": "Successfully retrieved the operation result." }, "202": { "description": "The operation is still in progress.", "headers": { "Location": { "type": "string", "description": "URL for determining when an operation has completed." } } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } } } } }