diff --git a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json index 9d532d1f748e..026faaeb4bfd 100644 --- a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json +++ b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json @@ -27,6 +27,11 @@ "externalDocs": { "url": "https://docs.microsoft.com/rest/api/commerce/usageaggregates" }, + "x-ms-examples": { + "GetUsageAggregatesList": { + "$ref": "./examples/GetUsageAggregatesList.json" + } + }, "parameters": [ { "name": "reportedStartTime", @@ -88,6 +93,12 @@ "$ref": "#/definitions/UsageAggregationListResult" } }, + "202": { + "description": "Response indicating that a request has been accepted for processing. However, the processing has not been completed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -150,12 +161,6 @@ }, "definitions": { "InfoField": { - "properties": { - "project": { - "type": "string", - "description": "Identifies the name of the instance provisioned by the user." - } - }, "description": "Key-value pairs of instance details in the legacy format." }, "UsageSample": { diff --git a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json new file mode 100644 index 000000000000..b00db8f32156 --- /dev/null +++ b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json @@ -0,0 +1,42 @@ +{ + "title": "Get UsageAggregatesList", + "parameters": { + "subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b", + "api-version": "2015-06-01-preview", + "reportedStartTime": "2014-05-01T00:00:00+00:00", + "reportedEndTime": "2015-06-01T00:00:00+00:00", + "aggregationGranularity": "Daily", + "showDetails": "true" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/f68815e6-3c41-45ef-bbd8-5f83303c396b/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20140501_0000", + "name": "Daily_BRSDT_20140501_0000", + "type": "Microsoft.Commerce/UsageAggregate", + "properties": { + "subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b", + "usageStartTime": "2015-03-03T00:00:00+00:00", + "usageEndTime": "2015-03-04T00:00:00+00:00", + "meterName": "Standard IO – Page Blob/Disk (GB)", + "meterCategory": "Storage", + "meterSubCategory": "Geo Redundant", + "unit": "GB", + "meterId": "0e9d0c9b-ab6d-4312-9c7e-3794e22af9c4", + "infoFields": {}, + "quantity": 0.057865 + } + } + ] + } + }, + "202": { + "body": { + "code": "aaaaaaaaaaaaaaaaaaaaaa", + "message": "aaaaaaaaaaaaaaaaaaaa" + } + } + } +}