Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -792,6 +792,9 @@
},
"ReservationSummariesMonthlyWithBillingProfileId": {
"$ref": "./examples/ReservationSummariesMonthlyWithBillingProfileId.json"
},
"ReservationSummariesMonthlyWithBillingProfileIdReservationId": {
"$ref": "./examples/ReservationSummariesMonthlyWithBillingProfileIdReservationId.json"
}
},
"parameters": [
Expand Down Expand Up @@ -824,6 +827,22 @@
"required": false,
"type": "string"
},
{
"name": "reservationId",
"in": "query",
"description": "Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
{
"name": "reservationOrderId",
"in": "query",
"description": "Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
Expand Down Expand Up @@ -964,6 +983,9 @@
},
"ReservationDetailsByBillingProfileId": {
"$ref": "./examples/ReservationDetailsByBillingProfileId.json"
},
"ReservationDetailsByBillingProfileIdReservationId": {
"$ref": "./examples/ReservationDetailsByBillingProfileIdReservationId.json"
}
},
"parameters": [
Expand Down Expand Up @@ -993,6 +1015,22 @@
"required": false,
"type": "string"
},
{
"name": "reservationId",
"in": "query",
"description": "Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
{
"name": "reservationOrderId",
"in": "query",
"description": "Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2019-10-01",
"scope": "providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579",
"startDate": "2019-09-01",
"endDate": "2019-10-31",
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579/providers/Microsoft.Consumption/reservationDetails/reservationDetails_Id1",
"name": "reservationDetails_Id1",
"type": "Microsoft.Consumption/reservationDetails",
"tags": null,
"properties": {
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc",
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
"usageDate": "2019-09-30T00:00:00-08:00",
"skuName": "Standard_D2s_v3",
"instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sqlh1/providers/microsoft.compute/virtualmachines/sqlh1",
"totalReservedQuantity": 0,
"reservedHours": 48,
"usedHours": 0.6,
"instanceFlexibilityGroup": "DSv3 Series",
"instanceFlexibilityRatio": "1"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2019-10-01",
"scope": "providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579",
"grain": "monthly",
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579/providers/Microsoft.Consumption/reservationSummaries/reservationSummaries_Id1",
"name": "reservationSummaries_Id1",
"type": "Microsoft.Consumption/reservationSummaries",
"tags": null,
"properties": {
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc",
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
"skuName": "Standard_B1s",
"reservedHours": 720,
"usageDate": "2018-09-01T00:00:00-07:00",
"usedHours": 0,
"minUtilizationPercentage": 0,
"avgUtilizationPercentage": 0,
"maxUtilizationPercentage": 0
}
}
]
}
}
}
}