|
118 | 118 | }
|
119 | 119 | }
|
120 | 120 | },
|
| 121 | + "/providers/Microsoft.Subscription/subscriptionOperations/{operationId}": { |
| 122 | + "get": { |
| 123 | + "description": "Get the status of the pending Microsoft.Subscription API operations.", |
| 124 | + "operationId": "SubscriptionOperation_Get", |
| 125 | + "x-ms-examples": { |
| 126 | + "getPendingSubscriptionOperations": { |
| 127 | + "$ref": "./examples/getSubscriptionOperation.json" |
| 128 | + } |
| 129 | + }, |
| 130 | + "responses": { |
| 131 | + "200": { |
| 132 | + "description": "Successful completion of the asynchronous operation", |
| 133 | + "schema": { |
| 134 | + "$ref": "#/definitions/SubscriptionCreationResult" |
| 135 | + } |
| 136 | + }, |
| 137 | + "202": { |
| 138 | + "description": "Accepted. Subscription update is in progress.", |
| 139 | + "headers": { |
| 140 | + "Location": { |
| 141 | + "description": "The URL where the status of the asynchronous operation can be checked.", |
| 142 | + "type": "string" |
| 143 | + }, |
| 144 | + "Retry-After": { |
| 145 | + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", |
| 146 | + "type": "integer", |
| 147 | + "format": "int64" |
| 148 | + } |
| 149 | + } |
| 150 | + }, |
| 151 | + "default": { |
| 152 | + "description": "Error response describing why the operation failed.", |
| 153 | + "schema": { |
| 154 | + "$ref": "#/definitions/ErrorResponseBody" |
| 155 | + } |
| 156 | + } |
| 157 | + }, |
| 158 | + "parameters": [ |
| 159 | + { |
| 160 | + "name": "operationId", |
| 161 | + "in": "path", |
| 162 | + "description": "The operation ID, which can be found from the Location field in the generate recommendation response header.", |
| 163 | + "required": true, |
| 164 | + "type": "string" |
| 165 | + }, |
| 166 | + { |
| 167 | + "$ref": "#/parameters/apiVersionParameter" |
| 168 | + } |
| 169 | + ] |
| 170 | + } |
| 171 | + }, |
121 | 172 | "/providers/Microsoft.Subscription/operations": {
|
122 | 173 | "get": {
|
123 | 174 | "description": "Lists all of the available Microsoft.Subscription API operations.",
|
|
573 | 624 | }
|
574 | 625 | }
|
575 | 626 | },
|
| 627 | + "SubscriptionCreationResult": { |
| 628 | + "description": "The created subscription object.", |
| 629 | + "type": "object", |
| 630 | + "properties": { |
| 631 | + "subscriptionLink": { |
| 632 | + "description": "The link to the new subscription. Use this link to check the status of subscription creation operation.", |
| 633 | + "type": "string" |
| 634 | + } |
| 635 | + } |
| 636 | + }, |
576 | 637 | "SubscriptionName": {
|
577 | 638 | "type": "object",
|
578 | 639 | "description": "The new name of the subscription.",
|
|
0 commit comments