Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,85 @@
}
}
},
"/{scope}/providers/Microsoft.Consumption/marketplaces/download": {
"get": {
"tags": [
"Marketplaces"
],
"x-ms-odata": "#/definitions/Marketplace",
"operationId": "Marketplaces_Download",
"description": "Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/consumption/"
},
"x-ms-examples": {
"Balances": {
"$ref": "./examples/MarketplacesDownloadByBillingAccountForBillingPeriod.json"
}
},
"parameters": [
{
"name": "$filter",
"description": "May be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "$top",
"description": "May be used to limit the number of results to the most recent N marketplaces.",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 1000
},
{
"name": "$skiptoken",
"description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
"in": "query",
"required": false,
"type": "string"
},
{
"$ref": "#/parameters/scopeMarketplaceParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"202": {
"description": "Accepted.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
"type": "string"
},
"Azure-AsyncOperation": {
"description": "To get the progress of the operation, call GET operation on the URL in Azure-AsyncOperation header field.",
"type": "string"
},
"OData-EntityId": {
"description": "The operation entity Id GUID.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/{scope}/providers/Microsoft.Consumption/budgets": {
"get": {
"tags": [
Expand Down Expand Up @@ -662,6 +741,63 @@
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances/download": {
"get": {
"tags": [
"Balances"
],
"operationId": "Balances_DownloadForBillingPeriodByBillingAccount",
"description": "Downloads the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/consumption/"
},
"x-ms-examples": {
"Balances": {
"$ref": "./examples/BalancesDownloadByBillingAccountForBillingPeriod.json"
}
},
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"$ref": "#/parameters/billingAccountIdParameter"
},
{
"$ref": "#/parameters/billingPeriodNameParameter"
}
],
"responses": {
"202": {
"description": "Accepted.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
"type": "string"
},
"Azure-AsyncOperation": {
"description": "To get the progress of the operation, call GET operation on the URL in Azure-AsyncOperation header field.",
"type": "string"
},
"OData-EntityId": {
"description": "The operation entity Id GUID.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries": {
"get": {
"tags": [
Expand Down Expand Up @@ -1349,6 +1485,87 @@
}
}
},
"providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriod}/providers/microsoft.consumption/pricesheets/download": {
"get": {
"tags": [
"PriceSheet"
],
"operationId": "PriceSheet_Download",
"description": "Downloads the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or later.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/consumption/"
},
"x-ms-examples": {
"PriceSheet": {
"$ref": "./examples/PriceSheetDownload.json"
}
},
"parameters": [
{
"name": "$expand",
"description": "May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "$skiptoken",
"description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "$top",
"description": "May be used to limit the number of results to the top N results.",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 1000
},
{
"$ref": "#/parameters/billingAccountIdParameter"
},
{
"$ref": "#/parameters/billingPeriodNameParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"202": {
"description": "Accepted.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
"type": "string"
},
"Azure-AsyncOperation": {
"description": "To get the progress of the operation, call GET operation on the URL in Azure-AsyncOperation header field.",
"type": "string"
},
"OData-EntityId": {
"description": "The operation entity Id GUID.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/default": {
"get": {
"tags": [
Expand Down Expand Up @@ -1725,6 +1942,9 @@
"$ref": "#/definitions/CreditSummary"
}
},
"204": {
"description": "An empty response is sent when there is no information available within the selected scope."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -4526,7 +4746,7 @@
"discriminator": "kind",
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -4604,6 +4824,12 @@
"format": "decimal",
"readOnly": true
},
"azureMarketplaceCharges": {
"description": "Azure Marketplace Charges.",
"type": "number",
"format": "decimal",
"readOnly": true
},
"currency": {
"description": "Currency Code",
"type": "string",
Expand Down Expand Up @@ -4854,7 +5080,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -4991,7 +5217,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -5077,7 +5303,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -5308,6 +5534,27 @@
}
},
"x-ms-azure-resource": true
},
"ArmReport": {
"description": "The Arm Report definition.",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id."
},
"operationResultUrl": {
"readOnly": true,
"type": "string",
"description": "OperationResultUrl."
},
"operationStatusUrl": {
"readOnly": true,
"type": "string",
"description": "OperationStatusUrl."
}
},
"x-ms-azure-resource": true
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2019-10-01",
"billingAccountId": "123456",
"billingPeriodName": "201702"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/operationResult/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"Retry-After": "10",
"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
Expand Up @@ -34,6 +34,7 @@
}
}
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
}
}
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2019-10-01",
"billingAccountId": "00000000-0000-0000-0000-000000000000",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
"billingPeriodName": "201801"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/operationResult/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"Retry-After": "10",
"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,17 @@
{
"parameters": {
"api-version": "2019-10-01",
"billingAccountId": "00000000-0000-0000-0000-000000000000",
"billingPeriodName": "201801"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/operationResult/1a0a30a7-36a7-4dd6-9200-a1c23ba96151?sessiontoken=0%3A2943&api-version=2018-11-01-preview",
"Retry-After": "10",
"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"
}
}
}
}