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 |
---|---|---|---|---|
deleted
|
path | True |
string |
The name of the deleted server. |
location
|
path | True |
string |
The name of the region where the resource is located. |
subscription
|
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 |
Successfully recover the deleted server. |
|
202 Accepted |
Accepted |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Recover deleted server.
Sample Request
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. |