|
15 | 15 | "produces": [ |
16 | 16 | "application/json" |
17 | 17 | ], |
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 | | - }, |
36 | 18 | "paths": { |
37 | 19 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover": { |
38 | 20 | "post": { |
|
43 | 25 | "operationId": "ManagedInstances_Failover", |
44 | 26 | "parameters": [ |
45 | 27 | { |
46 | | - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 28 | + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" |
47 | 29 | }, |
48 | 30 | { |
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" |
56 | 36 | }, |
57 | 37 | { |
58 | 38 | "name": "replicaType", |
|
68 | 48 | "name": "ReplicaType", |
69 | 49 | "modelAsString": true |
70 | 50 | } |
| 51 | + }, |
| 52 | + { |
| 53 | + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" |
| 54 | + }, |
| 55 | + { |
| 56 | + "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" |
71 | 57 | } |
72 | 58 | ], |
73 | 59 | "responses": { |
74 | 60 | "200": { |
75 | 61 | "description": "Successfully completed managed instance failover." |
76 | 62 | }, |
| 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 | + }, |
77 | 66 | "202": { |
78 | 67 | "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." |
82 | 68 | } |
83 | 69 | }, |
84 | 70 | "x-ms-long-running-operation": true, |
|
91 | 77 | } |
92 | 78 | }, |
93 | 79 | "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 | + } |
110 | 90 | } |
111 | | - }, |
112 | | - "responses": {} |
| 91 | + } |
113 | 92 | } |
0 commit comments