{ "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": "ServerOperations" } ], "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/operations": { "get": { "operationId": "ServerOperations_ListByServer", "tags": [ "ServerOperations" ], "description": "Gets a list of operations performed on the server.", "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": "serverName", "in": "path", "description": "The name of the server.", "required": true, "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ServerOperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "List the server management operations": { "$ref": "./examples/ListServerOperations.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } } }, "definitions": { "ServerOperation": { "type": "object", "description": "A server operation.", "properties": { "properties": { "$ref": "#/definitions/ServerOperationProperties", "description": "Resource properties.", "x-ms-client-flatten": true } }, "allOf": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, "ServerOperationListResult": { "type": "object", "description": "The response of a ServerOperation list operation.", "properties": { "value": { "type": "array", "description": "The ServerOperation items on this page", "items": { "$ref": "#/definitions/ServerOperation" } }, "nextLink": { "type": "string", "format": "uri", "description": "The link to the next page of items" } }, "required": [ "value" ] }, "ServerOperationProperties": { "type": "object", "description": "The properties of a server operation.", "properties": { "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 }, "serverName": { "type": "string", "description": "The name of the server.", "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 }, "isUserError": { "type": "boolean", "description": "Whether or not the error is a user error.", "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": {} }