|
46 | 46 | ] |
47 | 47 | } |
48 | 48 | }, |
| 49 | + "/providers/Microsoft.Subscription/subscriptionOperations/{operationId}": { |
| 50 | + "get": { |
| 51 | + "description": "Get the status of the pending Microsoft.Subscription API operations.", |
| 52 | + "operationId": "SubscriptionOperation_Get", |
| 53 | + "x-ms-examples": { |
| 54 | + "getPendingSubscriptionOperations": { |
| 55 | + "$ref": "./examples/getSubscriptionOperation.json" |
| 56 | + } |
| 57 | + }, |
| 58 | + "responses": { |
| 59 | + "200": { |
| 60 | + "description": "Successful completion of the asynchronous operation", |
| 61 | + "schema": { |
| 62 | + "$ref": "#/definitions/SubscriptionCreationResult" |
| 63 | + } |
| 64 | + }, |
| 65 | + "202": { |
| 66 | + "description": "Accepted. Subscription update is in progress.", |
| 67 | + "headers": { |
| 68 | + "Location": { |
| 69 | + "description": "The URL where the status of the asynchronous operation can be checked.", |
| 70 | + "type": "string" |
| 71 | + }, |
| 72 | + "Retry-After": { |
| 73 | + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", |
| 74 | + "type": "integer", |
| 75 | + "format": "int64" |
| 76 | + } |
| 77 | + } |
| 78 | + }, |
| 79 | + "default": { |
| 80 | + "description": "Error response describing why the operation failed.", |
| 81 | + "schema": { |
| 82 | + "$ref": "#/definitions/ErrorResponseBody" |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + "parameters": [ |
| 87 | + { |
| 88 | + "name": "operationId", |
| 89 | + "in": "path", |
| 90 | + "description": "The operation ID, which can be found from the Location field in the generate recommendation response header.", |
| 91 | + "required": true, |
| 92 | + "type": "string" |
| 93 | + }, |
| 94 | + { |
| 95 | + "$ref": "#/parameters/apiVersionParameter" |
| 96 | + } |
| 97 | + ] |
| 98 | + } |
| 99 | + }, |
49 | 100 | "/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountName}/providers/Microsoft.Subscription/createSubscription": { |
50 | 101 | "post": { |
51 | 102 | "description": "Creates an Azure subscription", |
|
166 | 217 | } |
167 | 218 | } |
168 | 219 | }, |
| 220 | + "ErrorResponseBody": { |
| 221 | + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", |
| 222 | + "type": "object", |
| 223 | + "properties": { |
| 224 | + "error": { |
| 225 | + "description": "The details of the error.", |
| 226 | + "$ref": "#/definitions/ErrorResponse" |
| 227 | + } |
| 228 | + } |
| 229 | + }, |
169 | 230 | "AdPrincipal": { |
170 | 231 | "description": "Active Directory Principal who’ll get owner access on the new subscription.", |
171 | 232 | "properties": { |
|
0 commit comments