Skip to content

Commit 2a4222b

Browse files
jbulsLeiWang3
authored andcommitted
Added billing subscription APIs in new 2021-10-01 version (Azure#16653)
* Ported Microsoft.Billing 20211001 to main * Prettier fixes for Microsoft.Billing 20211001 * Updated readme.cmd package-2021-10 * Deleted old replaced example
1 parent e3e83ea commit 2a4222b

17 files changed

+2038
-101
lines changed

specification/billing/resource-manager/Microsoft.Billing/stable/2021-10-01/billingSubscription.json

Lines changed: 1243 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"billingAccountName": "{billingAccountName}",
5+
"billingSubscriptionName": "418b0e9c-5dc3-4260-918f-30b90619fe07"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
11+
"name": "418b0e9c-5dc3-4260-918f-30b90619fe07",
12+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
13+
"properties": {
14+
"autoRenew": "Off",
15+
"billingFrequency": "P1M",
16+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
17+
"billingProfileDisplayName": "Contoso operations billing profile",
18+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
19+
"displayName": "Subscription 1",
20+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
21+
"invoiceSectionDisplayName": "Contoso operations invoice section",
22+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
23+
"lastMonthCharges": {
24+
"currency": "USD",
25+
"value": 5000.00
26+
},
27+
"monthToDateCharges": {
28+
"currency": "USD",
29+
"value": 600
30+
},
31+
"productCategory": "UsageBased",
32+
"productType": "Usage based",
33+
"productTypeId": "DZH318Z0BPS6",
34+
"purchaseDate": "2021-10-01T00:00:00Z",
35+
"quantity": 1,
36+
"skuId": "0001",
37+
"skuDescription": "Microsoft Azure Plan",
38+
"status": "Active",
39+
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"billingAccountName": "{billingAccountName}",
5+
"aliasName": "c356b7c7-7545-4686-b843-c1a49cf853fc"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/c356b7c7-7545-4686-b843-c1a49cf853fc",
11+
"name": "c356b7c7-7545-4686-b843-c1a49cf853fc",
12+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
13+
"properties": {
14+
"autoRenew": "Off",
15+
"billingFrequency": "P1M",
16+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
17+
"billingProfileDisplayName": "Contoso operations billing profile",
18+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
19+
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
20+
"displayName": "Subscription 1",
21+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
22+
"invoiceSectionDisplayName": "Contoso operations invoice section",
23+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
24+
"lastMonthCharges": {
25+
"currency": "USD",
26+
"value": 5000.00
27+
},
28+
"monthToDateCharges": {
29+
"currency": "USD",
30+
"value": 600
31+
},
32+
"productCategory": "UsageBased",
33+
"productType": "Usage based",
34+
"productTypeId": "DZH318Z0BPS6",
35+
"purchaseDate": "2021-10-01T00:00:00Z",
36+
"quantity": 1,
37+
"skuId": "0001",
38+
"skuDescription": "Microsoft Azure Plan",
39+
"status": "Active",
40+
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"billingAccountName": "{billingAccountName}"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/c356b7c7-7545-4686-b843-c1a49cf853fc",
12+
"name": "c356b7c7-7545-4686-b843-c1a49cf853fc",
13+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
14+
"properties": {
15+
"autoRenew": "Off",
16+
"billingFrequency": "P1M",
17+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
18+
"billingProfileDisplayName": "Contoso operations billing profile",
19+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
20+
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
21+
"displayName": "Subscription 1",
22+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
23+
"invoiceSectionDisplayName": "Contoso operations invoice section",
24+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
25+
"lastMonthCharges": {
26+
"currency": "USD",
27+
"value": 5000.00
28+
},
29+
"monthToDateCharges": {
30+
"currency": "USD",
31+
"value": 600
32+
},
33+
"productCategory": "UsageBased",
34+
"productType": "Usage Based",
35+
"productTypeId": "DZH318Z0BPS6",
36+
"purchaseDate": "2021-10-01T00:00:00Z",
37+
"quantity": 1,
38+
"skuId": "0001",
39+
"skuDescription": "Microsoft Azure Plan",
40+
"status": "Active",
41+
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
42+
}
43+
},
44+
{
45+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/ec16a54e-e8ad-4c14-8e87-e30e75fa800e",
46+
"name": "ec16a54e-e8ad-4c14-8e87-e30e75fa800e",
47+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
48+
"properties": {
49+
"autoRenew": "Off",
50+
"billingFrequency": "P1M",
51+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
52+
"billingProfileDisplayName": "Contoso operations billing profile",
53+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
54+
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/9e030ae5-51ed-4e02-8e17-d51b3aa55980",
55+
"displayName": "Subscription 2",
56+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
57+
"invoiceSectionDisplayName": "Contoso operations invoice section",
58+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
59+
"lastMonthCharges": {
60+
"currency": "USD",
61+
"value": 1000.00
62+
},
63+
"monthToDateCharges": {
64+
"currency": "USD",
65+
"value": 400
66+
},
67+
"productCategory": "UsageBased",
68+
"productType": "Usage based",
69+
"productTypeId": "DZH318Z0BPS6",
70+
"purchaseDate": "2021-10-01T00:00:00Z",
71+
"quantity": 1,
72+
"skuId": "0001",
73+
"skuDescription": "Microsoft Azure Plan",
74+
"status": "Active",
75+
"subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2"
76+
}
77+
},
78+
{
79+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptionAliases/2ee97fe0-efca-4960-a9af-98a30c2c497c",
80+
"name": "2ee97fe0-efca-4960-a9af-98a30c2c497c",
81+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptionAliases",
82+
"properties": {
83+
"autoRenew": "Off",
84+
"billingFrequency": "P1M",
85+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
86+
"billingProfileDisplayName": "Contoso operations billing profile",
87+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
88+
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
89+
"displayName": "Subscription 3",
90+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd0730",
91+
"invoiceSectionDisplayName": "Contoso operations invoice section",
92+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
93+
"lastMonthCharges": {
94+
"currency": "USD",
95+
"value": 6000.00
96+
},
97+
"monthToDateCharges": {
98+
"currency": "USD",
99+
"value": 900
100+
},
101+
"productCategory": "SeatBased",
102+
"productType": "Microsoft 365 Business Standard",
103+
"productTypeId": "CFQ7TTC0LDPB",
104+
"purchaseDate": "2021-08-01T00:12:49.7261677+00:00",
105+
"quantity": 4,
106+
"skuId": "0001",
107+
"skuDescription": "Microsoft 365 Business Standard",
108+
"status": "Active",
109+
"termDuration": "P1Y",
110+
"termStartDate": "2021-10-01T00:00:00Z",
111+
"termEndDate": "2022-09-30T00:00:00Z"
112+
}
113+
}
114+
]
115+
}
116+
}
117+
}
118+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"billingAccountName": "{billingAccountName}"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/418b0e9c-5dc3-4260-918f-30b90619fe07",
12+
"name": "418b0e9c-5dc3-4260-918f-30b90619fe07",
13+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
14+
"properties": {
15+
"autoRenew": "Off",
16+
"billingFrequency": "P1M",
17+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
18+
"billingProfileDisplayName": "Contoso operations billing profile",
19+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
20+
"displayName": "Subscription 1",
21+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
22+
"invoiceSectionDisplayName": "Contoso operations invoice section",
23+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
24+
"lastMonthCharges": {
25+
"currency": "USD",
26+
"value": 5000.00
27+
},
28+
"monthToDateCharges": {
29+
"currency": "USD",
30+
"value": 600
31+
},
32+
"productCategory": "UsageBased",
33+
"productType": "Usage based",
34+
"productTypeId": "DZH318Z0BPS6",
35+
"purchaseDate": "2021-10-01T00:00:00Z",
36+
"quantity": 1,
37+
"skuId": "0001",
38+
"skuDescription": "Microsoft Azure Plan",
39+
"status": "Active",
40+
"subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3"
41+
}
42+
},
43+
{
44+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/9e030ae5-51ed-4e02-8e17-d51b3aa55980",
45+
"name": "9e030ae5-51ed-4e02-8e17-d51b3aa55980",
46+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
47+
"properties": {
48+
"autoRenew": "Off",
49+
"billingFrequency": "P1M",
50+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
51+
"billingProfileDisplayName": "Contoso operations billing profile",
52+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
53+
"displayName": "Subscription 2",
54+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
55+
"invoiceSectionDisplayName": "Contoso operations invoice section",
56+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
57+
"lastMonthCharges": {
58+
"currency": "USD",
59+
"value": 1000.00
60+
},
61+
"monthToDateCharges": {
62+
"currency": "USD",
63+
"value": 400
64+
},
65+
"productCategory": "UsageBased",
66+
"productType": "Usage based",
67+
"productTypeId": "DZH318Z0BPS6",
68+
"purchaseDate": "2021-10-01T00:00:00Z",
69+
"quantity": 1,
70+
"skuId": "0001",
71+
"skuDescription": "Microsoft Azure Plan",
72+
"status": "Active",
73+
"subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2"
74+
}
75+
},
76+
{
77+
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}billingSubscriptions/7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
78+
"name": "7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
79+
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
80+
"properties": {
81+
"autoRenew": "Off",
82+
"billingFrequency": "P1M",
83+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
84+
"billingProfileDisplayName": "Contoso operations billing profile",
85+
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
86+
"displayName": "Subscription 3",
87+
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd0730",
88+
"invoiceSectionDisplayName": "Contoso operations invoice section",
89+
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
90+
"lastMonthCharges": {
91+
"currency": "USD",
92+
"value": 6000.00
93+
},
94+
"monthToDateCharges": {
95+
"currency": "USD",
96+
"value": 900
97+
},
98+
"productCategory": "SeatBased",
99+
"productType": "Microsoft 365 Business Standard",
100+
"productTypeId": "CFQ7TTC0LDPB",
101+
"purchaseDate": "2021-08-01T00:12:49.7261677+00:00",
102+
"quantity": 4,
103+
"skuId": "0001",
104+
"skuDescription": "Microsoft 365 Business Standard",
105+
"status": "Active",
106+
"termDuration": "P1Y",
107+
"termStartDate": "2021-10-01T00:00:00Z",
108+
"termEndDate": "2022-09-30T00:00:00Z"
109+
}
110+
}
111+
]
112+
}
113+
}
114+
}
115+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"billingAccountName": "{billingAccountName}",
5+
"billingSubscriptionName": "7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e"
6+
},
7+
"responses": {
8+
"200": {},
9+
"202": {
10+
"headers": {
11+
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/deleteBillingSubscription_7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e:f9bd2643-e786-4c93-9978-3c7f2d574580?api-version=2021-10-01",
12+
"Retry-After": "60"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}

0 commit comments

Comments
 (0)