From d7b6fcbde88519b2193ede7ad1d6993accffd9fe Mon Sep 17 00:00:00 2001 From: gaoyp830 <51546332+gaoyp830@users.noreply.github.com> Date: Tue, 30 Mar 2021 15:07:43 -0700 Subject: [PATCH 1/2] Adding swagger to Microsoft.Billing 2020-05-01 for list billing account and billing profile reservations --- .../stable/2020-05-01/billing.json | 379 ++++++++++++++++++ .../ReservationsListByBillingAccount.json | 77 ++++ .../ReservationsListByBillingProfile.json | 78 ++++ 3 files changed, 534 insertions(+) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json index 347535b39c42..ebbdc9bba6c7 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json @@ -3561,6 +3561,143 @@ } } } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/reservations": { + "get": { + "tags": [ + "Reservations" + ], + "x-ms-examples": { + "ReservationsListByBillingAccount": { + "$ref": "./examples/ReservationsListByBillingAccount.json" + } + }, + "operationId": "Reservations_ListByBillingAccount", + "description": "Lists the reservations for a billing account and the roll up counts of reservations group by provisioning states.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$filter", + "description": "May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$orderby", + "description": "May be used to sort order by reservation properties.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "refreshsummary", + "description": "To indicate whether to refresh the roll up counts of the reservations group by provisioning states", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "selectedState", + "description": "The selected provisioning state", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/reservations": { + "get": { + "tags": [ + "Reservations" + ], + "x-ms-examples": { + "ReservationsListByBillingProfile": { + "$ref": "./examples/ReservationsListByBillingProfile.json" + } + }, + "operationId": "Reservations_ListByBillingProfile", + "description": "Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning state.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "$filter", + "description": "May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$orderby", + "description": "May be used to sort order by reservation properties.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "refreshsummary", + "description": "To indicate whether to refresh the roll up counts of the reservations group by provisioning state", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "selectedState", + "description": "The selected provisioning state", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } } }, "definitions": { @@ -6266,6 +6403,248 @@ "description": "The set of actions that the caller is not allowed to perform.", "type": "string", "readOnly": true + }, + "ReservationsListResult": { + "description": "The list of reservations and summary of roll out count of reservations in each state.", + "properties": { + "value": { + "description": "The list of reservations.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Reservation" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + }, + "summary": { + "description": "The roll out count summary of the reservations", + "type": "object", + "$ref": "#/definitions/ReservationSummary" + } + } + }, + "Reservation": { + "description": "The definition of the reservation.", + "properties": { + "id": { + "description": "The id of the reservation.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the reservation.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the reservation.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "The location of the reservation.", + "type": "string", + "readOnly": true + }, + "sku": { + "description": "The sku information associated to this reservation ", + "type": "object", + "$ref": "#/definitions/ReservationSkuProperty" + }, + "properties": { + "description": "The properties associated to this reservation ", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationProperty" + } + } + }, + "ReservationSkuProperty": { + "description": "The property of reservation sku object.", + "properties": { + "name": { + "description": "The name of the reservation sku.", + "type": "string", + "readOnly": true + } + } + }, + "ReservationProperty": { + "description": "The property of reservation object.", + "properties": { + "appliedScopes": { + "description": "The array of applied scopes of a reservation. Will be null if the reservation is in Shared scope", + "type": "array", + "items": { + "$ref": "#/definitions/ReservationAppledScope" + } + }, + "appliedScopeType": { + "description": "The applied scope type of the reservation.", + "type": "string", + "readOnly": true + }, + "reservedResourceType": { + "description": "The reserved source type of the reservation, e.g. virtual machine.", + "type": "string", + "readOnly": true + }, + "quantity": { + "description": "The number of the reservation.", + "type": "number", + "readOnly": true + }, + "provisioningState": { + "description": "The provisioning state of the reservation, e.g. Succeeded", + "type": "string", + "readOnly": true + }, + "expiryDate": { + "description": "The expiry date of the reservation", + "type": "string", + "readOnly": true + }, + "provisioningSubState": { + "description": "The provisioning state of the reservation, e.g. Succeeded", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "The display name of the reservation", + "type": "string", + "readOnly": true + }, + "displayProvisioningState": { + "description": "The provisioning state of the reservation for display, e.g. Succeeded", + "type": "string", + "readOnly": true + }, + "userFriendlyRenewState": { + "description": "The renew state of the reservation for display, e.g. On", + "type": "string", + "readOnly": true + }, + "userFriendlyAppliedScopeType": { + "description": "The applied scope type of the reservation for display, e.g. Shared", + "type": "string", + "readOnly": true + }, + "effectiveDateTime": { + "description": "The effective date time of the reservation", + "type": "string", + "readOnly": true + }, + "skuDescription": { + "description": "The sku description of the reservation", + "type": "string", + "readOnly": true + }, + "term": { + "description": "The term of the reservation, e.g. P1Y", + "type": "string", + "readOnly": true + }, + "renew": { + "description": "The renew state of the reservation", + "type": "boolean", + "readOnly": true + }, + "renewSource": { + "description": "The renew source of the reservation", + "type": "string", + "readOnly": true + }, + "utilization": { + "readOnly": true, + "type": "object", + "description": "Reservation utilization", + "properties": { + "trend": { + "description": "The number of days trend for a reservation", + "readOnly": true, + "type": "string" + }, + "aggregates": { + "description": "The array of aggregates of a reservation's utilization", + "type": "array", + "items": { + "$ref": "#/definitions/ReservationUtilizationAggregates" + } + } + } + } + } + }, + "ReservationAppledScope": { + "readOnly": true, + "type": "string", + "description": "Reservation applied scope" + }, + "ReservationUtilizationAggregates": { + "description": "The aggregate values of reservation utilization", + "type": "object", + "properties": { + "grain": { + "description": "The grain of the aggregate", + "readOnly": true, + "type": "number" + }, + "grainUnit": { + "description": "The grain unit of the aggregate", + "readOnly": true, + "type": "string" + }, + "value": { + "description": "The aggregate value", + "readOnly": true, + "type": "number" + }, + "valueUnit": { + "description": "The aggregate value unit", + "readOnly": true, + "type": "string" + } + } + }, + "ReservationSummary": { + "description": "The roll up count summary of reservations in each state", + "type": "object", + "properties": { + "succeededCount": { + "description": "The number of reservation in Succeeded state", + "readOnly": true, + "type": "number" + }, + "failedCount": { + "description": "The number of reservation in Failed state", + "readOnly": true, + "type": "number" + }, + "expiringCount": { + "description": "The number of reservation in Expiring state", + "readOnly": true, + "type": "number" + }, + "expiredCount": { + "description": "The number of reservation in Expired state", + "readOnly": true, + "type": "number" + }, + "pendingCount": { + "description": "The number of reservation in Pending state", + "readOnly": true, + "type": "number" + }, + "cancelledCount": { + "description": "The number of reservation in Cancelled state", + "readOnly": true, + "type": "number" + } + } } }, "parameters": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json new file mode 100644 index 000000000000..bef99573983f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "billingAccountName": "{billingAccountName}", + "$filter": "properties/reservedResourceType eq 'VirtualMachines'", + "$orderby": "properties/userFriendlyAppliedScopeType asc", + "refreshsummary": "true", + "selectedState": "Succeeded" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Capacity/reservationOrders/reservations", + "location": "westus", + "sku": { + "name": "Standard_D1" + }, + "properties": { + "appliedScopes": null, + "appliedScopeType": "Shared", + "reservedResourceType": "VirtualMachines", + "quantity": 2, + "provisioningState": "Succeeded", + "expiryDate": "2023-07-21", + "provisioningSubState": null, + "displayName": "VM_RI_07-21-2020_12-06", + "displayProvisioningState": "Succeeded", + "userFriendlyRenewState": "Off", + "userFriendlyAppliedScopeType": "Shared", + "effectiveDateTime": "0001-01-01T00:00:00", + "skuDescription": null, + "term": null, + "renew": false, + "renewSource": null, + "utilization": { + "trend": "UP", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + } + ] + } + } + } + ], + "summary": { + "succeededCount": 1, + "failedCount": 0, + "expiringCount": 0, + "expiredCount": 0, + "pendingCount": 0, + "cancelledCount": 0 + }, + "nextLink": null + } + } + } + } \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json new file mode 100644 index 000000000000..9b0087f0b6b5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "$filter": "properties/reservedResourceType eq 'VirtualMachines'", + "$orderby": "properties/userFriendlyAppliedScopeType asc", + "refreshsummary": "true", + "selectedState": "Succeeded" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Capacity/reservationOrders/reservations", + "location": "westus", + "sku": { + "name": "Standard_D1" + }, + "properties": { + "appliedScopes": null, + "appliedScopeType": "Shared", + "reservedResourceType": "VirtualMachines", + "quantity": 2, + "provisioningState": "Succeeded", + "expiryDate": "2023-07-21", + "provisioningSubState": null, + "displayName": "VM_RI_07-21-2020_12-06", + "displayProvisioningState": "Succeeded", + "userFriendlyRenewState": "Off", + "userFriendlyAppliedScopeType": "Shared", + "effectiveDateTime": "0001-01-01T00:00:00", + "skuDescription": null, + "term": null, + "renew": false, + "renewSource": "/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000002/reservations/00000000-0000-0000-0000-000000000003", + "utilization": { + "trend": "UP", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + } + ] + } + } + } + ], + "summary": { + "succeededCount": 1, + "failedCount": 0, + "expiringCount": 0, + "expiredCount": 0, + "pendingCount": 0, + "cancelledCount": 0 + }, + "nextLink": null + } + } + } + } \ No newline at end of file From 6ca30ee31dea0b86adcb3be0fe7e170e62ab9c29 Mon Sep 17 00:00:00 2001 From: gaoyp830 <51546332+gaoyp830@users.noreply.github.com> Date: Tue, 30 Mar 2021 15:47:15 -0700 Subject: [PATCH 2/2] Update style --- .../stable/2020-05-01/billing.json | 8 +- .../ReservationsListByBillingAccount.json | 144 ++++++++--------- .../ReservationsListByBillingProfile.json | 146 +++++++++--------- 3 files changed, 149 insertions(+), 149 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json index ebbdc9bba6c7..6cfe9fe3cbc5 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json @@ -3596,7 +3596,7 @@ "type": "string" }, { - "name": "refreshsummary", + "name": "refreshSummary", "description": "To indicate whether to refresh the roll up counts of the reservations group by provisioning states", "in": "query", "required": false, @@ -3666,7 +3666,7 @@ "type": "string" }, { - "name": "refreshsummary", + "name": "refreshSummary", "description": "To indicate whether to refresh the roll up counts of the reservations group by provisioning state", "in": "query", "required": false, @@ -6480,7 +6480,7 @@ "description": "The array of applied scopes of a reservation. Will be null if the reservation is in Shared scope", "type": "array", "items": { - "$ref": "#/definitions/ReservationAppledScope" + "$ref": "#/definitions/ReservationAppliedScope" } }, "appliedScopeType": { @@ -6579,7 +6579,7 @@ } } }, - "ReservationAppledScope": { + "ReservationAppliedScope": { "readOnly": true, "type": "string", "description": "Reservation applied scope" diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json index bef99573983f..af4f99587c4b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json @@ -1,77 +1,77 @@ { - "parameters": { - "api-version": "2020-05-01", - "billingAccountName": "{billingAccountName}", - "$filter": "properties/reservedResourceType eq 'VirtualMachines'", - "$orderby": "properties/userFriendlyAppliedScopeType asc", - "refreshsummary": "true", - "selectedState": "Succeeded" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Capacity/reservationOrders/reservations", - "location": "westus", - "sku": { - "name": "Standard_D1" - }, - "properties": { - "appliedScopes": null, - "appliedScopeType": "Shared", - "reservedResourceType": "VirtualMachines", - "quantity": 2, - "provisioningState": "Succeeded", - "expiryDate": "2023-07-21", - "provisioningSubState": null, - "displayName": "VM_RI_07-21-2020_12-06", - "displayProvisioningState": "Succeeded", - "userFriendlyRenewState": "Off", - "userFriendlyAppliedScopeType": "Shared", - "effectiveDateTime": "0001-01-01T00:00:00", - "skuDescription": null, - "term": null, - "renew": false, - "renewSource": null, - "utilization": { - "trend": "UP", - "aggregates": [ - { - "grain": 1.0, - "grainUnit": "days", - "value": 0.05, - "valueUnit": "percentage" - }, - { - "grain": 7.0, - "grainUnit": "days", - "value": 0.05, - "valueUnit": "percentage" - }, - { - "grain": 30.0, - "grainUnit": "days", - "value": 0.05, - "valueUnit": "percentage" - } - ] - } + "parameters": { + "api-version": "2020-05-01", + "billingAccountName": "{billingAccountName}", + "$filter": "properties/reservedResourceType eq 'VirtualMachines'", + "$orderby": "properties/userFriendlyAppliedScopeType asc", + "refreshsummary": "true", + "selectedState": "Succeeded" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Capacity/reservationOrders/reservations", + "location": "westus", + "sku": { + "name": "Standard_D1" + }, + "properties": { + "appliedScopes": null, + "appliedScopeType": "Shared", + "reservedResourceType": "VirtualMachines", + "quantity": 2, + "provisioningState": "Succeeded", + "expiryDate": "2023-07-21", + "provisioningSubState": null, + "displayName": "VM_RI_07-21-2020_12-06", + "displayProvisioningState": "Succeeded", + "userFriendlyRenewState": "Off", + "userFriendlyAppliedScopeType": "Shared", + "effectiveDateTime": "0001-01-01T00:00:00", + "skuDescription": null, + "term": null, + "renew": false, + "renewSource": null, + "utilization": { + "trend": "UP", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + } + ] } } - ], - "summary": { - "succeededCount": 1, - "failedCount": 0, - "expiringCount": 0, - "expiredCount": 0, - "pendingCount": 0, - "cancelledCount": 0 - }, - "nextLink": null - } + } + ], + "summary": { + "succeededCount": 1, + "failedCount": 0, + "expiringCount": 0, + "expiredCount": 0, + "pendingCount": 0, + "cancelledCount": 0 + }, + "nextLink": null } } - } \ No newline at end of file + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json index 9b0087f0b6b5..f04d34b1da33 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json @@ -1,78 +1,78 @@ { - "parameters": { - "api-version": "2020-05-01", - "billingAccountName": "{billingAccountName}", - "billingProfileName": "{billingProfileName}", - "$filter": "properties/reservedResourceType eq 'VirtualMachines'", - "$orderby": "properties/userFriendlyAppliedScopeType asc", - "refreshsummary": "true", - "selectedState": "Succeeded" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Capacity/reservationOrders/reservations", - "location": "westus", - "sku": { - "name": "Standard_D1" - }, - "properties": { - "appliedScopes": null, - "appliedScopeType": "Shared", - "reservedResourceType": "VirtualMachines", - "quantity": 2, - "provisioningState": "Succeeded", - "expiryDate": "2023-07-21", - "provisioningSubState": null, - "displayName": "VM_RI_07-21-2020_12-06", - "displayProvisioningState": "Succeeded", - "userFriendlyRenewState": "Off", - "userFriendlyAppliedScopeType": "Shared", - "effectiveDateTime": "0001-01-01T00:00:00", - "skuDescription": null, - "term": null, - "renew": false, - "renewSource": "/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000002/reservations/00000000-0000-0000-0000-000000000003", - "utilization": { - "trend": "UP", - "aggregates": [ - { - "grain": 1.0, - "grainUnit": "days", - "value": 0.05, - "valueUnit": "percentage" - }, - { - "grain": 7.0, - "grainUnit": "days", - "value": 0.05, - "valueUnit": "percentage" - }, - { - "grain": 30.0, - "grainUnit": "days", - "value": 0.05, - "valueUnit": "percentage" - } - ] - } + "parameters": { + "api-version": "2020-05-01", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "$filter": "properties/reservedResourceType eq 'VirtualMachines'", + "$orderby": "properties/userFriendlyAppliedScopeType asc", + "refreshsummary": "true", + "selectedState": "Succeeded" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Capacity/reservationOrders/reservations", + "location": "westus", + "sku": { + "name": "Standard_D1" + }, + "properties": { + "appliedScopes": null, + "appliedScopeType": "Shared", + "reservedResourceType": "VirtualMachines", + "quantity": 2, + "provisioningState": "Succeeded", + "expiryDate": "2023-07-21", + "provisioningSubState": null, + "displayName": "VM_RI_07-21-2020_12-06", + "displayProvisioningState": "Succeeded", + "userFriendlyRenewState": "Off", + "userFriendlyAppliedScopeType": "Shared", + "effectiveDateTime": "0001-01-01T00:00:00", + "skuDescription": null, + "term": null, + "renew": false, + "renewSource": "/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000002/reservations/00000000-0000-0000-0000-000000000003", + "utilization": { + "trend": "UP", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.05, + "valueUnit": "percentage" + } + ] } } - ], - "summary": { - "succeededCount": 1, - "failedCount": 0, - "expiringCount": 0, - "expiredCount": 0, - "pendingCount": 0, - "cancelledCount": 0 - }, - "nextLink": null - } + } + ], + "summary": { + "succeededCount": 1, + "failedCount": 0, + "expiringCount": 0, + "expiredCount": 0, + "pendingCount": 0, + "cancelledCount": 0 + }, + "nextLink": null } } - } \ No newline at end of file + } +}