Disaster Recovery Configurations - List
Lists a server's disaster recovery configuration.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/disasterRecoveryConfiguration?api-version=2014-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
server
|
path | True |
string |
The name of the server. |
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 |
OK |
Examples
List Replication links
Sample request
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/disasterRecoveryConfiguration?api-version=2014-04-01
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/testdw/geoBackupPolicies/Default",
"name": "Default",
"location": "West US",
"type": "Microsoft.Sql/servers/disasterRecoveryConfigurations",
"properties": {
"status": "Ready",
"autoFailover": "On",
"failoverPolicy": "Automatic",
"partnerServerId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5962",
"logicalServerName": "sqlcrudtest-5961",
"partnerLogicalServerName": "sqlcrudtest-5962",
"role": "Primary"
}
}
]
}
Definitions
Name | Description |
---|---|
Disaster |
Represents a disaster recovery configuration. |
Disaster |
Whether or not failover can be done automatically. |
Disaster |
How aggressive the automatic failover should be. |
Disaster |
Represents the response to a List disaster recovery configuration request. |
Disaster |
The role of the current server in the disaster recovery configuration. |
Disaster |
The status of the disaster recovery configuration. |
DisasterRecoveryConfiguration
Represents a disaster recovery configuration.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
location |
string |
Location of the server that contains this disaster recovery configuration. |
name |
string |
Resource name. |
properties.autoFailover |
Whether or not failover can be done automatically. |
|
properties.failoverPolicy |
How aggressive the automatic failover should be. |
|
properties.logicalServerName |
string |
Logical name of the server. |
properties.partnerLogicalServerName |
string |
Logical name of the partner server. |
properties.partnerServerId |
string |
Id of the partner server. |
properties.role |
The role of the current server in the disaster recovery configuration. |
|
properties.status |
The status of the disaster recovery configuration. |
|
type |
string |
Type of resource this is. |
DisasterRecoveryConfigurationAutoFailover
Whether or not failover can be done automatically.
Name | Type | Description |
---|---|---|
Off |
string |
|
On |
string |
DisasterRecoveryConfigurationFailoverPolicy
How aggressive the automatic failover should be.
Name | Type | Description |
---|---|---|
Automatic |
string |
|
Manual |
string |
DisasterRecoveryConfigurationListResult
Represents the response to a List disaster recovery configuration request.
Name | Type | Description |
---|---|---|
value |
The list of disaster recovery configurations housed under the server. |
DisasterRecoveryConfigurationRole
The role of the current server in the disaster recovery configuration.
Name | Type | Description |
---|---|---|
None |
string |
|
Primary |
string |
|
Secondary |
string |
DisasterRecoveryConfigurationStatus
The status of the disaster recovery configuration.
Name | Type | Description |
---|---|---|
Creating |
string |
|
Dropping |
string |
|
FailingOver |
string |
|
Ready |
string |