Skip to content

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "95b221a7-a3a2-5808-d690-659c180e8ccf",
"startDate": "2019-02-01",
"endDate": "2019-02-28"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/providers/Microsoft.Consumption/charges/bcb1b554-985d-46e5-d9a3-92399414677e",
"name": "bcb1b554-985d-46e5-d9a3-92399414677e",
"type": "Microsoft.Consumption/charges",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/bcb1b554-985d-46e5-d9a3-92399414677e/providers/Microsoft.Billing/billingPeriods/201902",
"usageStart": "2019-02-01",
"usageEnd": "2019-02-28",
"azureCharges": {
"currency": "USD",
"value": 5000.00
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.90
},
"marketplaceCharges": {
"currency": "USD",
"value": 100.00
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": null,
"invoiceSectionId": null
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": "f30c32de-fba9-4cf1-a146-2ff60881e0fe",
"startDate": "2019-02-01",
"endDate": "2019-02-28"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/charges/bcb1b554-985d-46e5-d9a3-92399414677e",
"name": "bcb1b554-985d-46e5-d9a3-92399414677e",
"type": "Microsoft.Consumption/charges",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/providers/Microsoft.Billing/billingPeriods/201902",
"usageStart": "2019-02-01",
"usageEnd": "2019-02-28",
"azureCharges": {
"currency": "USD",
"value": 27000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 4487.5
},
"marketplaceCharges": {
"currency": "USD",
"value": 0
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe",
"invoiceSectionId": null
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "95b221a7-a3a2-5808-d690-659c180e8ccf",
"invoiceSectionId": "f30c32de-fba9-4cf1-a146-2ff60881e0fe",
"startDate": "2019-02-01",
"endDate": "2019-02-28"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/invoiceSections/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/charges/bcb1b554-985d-46e5-d9a3-92399414677e",
"name": "bcb1b554-985d-46e5-d9a3-92399414677e",
"type": "Microsoft.Consumption/charges",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/providers/Microsoft.Billing/billingPeriods/201902",
"usageStart": "2019-02-01",
"usageEnd": "2019-02-28",
"azureCharges": {
"currency": "USD",
"value": 27000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 4487.5
},
"marketplaceCharges": {
"currency": "USD",
"value": 0
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": null,
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/invoiceSections/f30c32de-fba9-4cf1-a146-2ff60881e0fe"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": "f30c32de-fba9-4cf1-a146-2ff60881e0fe"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/credits/balanceSummary/436626aa-9ebd-4ef6-94e7-91bfef2f2859",
"name": "436626aa-9ebd-4ef6-94e7-91bfef2f2859",
"type": "Microsoft.Consumption/credits/balanceSummary",
"properties": {
"balanceSummary": {
"estimatedBalance": {
"currency": "USD",
"value": 600.00
},
"currentBalance": {
"currency": "USD",
"value": 100.00
}
},
"pendingCreditAdjustments": {
"currency": "USD",
"value": 500.00
},
"expiredCredit": {
"currency": "USD",
"value": 0.00
},
"pendingEligibleCharges": {
"currency": "USD",
"value": 0.00
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": "f30c32de-fba9-4cf1-a146-2ff60881e0fe",
"startDate": "2018-04-01",
"endDate": "2018-05-30"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/events/bcb1b554-985d-46e5-d9a3-92399414677e",
"name": "bcb1b554-985d-46e5-d9a3-92399414677e",
"type": "Microsoft.Consumption/events",
"properties": {
"transactionDate": "2018-01-01T00:00:00Z",
"description": "Settled invoice #312033",
"newCredit": {
"currency": "USD",
"value": 0
},
"adjustments": {
"currency": "USD",
"value": 0
},
"creditExpired": {
"currency": "USD",
"value": 0
},
"charges": {
"currency": "USD",
"value": 500
},
"closedBalance": {
"currency": "USD",
"value": 500
},
"eventType": "SettledCharges",
"invoiceNumber": "3301"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/events/6898a55b-96f2-40bb-8329-bf3b493f3d88",
"name": "6898a55b-96f2-40bb-8329-bf3b493f3d88",
"type": "Microsoft.Consumption/events",
"properties": {
"transactionDate": "2018-02-01T00:00:00Z",
"description": "New credits added",
"newCredit": {
"currency": "USD",
"value": 400
},
"adjustments": {
"currency": "USD",
"value": 0
},
"creditExpired": {
"currency": "USD",
"value": 0
},
"charges": {
"currency": "USD",
"value": 0
},
"closedBalance": {
"currency": "USD",
"value": 900
},
"eventType": "NewCredit",
"invoiceNumber": "3302"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "95b221a7-a3a2-5808-d690-659c180e8ccf",
"billingProfileId": "f30c32de-fba9-4cf1-a146-2ff60881e0fe"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/lots/e3f15e96-afad-4940-b459-0c7ea9692efe",
"name": "e3f15e96-afad-4940-b459-0c7ea9692efe",
"type": "Microsoft.Consumption/lots",
"properties": {
"originalAmount": {
"currency": "USD",
"value": 5000.00
},
"closedBalance": {
"currency": "USD",
"value": 60.90
},
"source": "PurchasedCredit",
"startDate": "2018-02-01T00:00:00Z",
"expirationDate": "2018-03-01T00:00:00Z",
"poNumber": "3524"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/95b221a7-a3a2-5808-d690-659c180e8ccf/billingProfiles/f30c32de-fba9-4cf1-a146-2ff60881e0fe/providers/Microsoft.Consumption/lots/436626aa-9ebd-4ef6-94e7-91bfef2f2859",
"name": "436626aa-9ebd-4ef6-94e7-91bfef2f2859",
"type": "Microsoft.Consumption/lots",
"properties": {
"originalAmount": {
"currency": "USD",
"value": 6000.00
},
"closedBalance": {
"currency": "USD",
"value": 80.90
},
"source": "PurchasedCredit",
"startDate": "2018-04-01T00:00:00Z",
"expirationDate": "2018-12-31T00:00:00Z",
"poNumber": "31224"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "84ae600f-763c-4a66-a8f0-4c497fc58d98",
"billingProfileId": "95869cd5-6f00-42b3-8708-04e85fef9e15"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Consumption/billingAccounts/2909cffc-b0a2-5de1-bb7b-5d3383764184/pricesheets/default",
"name": "default",
"type": "Microsoft.Consumption/pricesheets",
"properties": {
"downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=F%6GRVAZ5Cdj2Pw4tgU7IlSTkWgn7bUkkAg8P6HESXwmf%4B",
"expiryTime": "03/05/2019 20:13:06"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/2909cffc-b0a2-5de1-bb7b-5d3383764184/billingProfiles/2dcffe0c-ee92-4265-8647-515b8fe7dc78/pricesheetDownloadOperations/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"Retry-After": "60",
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/operationStatus/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"OData-EntityId": "84ae600f-763c-4a66-a8f0-4c497fc58d98"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2018-11-01-preview",
"billingAccountId": "84ae600f-763c-4a66-a8f0-4c497fc58d98",
"invoiceName": "95869cd5-6f00-42b3-8708-04e85fef9e15"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Consumption/billingAccounts/2909cffc-b0a2-5de1-bb7b-5d3383764184/pricesheets/default",
"name": "default",
"type": "Microsoft.Consumption/pricesheets",
"properties": {
"downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=F%6GRVAZ5Cdj2Pw4tgU7IlSTkWgn7bUkkAg8P6HESXwmf%4B",
"expiryTime": "03/05/2019 20:13:06"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/2909cffc-b0a2-5de1-bb7b-5d3383764184/invoices/2dcffe0c-ee92-4265-8647-515b8fe7dc78/pricesheetDownloadOperations/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"Retry-After": "60",
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/operationStatus/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"OData-EntityId": "84ae600f-763c-4a66-a8f0-4c497fc58d98"
}
}
}
}
13 changes: 11 additions & 2 deletions specification/consumption/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,27 @@ These are the global settings for the Consumption API.

``` yaml
openapi-type: arm
tag: package-2019-01
tag: package-preview-2018-11
```


### Tag: package-preview-2018-11

These settings apply only when `--tag=package-preview-2018-11` is specified on the command line.

```yaml $(tag) == 'package-preview-2018-11'
input-file:
- Microsoft.Consumption/preview/2018-11-01-preview/consumption.json
```
### Tag: package-2019-01

These settings apply only when `--tag=package-2019-01` is specified on the command line.

```yaml $(tag) == 'package-2019-01'
``` yaml $(tag) == 'package-2019-01'
input-file:
- Microsoft.Consumption/stable/2019-01-01/consumption.json
```

### Tag: package-2017-11

These settings apply only when `--tag=package-2017-11` is specified on the command line.
Expand Down