Skip to content

Commit

Permalink
A new API version 2021-10-01 on MS.Subscription (Azure#16687)
Browse files Browse the repository at this point in the history
* 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
2 people authored and LeiWang3 committed Mar 31, 2022
1 parent a877b65 commit c833e51
Show file tree
Hide file tree
Showing 16 changed files with 1,536 additions and 1 deletion.
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"
}
}
}
}
}
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
}
}
}
}
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"
}
}
}
}
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"
]
}
}
}
}
}
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"
}
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
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"
}
}
}
}
}
}
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
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
]
}
}
}
}
}
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
}
}
}
}
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
}
}
}
}
Loading

0 comments on commit c833e51

Please sign in to comment.