Deleted Servers - Recover

Recovers a deleted server.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}/recover?api-version=2021-11-01

URI Parameters

Name In Required Type Description
deletedServerName
path True

string

The name of the deleted server.

locationName
path True

string

The name of the region where the resource is located.

subscriptionId
path True

string

The subscription ID that identifies an Azure subscription.

api-version
query True

string

The API version to use for the request.

Responses

Name Type Description
200 OK

DeletedServer

Successfully recover the deleted server.

202 Accepted

Accepted

Other Status Codes

*** Error Responses: ***

  • 400 InvalidLocation - An invalid location was specified.

  • 404 SubscriptionNotFound - The requested subscription was not found.

  • 404 ResourceNotFound - The requested resource was not found.

  • 404 OperationIdNotFound - The operation with Id does not exist.

  • 404 OperationIdNotFound - The operation with Id does not exist.

  • 409 OperationCancelled - The operation has been cancelled by user.

  • 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.

  • 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.

  • 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.

  • 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.

  • 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.

Examples

Recover deleted server.

Sample Request

POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/japaneast/deletedServers/sqlcrudtest-d-1414/recover?api-version=2021-11-01

Sample Response

{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/japaneast/deletedServers/sqlcrudtest-d-1414",
  "name": "sqlcrudtest-d-1414",
  "type": "Microsoft.Sql/deletedServers",
  "properties": {
    "fullyQualifiedDomainName": "sqlcrudtest-d-1414.database.windows.net",
    "version": "12.0",
    "deletionTime": "2017-06-15T11:20:00.345Z",
    "originalId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/sqlcrudtest-d-1414"
  }
}

Definitions

DeletedServer

A deleted server.

Name Type Description
id

string

Resource ID.

name

string

Resource name.

properties.deletionTime

string

The deletion time of the deleted server.

properties.fullyQualifiedDomainName

string

The fully qualified domain name of the server.

properties.originalId

string

The original ID of the server before deletion.

properties.version

string

The version of the deleted server.

type

string

Resource type.