Skip to content

Commit b0b657c

Browse files
authored
[SavingsPlan] Update 2023-04-01 billing swagger with SavingsPlan API paths (#22458)
1 parent 65e9efe commit b0b657c

12 files changed

+2271
-1
lines changed

specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json

Lines changed: 1220 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"parameters": {
3+
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
4+
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000",
5+
"api-version": "2023-04-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
13+
"name": "30000000-0000-0000-0000-000000000000",
14+
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
15+
"sku": {
16+
"name": "Compute_Savings_Plan"
17+
},
18+
"properties": {
19+
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
20+
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
21+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
22+
"billingPlan": "P1M",
23+
"commitment": {
24+
"grain": "Hourly",
25+
"currencyCode": "USD",
26+
"amount": 0.001
27+
},
28+
"renew": false,
29+
"appliedScopeType": "Shared",
30+
"displayName": "SP1",
31+
"provisioningState": "Succeeded",
32+
"term": "P3Y",
33+
"displayProvisioningState": "Succeeded",
34+
"userFriendlyAppliedScopeType": "Shared",
35+
"expiryDateTime": "2026-01-20T02:36:22.3394755Z",
36+
"purchaseDateTime": "2023-01-20T02:34:38.1261695Z",
37+
"benefitStartTime": "2023-01-20T02:36:22.3394755Z",
38+
"effectiveDateTime": "2023-01-20T02:36:25.0894669Z",
39+
"utilization": {
40+
"trend": "SAME",
41+
"aggregates": [
42+
{
43+
"grain": 1.0,
44+
"grainUnit": "days",
45+
"value": 0,
46+
"valueUnit": "percentage"
47+
},
48+
{
49+
"grain": 7.0,
50+
"grainUnit": "days",
51+
"value": 0,
52+
"valueUnit": "percentage"
53+
},
54+
{
55+
"grain": 30.0,
56+
"grainUnit": "days",
57+
"value": 0,
58+
"valueUnit": "percentage"
59+
}
60+
]
61+
}
62+
}
63+
}
64+
]
65+
}
66+
}
67+
}
68+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
4+
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000",
5+
"savingsPlanId": "30000000-0000-0000-0000-000000000000",
6+
"api-version": "2023-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
12+
"name": "30000000-0000-0000-0000-000000000000",
13+
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
14+
"sku": {
15+
"name": "Compute_Savings_Plan"
16+
},
17+
"properties": {
18+
"billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000",
19+
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
20+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
21+
"billingPlan": "P1M",
22+
"appliedScopeProperties": {
23+
"tenantId": "70000000-0000-0000-0000-000000000000",
24+
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg",
25+
"displayName": "TestRg"
26+
},
27+
"commitment": {
28+
"grain": "Hourly",
29+
"currencyCode": "USD",
30+
"amount": 0.001
31+
},
32+
"renew": false,
33+
"appliedScopeType": "ManagementGroup",
34+
"displayName": "SP1",
35+
"provisioningState": "Succeeded",
36+
"term": "P3Y",
37+
"displayProvisioningState": "NoBenefit",
38+
"userFriendlyAppliedScopeType": "ManagementGroup",
39+
"expiryDateTime": "2025-11-16T02:25:11.7183866Z",
40+
"purchaseDateTime": "2022-11-16T02:23:21.3864783Z",
41+
"benefitStartTime": "2022-11-16T02:25:11.7183866Z",
42+
"effectiveDateTime": "2022-12-16T01:35:36.2909462Z",
43+
"utilization": {
44+
"trend": "SAME",
45+
"aggregates": [
46+
{
47+
"grain": 1.0,
48+
"grainUnit": "days",
49+
"value": 0.0,
50+
"valueUnit": "percentage"
51+
},
52+
{
53+
"grain": 7.0,
54+
"grainUnit": "days",
55+
"value": 0.0,
56+
"valueUnit": "percentage"
57+
},
58+
{
59+
"grain": 30.0,
60+
"grainUnit": "days",
61+
"value": 0.0,
62+
"valueUnit": "percentage"
63+
}
64+
]
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"parameters": {
3+
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
4+
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000",
5+
"savingsPlanId": "30000000-0000-0000-0000-000000000000",
6+
"api-version": "2023-04-01",
7+
"$expand": "renewProperties"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
13+
"name": "30000000-0000-0000-0000-000000000000",
14+
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans",
15+
"sku": {
16+
"name": "Compute_Savings_Plan"
17+
},
18+
"properties": {
19+
"billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000",
20+
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
21+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD",
22+
"billingPlan": "P1M",
23+
"appliedScopeProperties": {
24+
"tenantId": "70000000-0000-0000-0000-000000000000",
25+
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg",
26+
"displayName": "TestRg"
27+
},
28+
"commitment": {
29+
"grain": "Hourly",
30+
"currencyCode": "USD",
31+
"amount": 0.001
32+
},
33+
"renew": false,
34+
"appliedScopeType": "ManagementGroup",
35+
"displayName": "SP1",
36+
"provisioningState": "Succeeded",
37+
"term": "P3Y",
38+
"displayProvisioningState": "NoBenefit",
39+
"userFriendlyAppliedScopeType": "ManagementGroup",
40+
"expiryDateTime": "2025-11-16T02:25:11.7183866Z",
41+
"purchaseDateTime": "2022-11-16T02:23:21.3864783Z",
42+
"benefitStartTime": "2022-11-16T02:25:11.7183866Z",
43+
"effectiveDateTime": "2022-12-16T01:35:36.2909462Z",
44+
"utilization": {
45+
"trend": "SAME",
46+
"aggregates": [
47+
{
48+
"grain": 1.0,
49+
"grainUnit": "days",
50+
"value": 0.0,
51+
"valueUnit": "percentage"
52+
},
53+
{
54+
"grain": 7.0,
55+
"grainUnit": "days",
56+
"value": 0.0,
57+
"valueUnit": "percentage"
58+
},
59+
{
60+
"grain": 30.0,
61+
"grainUnit": "days",
62+
"value": 0.0,
63+
"valueUnit": "percentage"
64+
}
65+
]
66+
},
67+
"renewProperties": {
68+
"purchaseProperties": {
69+
"sku": {
70+
"name": "Compute_Savings_Plan"
71+
},
72+
"properties": {
73+
"billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000",
74+
"term": "P3Y",
75+
"billingPlan": "Monthly",
76+
"displayName": "SP1_renewed",
77+
"appliedScopeType": "ManagementGroup",
78+
"appliedScopeProperties": {
79+
"tenantId": "70000000-0000-0000-0000-000000000000",
80+
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg"
81+
},
82+
"commitment": {
83+
"grain": "Hourly",
84+
"currencyCode": "USD",
85+
"amount": 0.001
86+
}
87+
}
88+
}
89+
}
90+
}
91+
}
92+
}
93+
}
94+
}

0 commit comments

Comments
 (0)