{ "swagger": "2.0", "info": { "title": "SqlManagementClient", "version": "2025-01-01", "description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.", "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": "InstancePoolOperations" } ], "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/operations": { "get": { "operationId": "InstancePoolOperations_ListByInstancePool", "tags": [ "InstancePoolOperations" ], "description": "Gets a list of operations performed on the instance pool.", "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/ResourceGroupNameParameter" }, { "name": "instancePoolName", "in": "path", "description": "The name of the instance pool to be retrieved.", "required": true, "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/InstancePoolOperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "List the instance pool management operations with no results": { "$ref": "./examples/ListInstancePoolOperationsEmpty.json" }, "List the instance pool management operations with some results": { "$ref": "./examples/ListInstancePoolOperations.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/operations/{operationId}": { "get": { "operationId": "InstancePoolOperations_Get", "tags": [ "InstancePoolOperations" ], "description": "Gets a management operation on a instance pool.", "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/ResourceGroupNameParameter" }, { "name": "instancePoolName", "in": "path", "description": "The name of the instance pool to be retrieved.", "required": true, "type": "string" }, { "name": "operationId", "in": "path", "description": "", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/InstancePoolOperation" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "Gets the instance pool management operation": { "$ref": "./examples/GetInstancePoolOperation.json" } } } } }, "definitions": { "InstancePoolOperation": { "type": "object", "description": "A instance pool operation.", "properties": { "properties": { "$ref": "#/definitions/InstancePoolOperationProperties", "description": "Resource properties.", "x-ms-client-flatten": true } }, "allOf": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, "InstancePoolOperationListResult": { "type": "object", "description": "The response of a InstancePoolOperation list operation.", "properties": { "value": { "type": "array", "description": "The InstancePoolOperation items on this page", "items": { "$ref": "#/definitions/InstancePoolOperation" } }, "nextLink": { "type": "string", "format": "uri", "description": "The link to the next page of items" } }, "required": [ "value" ] }, "InstancePoolOperationProperties": { "type": "object", "description": "The properties of a instance pool operation.", "properties": { "instancePoolName": { "type": "string", "description": "The name of the instance pool the operation is being performed on.", "readOnly": true }, "operation": { "type": "string", "description": "The name of operation.", "readOnly": true }, "operationFriendlyName": { "type": "string", "description": "The friendly name of operation.", "readOnly": true }, "percentComplete": { "type": "integer", "format": "int32", "description": "The percentage of the operation completed.", "readOnly": true }, "startTime": { "type": "string", "format": "date-time", "description": "The operation start time.", "readOnly": true }, "state": { "$ref": "./common.json#/definitions/ManagementOperationState", "description": "The operation state.", "readOnly": true }, "errorCode": { "type": "integer", "format": "int32", "description": "The operation error code.", "readOnly": true }, "errorDescription": { "type": "string", "description": "The operation error description.", "readOnly": true }, "errorSeverity": { "type": "integer", "format": "int32", "description": "The operation error severity.", "readOnly": true }, "errorType": { "$ref": "./common.json#/definitions/ErrorType", "description": "Error type (e.g. None, User).", "readOnly": true }, "estimatedCompletionTime": { "type": "string", "format": "date-time", "description": "The estimated completion time of the operation.", "readOnly": true }, "description": { "type": "string", "description": "The operation description.", "readOnly": true }, "isCancellable": { "type": "boolean", "description": "Whether the operation can be cancelled.", "readOnly": true } } } }, "parameters": {} }