-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DO NOT MERGE] Adding InstanceFailoverGroups (#2615)
* Adding instanceFailoverGroups swagger and examples * adding updated readme * Error descriptions changed in instanceFailoverGroup swagger
- Loading branch information
Showing
8 changed files
with
956 additions
and
0 deletions.
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
...icrosoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupCreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default", | ||
"locationName": "Japan East", | ||
"failoverGroupName": "failover-group-test-3", | ||
"api-version": "2017-10-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan West" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanEast/instanceFailoverGroups/failover-group-test-3", | ||
"name": "failover-group-test-3", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan West", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanEast/instanceFailoverGroups/failover-group-test-3", | ||
"name": "failover-group-test-3", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan West", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...anager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default", | ||
"locationName": "Japan East", | ||
"failoverGroupName": "failover-group-test-1", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "" | ||
}, | ||
"202": { | ||
"body": "" | ||
}, | ||
"204": { | ||
"body": "" | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...ager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupFailover.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default", | ||
"locationName": "Japan West", | ||
"failoverGroupName": "failover-group-test-3", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanWest/instanceFailoverGroups/failover-group-test-3", | ||
"name": "failover-group-test-3", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan East", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
.../preview/2017-10-01-preview/examples/InstanceFailoverGroupForceFailoverAllowDataLoss.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default", | ||
"locationName": "Japan West", | ||
"failoverGroupName": "failover-group-test-3", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanWest/instanceFailoverGroups/failover-group-test-3", | ||
"name": "failover-group-test-3", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan East", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...e-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default", | ||
"locationName": "Japan East", | ||
"failoverGroupName": "failover-group-test", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanEast/instanceFailoverGroups/failover-group-test-3", | ||
"name": "failover-group-test-3", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan West", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...-manager/Microsoft.Sql/preview/2017-10-01-preview/examples/InstanceFailoverGroupList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default", | ||
"locationName": "Japan East", | ||
"api-version": "2017-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanEast/instanceFailoverGroups/failover-group-test", | ||
"name": "failover-group-test", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan West", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanEast/instanceFailoverGroups/failover-group-test-1", | ||
"name": "failover-group-test-1", | ||
"type": "Microsoft.Sql/locations/failoverGroups", | ||
"properties": { | ||
"readWriteEndpoint": { | ||
"failoverPolicy": "Automatic", | ||
"failoverWithDataLossGracePeriodMinutes": 480 | ||
}, | ||
"readOnlyEndpoint": { | ||
"failoverPolicy": "Disabled" | ||
}, | ||
"replicationRole": "Primary", | ||
"replicationState": "CATCH_UP", | ||
"partnerRegions": [ | ||
{ | ||
"location":"Japan West", | ||
"replicationRole":"Secondary" | ||
} | ||
], | ||
"managedInstancePairs": [ | ||
{ | ||
"primaryManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance-1", | ||
"partnerManagedInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance-1" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.