Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds storage account Quick Failover API #4457

Merged
merged 1 commit into from
Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res4228",
"accountName": "sto2434",
"api-version": "2018-07-01",
"monitor": "true"
},
"responses": {
"200": {
"body": ""
},
"202": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,46 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover": {
"post": {
"tags": [
"StorageAccounts"
],
"operationId": "StorageAccounts_Failover",
"description": "Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover.",
"x-ms-examples": {
"StorageAccountCreate": {
"$ref": "./examples/StorageAccountFailover.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/StorageAccountName"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK -- Returned when the storage account failover is completed, and the secondary cluster has become primary."
},
"202": {
"description": "Accepted -- Failover request accepted; operation will complete asynchronously."
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1377,6 +1417,12 @@
"type": "boolean",
"x-ms-client-name": "IsHnsEnabled",
"description": "Account HierarchicalNamespace enabled if sets to true."
},
"failoverInProgress": {
"type": "boolean",
"x-ms-client-name": "FailoverInProgress ",
"description": "If the failover is in progress, the value will be true, otherwise, it will be null.",
"readOnly": true
}
},
"description": "Properties of the storage account."
Expand Down