Skip to content

Commit 8869dfe

Browse files
authored
Fix 2019-06-01-preview/FailoverManagedInstance.json (#11880)
1 parent a3ac641 commit 8869dfe

File tree

2 files changed

+28
-50
lines changed

2 files changed

+28
-50
lines changed

specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/FailoverManagedInstance.json

Lines changed: 26 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@
1515
"produces": [
1616
"application/json"
1717
],
18-
"security": [
19-
{
20-
"azure_auth": [
21-
"user_impersonation"
22-
]
23-
}
24-
],
25-
"securityDefinitions": {
26-
"azure_auth": {
27-
"type": "oauth2",
28-
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29-
"flow": "implicit",
30-
"description": "Azure Active Directory OAuth2 Flow",
31-
"scopes": {
32-
"user_impersonation": "impersonate your user account"
33-
}
34-
}
35-
},
3618
"paths": {
3719
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover": {
3820
"post": {
@@ -43,16 +25,14 @@
4325
"operationId": "ManagedInstances_Failover",
4426
"parameters": [
4527
{
46-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
28+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
4729
},
4830
{
49-
"$ref": "#/parameters/SubscriptionIdParameter"
50-
},
51-
{
52-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
53-
},
54-
{
55-
"$ref": "#/parameters/ManagedInstanceNameParameter"
31+
"name": "managedInstanceName",
32+
"in": "path",
33+
"description": "The name of the managed instance to failover.",
34+
"required": true,
35+
"type": "string"
5636
},
5737
{
5838
"name": "replicaType",
@@ -68,17 +48,23 @@
6848
"name": "ReplicaType",
6949
"modelAsString": true
7050
}
51+
},
52+
{
53+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
54+
},
55+
{
56+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
7157
}
7258
],
7359
"responses": {
7460
"200": {
7561
"description": "Successfully completed managed instance failover."
7662
},
63+
"default": {
64+
"description": "*** Error Responses: ***\n\n * 400 ManagedInstanceFailoverThrottled - There was a recent failover on the managed instance.\n\n * 400 ManagedInstanceFailoverNotSupportedOnSKU - This type of customer initiated failover is not supported on the given SKU.\n\n * 403 ManagedInstanceFailoverFullBackupMissing - Automated backup needs to complete the first full backup for a new database.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 ManagedInstanceNotInStateToFailover - The managed instance is currently in a state such that failover cannot be issued."
65+
},
7766
"202": {
7867
"description": "Managed instance failover is in progress."
79-
},
80-
"default": {
81-
"description": "*** Error Responses: ***\n\n * 400 ManagementServiceFeatureDisabled - User attempted to use a feature which is disabled.\n\n * 400 ManagedInstanceFailoverThrottled - There was a recent failover on the managed instance.\n\n * 400 ManagedInstanceFailoverNotSupportedOnSKU - This type of customer initiated failover is not supported on the given SKU.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 ManagedInstanceNotInStateToFailover - The managed instance is currently in a state such that failover cannot be issued."
8268
}
8369
},
8470
"x-ms-long-running-operation": true,
@@ -91,23 +77,16 @@
9177
}
9278
},
9379
"definitions": {},
94-
"parameters": {
95-
"SubscriptionIdParameter": {
96-
"name": "subscriptionId",
97-
"in": "path",
98-
"description": "The subscription ID that identifies an Azure subscription.",
99-
"required": true,
100-
"type": "string",
101-
"x-ms-parameter-location": "client"
102-
},
103-
"ManagedInstanceNameParameter": {
104-
"name": "managedInstanceName",
105-
"in": "path",
106-
"description": "The name of the managed instance.",
107-
"required": true,
108-
"type": "string",
109-
"x-ms-parameter-location": "method"
80+
"parameters": {},
81+
"securityDefinitions": {
82+
"azure_auth": {
83+
"type": "oauth2",
84+
"description": "Azure Active Directory OAuth2 Flow",
85+
"flow": "implicit",
86+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
87+
"scopes": {
88+
"user_impersonation": "impersonate your user account"
89+
}
11090
}
111-
},
112-
"responses": {}
91+
}
11392
}

specification/sql/resource-manager/readme.azureresourceschema.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ output-folder: $(azureresourceschema-folder)/schemas
2727

2828
# all the input files in this apiVersion
2929
input-file:
30-
- ./Microsoft.Sql/preview/2020-08-01-preview/databases.json
31-
- ./Microsoft.Sql/preview/2020-08-01-preview/elasticPools.json
32-
30+
- ./Microsoft.Sql/preview/2020-08-01-preview/Databases.json
31+
- ./Microsoft.Sql/preview/2020-08-01-preview/ElasticPools.json
3332
```
3433
3534
### Tag: schema-sql-2020-02-02-preview and azureresourceschema

0 commit comments

Comments
 (0)