forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A new API version 2021-10-01 on MS.Subscription (Azure#16687)
* Copied the last item from private repo and renamed to 2021-10-01 * Updated the version to 2021-10-01 * Error response is updated. It is required by OpenAPI Validation Tools(linter) * http status response on post method is updated to 201 from 202; required by OpenAPI Validation Tools(linter) * description is added in #definitions.Operation.properties.display; required by OpenAPI Validation Tools(linter) * updated error response to match it previous * systemData properties are added; required by Swagger validation on the PR * updated readme.md for the new version * removed a file getSubscriptionOperation.json as long as it is not referenced; required by Swagger Avocado on the PR * Modified style by npm prettier * executed npm run prettier; required by prettier check on PR * added type:object; required by swagger LintDiff * added type:object; required by swagger LintDiff * reverted back the post response of acceptOwnership to 202 * http status response on post method is updated to 201 from 202; required by OpenAPI Validation Tools(linter) * reverted back the post response of acceptOwnership to 202 Co-authored-by: Ochi <ochisamand@microsoft.com>
- Loading branch information
Showing
16 changed files
with
1,536 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...urce-manager/Microsoft.Subscription/stable/2021-10-01/examples/acceptOwnershipStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", | ||
"acceptOwnershipState": "Pending", | ||
"billingOwner": "abc@test.com", | ||
"subscriptionTenantId": "6c541ca7-1cab-4ea0-adde-6305e1d534e2", | ||
"displayName": "Test Subscription", | ||
"tags": { | ||
"tag1": "TagValue1" | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...anager/Microsoft.Subscription/stable/2021-10-01/examples/acceptSubscriptionOwnership.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", | ||
"api-version": "2021-10-01", | ||
"body": { | ||
"properties": { | ||
"displayName": "Test Subscription", | ||
"managementGroupId": null, | ||
"tags": { | ||
"tag1": "Messi", | ||
"tag2": "Ronaldo", | ||
"tag3": "Lebron" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/providers/Microsoft.Subscription/subscriptionOperations/ODdmYTU0MDktODc5YS00ZTEzLTg2MWItNTQ4ZjYxNzBlOTQw?api-version=2021-10-01", | ||
"Retry-After": 8 | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...esource-manager/Microsoft.Subscription/stable/2021-10-01/examples/cancelSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad", | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": "83aa47df-e3e9-49ff-877b-94304bf3d3ad" | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...esource-manager/Microsoft.Subscription/stable/2021-10-01/examples/changeTenantPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-01", | ||
"body": { | ||
"blockSubscriptionsLeavingTenant": true, | ||
"blockSubscriptionsIntoTenant": true, | ||
"exemptedPrincipals": [ | ||
"e879cf0f-2b4d-5431-109a-f72fc9868693", | ||
"9792da87-c97b-410d-a97d-27021ba09ce6" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "providers/Microsoft.Subscription/policies/default", | ||
"name": "default", | ||
"type": "providers/Microsoft.Subscription/policies", | ||
"properties": { | ||
"policyId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", | ||
"blockSubscriptionsLeavingTenant": true, | ||
"blockSubscriptionsIntoTenant": true, | ||
"exemptedPrincipals": [ | ||
"e879cf0f-2b4d-5431-109a-f72fc9868693", | ||
"9792da87-c97b-410d-a97d-27021ba09ce6" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...ption/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/createAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"parameters": { | ||
"aliasName": "aliasForNewSub", | ||
"api-version": "2021-10-01", | ||
"body": { | ||
"properties": { | ||
"displayName": "Test Subscription", | ||
"workload": "Production", | ||
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH", | ||
"subscriptionId": null, | ||
"additionalProperties": { | ||
"managementGroupId": null, | ||
"subscriptionTenantId": "66f6e4d6-07dc-4aea-94ea-e12d3026a3c8", | ||
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c", | ||
"tags": { | ||
"tag1": "Messi", | ||
"tag2": "Ronaldo", | ||
"tag3": "Lebron" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072", | ||
"displayName": "Test Subscription", | ||
"provisioningState": "Accepted", | ||
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership", | ||
"acceptOwnershipState": "Pending", | ||
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH", | ||
"workload": "Production", | ||
"resellerId": null, | ||
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c", | ||
"managementGroupId": null, | ||
"tags": { | ||
"tag1": "Messi", | ||
"tag2": "Ronaldo", | ||
"tag3": "Lebron" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072", | ||
"displayName": "Test Subscription", | ||
"provisioningState": "Accepted", | ||
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership", | ||
"acceptOwnershipState": "Pending", | ||
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH", | ||
"workload": "Production", | ||
"resellerId": null, | ||
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c", | ||
"managementGroupId": null, | ||
"tags": { | ||
"tag1": "Messi", | ||
"tag2": "Ronaldo", | ||
"tag3": "Lebron" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ption/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/deleteAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"aliasName": "aliasForNewSub", | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...esource-manager/Microsoft.Subscription/stable/2021-10-01/examples/enableSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d", | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": "7948bcee-488c-47ce-941c-38e20ede803d" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...cription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"aliasName": "aliasForNewSub", | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072", | ||
"displayName": "Test Subscription", | ||
"provisioningState": "Accepted", | ||
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership", | ||
"acceptOwnershipState": "Pending", | ||
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH", | ||
"workload": "Production", | ||
"resellerId": null, | ||
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c", | ||
"managementGroupId": null, | ||
"tags": { | ||
"tag1": "Messi", | ||
"tag2": "Ronaldo", | ||
"tag3": "Lebron" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ce-manager/Microsoft.Subscription/stable/2021-10-01/examples/getBillingAccountPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"billingAccountId": "testBillingAccountId", | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Subscription/Policies/policyForBillingAccount", | ||
"name": "testBillingAccountId", | ||
"type": "Microsoft.Subscription/policies", | ||
"properties": { | ||
"serviceTenants": [ | ||
{ | ||
"tenantName": "testServiceTenant", | ||
"tenantId": "b8ed2088-c458-4e77-bd61-9e048d96a1c0" | ||
} | ||
], | ||
"allowTransfers": true | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ion/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getOperations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Subscription/createOperation/action", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft Subscription", | ||
"resource": "Resources", | ||
"operation": "Create a subscription" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...n/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getTenantPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "providers/Microsoft.Subscription/policies/default", | ||
"name": "default", | ||
"type": "providers/Microsoft.Subscription/policies", | ||
"properties": { | ||
"policyId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", | ||
"blockSubscriptionsLeavingTenant": true, | ||
"blockSubscriptionsIntoTenant": true, | ||
"exemptedPrincipals": [ | ||
"e879cf0f-2b4d-5431-109a-f72fc9868693", | ||
"9792da87-c97b-410d-a97d-27021ba09ce6" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...source-manager/Microsoft.Subscription/stable/2021-10-01/examples/getTenantPolicyList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Subscription/policies/default", | ||
"name": "default", | ||
"type": "providers/Microsoft.Subscription/policies", | ||
"properties": { | ||
"policyId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", | ||
"blockSubscriptionsLeavingTenant": true, | ||
"blockSubscriptionsIntoTenant": true, | ||
"exemptedPrincipals": [ | ||
"e879cf0f-2b4d-5431-109a-f72fc9868693", | ||
"9792da87-c97b-410d-a97d-27021ba09ce6" | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
...ription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/listAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072", | ||
"displayName": "Test Subscription", | ||
"provisioningState": "Accepted", | ||
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership", | ||
"acceptOwnershipState": "Pending", | ||
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH", | ||
"workload": "Production", | ||
"resellerId": null, | ||
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c", | ||
"managementGroupId": null, | ||
"tags": { | ||
"tag1": "Messi", | ||
"tag2": "Ronaldo", | ||
"tag3": "Lebron" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "string", | ||
"name": "string", | ||
"type": "string", | ||
"properties": { | ||
"subscriptionId": "091c6e56-a835-4422-a082-0427308ca9ee", | ||
"displayName": "Test Subscription 2", | ||
"provisioningState": "Accepted", | ||
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/091c6e56-a835-4422-a082-0427308ca9ee/acceptOwnership", | ||
"acceptOwnershipState": "Pending", | ||
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH", | ||
"workload": "Production", | ||
"resellerId": null, | ||
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c", | ||
"managementGroupId": null, | ||
"tags": { | ||
"tag1": "Messi2", | ||
"tag2": "Ronaldo2", | ||
"tag3": "Lebron2" | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.