Skip to content

Commit

Permalink
Dev cost management microsoft.cost management 2020 12 01 preview new (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
absyed authored Feb 10, 2021
1 parent 09961d9 commit 6bb1040
Show file tree
Hide file tree
Showing 9 changed files with 626 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"scope": "providers/Microsoft.Billing/billingAccounts/12345",
"parameters": {
"metric": "ActualCost",
"billingPeriod": "202008"
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"type": "Microsoft.Consumption/operationResult",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Retry-After": "60"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579",
"parameters": {
"metric": "ActualCost",
"invoiceId": "M1234567"
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"type": "Microsoft.Consumption/operationResult",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Retry-After": "60"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579",
"parameters": {
"metric": "ActualCost",
"invoiceId": "M1234567",
"customerId": "456789"
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"type": "Microsoft.Consumption/operationResult",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Retry-After": "60"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579",
"parameters": {
"metric": "ActualCost",
"timePeriod": {
"start": "2020-03-01",
"end": "2020-03-15"
}
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"type": "Microsoft.Consumption/operationResult",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Retry-After": "60"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"scope": "subscriptions/fae17478-31e7-40fd-b62a-1a127754a463",
"parameters": {
"metric": "ActualCost",
"timePeriod": {
"start": "2020-03-01",
"end": "2020-03-15"
}
}
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"type": "Microsoft.Consumption/operationResult",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/fae17478-31e7-40fd-b62a-1a127754a463/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Azure-Consumption-AsyncOperation": "https://management.azure.com/subscriptions/fae17478-31e7-40fd-b62a-1a127754a463/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Retry-After": "60"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"operationId": "00000000-0000-0000-0000-000000000000",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"type": "Microsoft.Consumption/operationResult",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2020-12-01-preview",
"Retry-After": "60"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2020-12-01-preview",
"operationId": "00000000-0000-0000-0000-000000000000",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000",
"name": "00000000-0000-0000-0000-000000000000",
"status": "Completed",
"type": "Microsoft.Consumption/operationStatus",
"properties": {
"downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd",
"validTill": "2020-12-08T05:55:59.4394737Z"
},
"error": {
"code": "0",
"message": null
}
}
}
}
}
10 changes: 10 additions & 0 deletions specification/cost-management/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ azure-validator: false
---
### Tag: package-preview-2020-12
These settings apply only when `--tag=package-preview-2020-12` is specified on the command line.

```yaml $(tag) == 'package-preview-2020-12'
input-file:
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.exports.json
- Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.json
```

### Tag: package-preview-2020-03

Expand Down

0 comments on commit 6bb1040

Please sign in to comment.