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.
[Hub Generated] Review request for Microsoft.Consumption to add versi…
…on stable/2019-11-01 (Azure#12942) * Adds base for updating Microsoft.Consumption from version stable/2019-10-01 to version 2019-11-01 * Updates readme * Updates API version in new specs and examples * Fixing spell syntax error. * Fixin some types and adding description to ServiceInfo1 and ServiceInfo2 * Updating description of resourceId, serviceInfo1 and serviceInfo2 * Adding usage detail to the resourceId definition
- Loading branch information
Showing
88 changed files
with
10,492 additions
and
2 deletions.
There are no files selected for viewing
5,397 changes: 5,397 additions & 0 deletions
5,397
...ion/consumption/resource-manager/Microsoft.Consumption/stable/2019-11-01/consumption.json
Large diffs are not rendered by default.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
...ger/Microsoft.Consumption/stable/2019-11-01/examples/AggregatedCostByManagementGroup.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,47 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-11-01", | ||
"managementGroupId": "managementGroupForTest" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", | ||
"name": "aggregatedcostId1", | ||
"type": "Microsoft.Consumption/aggregatedcost", | ||
"properties": { | ||
"includedSubscriptions": [ | ||
"1caaa5a3-2b66-438e-8ab4-bce37d518c5d" | ||
], | ||
"excludedSubscriptions": [], | ||
"usageStart": "2019-11-01T00:00:00.0000000Z", | ||
"usageEnd": "2018-10-31T00:00:00.0000000Z", | ||
"azureCharges": 250.9876, | ||
"marketplaceCharges": 150.786, | ||
"chargesBilledSeparately": 120.345, | ||
"currency": "USD", | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", | ||
"name": "aggregatedcostId2", | ||
"type": "Microsoft.Consumption/aggregatedcost", | ||
"properties": { | ||
"includedSubscriptions": [ | ||
"c349567d-c83a-48c9-ab0e-578c69dc97a4" | ||
], | ||
"excludedSubscriptions": [], | ||
"usageStart": "2019-11-01T00:00:00.0000000Z", | ||
"usageEnd": "2018-10-31T00:00:00.0000000Z", | ||
"azureCharges": 150.0, | ||
"marketplaceCharges": 50.786, | ||
"chargesBilledSeparately": 30.345, | ||
"currency": "USD", | ||
"children": [] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...t.Consumption/stable/2019-11-01/examples/AggregatedCostByManagementGroupFilterByDate.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,48 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-11-01", | ||
"managementGroupId": "managementGroupForTest", | ||
"$filter": "usageStart ge '2018-08-15' and properties/usageStart le '2018-08-31'" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", | ||
"name": "aggregatedcostId1", | ||
"type": "Microsoft.Consumption/aggregatedcost", | ||
"properties": { | ||
"includedSubscriptions": [ | ||
"1caaa5a3-2b66-438e-8ab4-bce37d518c5d" | ||
], | ||
"excludedSubscriptions": [], | ||
"usageStart": "2018-08-15T00:00:00.0000000Z", | ||
"usageEnd": "2018-08-31T00:00:00.0000000Z", | ||
"azureCharges": 150.9876, | ||
"marketplaceCharges": 80.786, | ||
"chargesBilledSeparately": 90.345, | ||
"currency": "USD", | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", | ||
"name": "aggregatedcostId2", | ||
"type": "Microsoft.Consumption/aggregatedcost", | ||
"properties": { | ||
"includedSubscriptions": [ | ||
"c349567d-c83a-48c9-ab0e-578c69dc97a4" | ||
], | ||
"excludedSubscriptions": [], | ||
"usageStart": "2018-08-15T00:00:00.0000000Z", | ||
"usageEnd": "2018-08-31T00:00:00.0000000Z", | ||
"azureCharges": 50.0, | ||
"marketplaceCharges": 10.786, | ||
"chargesBilledSeparately": 30.345, | ||
"currency": "USD", | ||
"children": [] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...nsumption/stable/2019-11-01/examples/AggregatedCostForBillingPeriodByManagementGroup.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,40 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-11-01", | ||
"managementGroupId": "managementGroupForTest", | ||
"billingPeriodName": "201807" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1", | ||
"name": "aggregatedcostId1", | ||
"type": "Microsoft.Consumption/aggregatedcost", | ||
"properties": { | ||
"usageStart": "2018-07-01T00:00:00.0000000Z", | ||
"usageEnd": "2018-07-31T00:00:00.0000000Z", | ||
"azureCharges": 250.9876, | ||
"marketplaceCharges": 150.786, | ||
"chargesBilledSeparately": 120.345, | ||
"currency": "USD", | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2", | ||
"name": "aggregatedcostId2", | ||
"type": "Microsoft.Consumption/aggregatedcost", | ||
"properties": { | ||
"usageStart": "2018-07-01T00:00:00.0000000Z", | ||
"usageEnd": "2018-07-31T00:00:00.0000000Z", | ||
"azureCharges": 150.0, | ||
"marketplaceCharges": 50.786, | ||
"chargesBilledSeparately": 30.345, | ||
"currency": "USD", | ||
"children": [] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...ce-manager/Microsoft.Consumption/stable/2019-11-01/examples/BalancesByBillingAccount.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,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-11-01", | ||
"billingAccountId": "123456" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1", | ||
"name": "balanceId1", | ||
"type": "Microsoft.Consumption/balances", | ||
"properties": { | ||
"currency": "USD ", | ||
"beginningBalance": 3396469.19, | ||
"endingBalance": 2922371.02, | ||
"newPurchases": 0, | ||
"adjustments": 0, | ||
"utilized": 474098.17, | ||
"serviceOverage": 0, | ||
"chargesBilledSeparately": 0, | ||
"totalOverage": 0, | ||
"totalUsage": 474098.17, | ||
"azureMarketplaceServiceCharges": 609.82, | ||
"billingFrequency": "Month", | ||
"priceHidden": false, | ||
"newPurchasesDetails": [ | ||
{ | ||
"name": "Promo Purchase", | ||
"value": 1 | ||
} | ||
], | ||
"adjustmentDetails": [ | ||
{ | ||
"name": "Promo Credit", | ||
"value": 1.1 | ||
}, | ||
{ | ||
"name": "SIE Credit", | ||
"value": 1.0 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...soft.Consumption/stable/2019-11-01/examples/BalancesByBillingAccountForBillingPeriod.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,47 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-11-01", | ||
"billingAccountId": "123456", | ||
"billingPeriodName": "201702" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1", | ||
"name": "balanceId1", | ||
"type": "Microsoft.Consumption/balances", | ||
"properties": { | ||
"currency": "USD ", | ||
"beginningBalance": 3396469.19, | ||
"endingBalance": 2922371.02, | ||
"newPurchases": 0, | ||
"adjustments": 0, | ||
"utilized": 474098.17, | ||
"serviceOverage": 0, | ||
"chargesBilledSeparately": 0, | ||
"totalOverage": 0, | ||
"totalUsage": 474098.17, | ||
"azureMarketplaceServiceCharges": 609.82, | ||
"billingFrequency": "Month", | ||
"priceHidden": false, | ||
"newPurchasesDetails": [ | ||
{ | ||
"name": "Promo Purchase", | ||
"value": 1 | ||
} | ||
], | ||
"adjustmentDetails": [ | ||
{ | ||
"name": "Promo Credit", | ||
"value": 1.1 | ||
}, | ||
{ | ||
"name": "SIE Credit", | ||
"value": 1.0 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
...consumption/resource-manager/Microsoft.Consumption/stable/2019-11-01/examples/Budget.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,85 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-11-01", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "MYDEVTESTRG", | ||
"budgetName": "TestBudget", | ||
"scope": "subscriptions/00000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/TestBudget", | ||
"name": "TestBudget", | ||
"type": "Microsoft.Consumption/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "Cost", | ||
"amount": 100.65, | ||
"timeGrain": "Monthly", | ||
"timePeriod": { | ||
"startDate": "2017-10-01T00:00:00Z", | ||
"endDate": "2018-10-31T00:00:00Z" | ||
}, | ||
"filter": { | ||
"and": [ | ||
{ | ||
"dimensions": { | ||
"name": "ResourceId", | ||
"operator": "In", | ||
"values": [ | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" | ||
] | ||
} | ||
}, | ||
{ | ||
"tags": { | ||
"name": "category", | ||
"operator": "In", | ||
"values": [ | ||
"Dev", | ||
"Prod" | ||
] | ||
} | ||
}, | ||
{ | ||
"tags": { | ||
"name": "department", | ||
"operator": "In", | ||
"values": [ | ||
"engineering", | ||
"sales" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"currentSpend": { | ||
"amount": 80.89, | ||
"unit": "USD" | ||
}, | ||
"notifications": { | ||
"Actual_GreaterThan_80_Percent": { | ||
"enabled": true, | ||
"operator": "GreaterThan", | ||
"threshold": 80, | ||
"contactEmails": [ | ||
"johndoe@contoso.com", | ||
"janesmith@contoso.com" | ||
], | ||
"contactRoles": [ | ||
"Contributor", | ||
"Reader" | ||
], | ||
"contactGroups": [ | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" | ||
], | ||
"thresholdType": "Actual" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.