{ "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": "RecoverableDatabases" } ], "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases": { "get": { "operationId": "RecoverableDatabases_ListByServer", "tags": [ "RecoverableDatabases" ], "description": "Gets a list of recoverable databases.", "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/RecoverableDatabaseListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "Get list of recoverable databases.": { "$ref": "./examples/RecoverableDatabaseList.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName}": { "get": { "operationId": "RecoverableDatabases_Get", "tags": [ "RecoverableDatabases" ], "description": "Gets a recoverable database.", "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" }, { "name": "databaseName", "in": "path", "description": "The name of the database.", "required": true, "type": "string" }, { "name": "$expand", "in": "query", "description": "The child resources to include in the response.", "required": false, "type": "string" }, { "name": "$filter", "in": "query", "description": "An OData filter expression that filters elements in the collection.", "required": false, "type": "string" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/RecoverableDatabase" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "Get a recoverable database.": { "$ref": "./examples/RecoverableDatabaseGet.json" }, "Gets a recoverable database with expand equals keys.": { "$ref": "./examples/RecoverableDatabaseGetWithExpandEqualsKeys.json" } } } } }, "definitions": { "RecoverableDatabase": { "type": "object", "description": "A recoverable database resource.", "properties": { "properties": { "$ref": "#/definitions/RecoverableDatabaseProperties", "description": "Resource properties.", "x-ms-client-flatten": true } }, "allOf": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, "RecoverableDatabaseListResult": { "type": "object", "description": "The response of a RecoverableDatabase list operation.", "properties": { "value": { "type": "array", "description": "The RecoverableDatabase items on this page", "items": { "$ref": "#/definitions/RecoverableDatabase" } }, "nextLink": { "type": "string", "format": "uri", "description": "The link to the next page of items" } }, "required": [ "value" ] }, "RecoverableDatabaseProperties": { "type": "object", "description": "The recoverable database's properties.", "properties": { "edition": { "type": "string", "description": "The edition of the database.", "readOnly": true }, "serviceLevelObjective": { "type": "string", "description": "The service level objective name of the database.", "readOnly": true }, "elasticPoolName": { "type": "string", "description": "The elastic pool name of the database", "readOnly": true }, "lastAvailableBackupDate": { "type": "string", "format": "date-time", "description": "The last available backup date.", "readOnly": true }, "keys": { "type": "object", "description": "The resource ids of the user assigned identities to use", "additionalProperties": { "$ref": "./common.json#/definitions/DatabaseKey" } } } } }, "parameters": {} }