Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Subscriptions 2021-01-01-privatepreview #14390

Closed
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@
"in": "path",
"required": true,
"type": "string",
"description": "Alias Name"
"description": "AliasName is the name for the subscription creation request. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation."
}
},
"security": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"api-version": "2021-01-01-privatepreview"
},
"responses": {
"200": {
"body": {
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"acceptOwnershipState": "Pending",
"billingOwner": "[email protected]",
"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-01-01-privatepreview",
"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-01-01-privatepreview",
"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-01-01-privatepreview"
},
"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-01-01-privatepreview",
"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-01-01-privatepreview",
"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,24 @@
{
"parameters": {
"billingAccountName": "2bc54a6f-8d8a-5be1-5bff-bb4f285f512b:11a72812-d9a4-446e-9a1e-70c8bcadf5c0_2019-05-31",
"customerName": "e33ba30d-3718-4b15-bfaa-5627a57cda6f",
"api-version": "2021-01-01-privatepreview",
"body": {
"displayName": "Contoso MCA subscription",
"skuId": "0001"
}
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Subscription/subscriptionOperations/MzcwYzI3MDItNjA1MC00NTZkLTgyMTgtZjM0NDcyMjkwMTY0?api-version=2019-10-01-preview",
"Retry-After": 8
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/d0d6ee57-6530-4fca-93a6-b755a070be35"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"enrollmentAccountName": "73f8ab6e-cfa0-42be-b886-be6e77c2980c",
"api-version": "2021-01-01-privatepreview",
"body": {
"offerType": "MS-AZR-0017P",
"displayName": "Test Ea Azure Sub",
"owners": [
{
"objectId": "973034ff-acb7-409c-b731-e789672c7b31"
},
{
"objectId": "67439a9e-8519-4016-a630-f5f805eba567"
}
],
"additionalParameters": {
"customData": {
"key1": "value1",
"key2": true
}
}
}
},
"responses": {
"202": {
"headers": {
"Location": "/providers/Microsoft.Subscription/subscriptionOperations/aeb76128-ebde-4f5a-a9ed-e7bbf2dbc994?api-version=2021-01-01-privatepreview",
"Retry-After": "60"
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/c03acf6e-5295-44c2-92d3-cb1daa4c701c"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"billingAccountName": "0aa27f2b-ec7f-5a65-71f6-a5ff0897bd55:ae0dae1e-de9a-41f6-8257-76b055d98372_2019-05-31",
"billingProfileName": "27VR-HDWX-BG7-TGB",
"invoiceSectionName": "JGF7-NSBG-PJA-TGB",
"api-version": "2021-01-01-privatepreview",
"body": {
"displayName": "Contoso MCA subscription",
"skuId": "0001",
"costCenter": "135366376",
"owner": {
"objectId": "973034ff-acb7-409c-b731-e789672c7b32"
},
"additionalParameters": {
"customData": {
"key1": "value1",
"key2": true
}
}
}
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Subscription/subscriptionOperations/ODdmYTU0MDktODc5YS00ZTEzLTg2MWItNTQ4ZjYxNzBlOTQw?api-version=2021-01-01-privatepreview",
"Retry-After": 8
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/d0d6ee57-6530-4fca-93a6-b755a070be35"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"aliasName": "aliasForNewSub",
"api-version": "2021-01-01-privatepreview"
},
"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-01-01-privatepreview"
},
"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-01-01-privatepreview"
},
"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,21 @@
{
"parameters": {
"billingAccountId": "testBillingAccountId",
"api-version": "2021-01-01-privatepreview"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Subscription/Policies/policyForBillingAccount",
"name": "testBillingAccountId",
"type": "Microsoft.Subscription/policies",
"properties": {
"serviceTenants": [
"testServiceTenant"
],
"allowTransfers": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2021-01-01-privatepreview"
},
"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,19 @@
{
"parameters": {
"operationId": "e4b8d068-f574-462a-a76f-6fa0afc613c9",
"api-version": "2021-01-01-privatepreview"
},
"responses": {
"202": {
"headers": {
"Location": "/providers/Microsoft.Subscription/subscriptionOperations/e4b8d068-f574-462a-a76f-6fa0afc613c9?api-version=2021-01-01-privatepreview",
"Retry-After": 8
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/4df8d5c2-1b7e-4dd5-bc61-640704bde633"
}
}
}
}
Loading