Skip to content

Commit 693f059

Browse files
authored
[Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#10669)
* Add reservationid and reservationorderid parameters * Fix parameter name * Fix wording * White space fix to trigger new checks
1 parent 1b04f5f commit 693f059

File tree

3 files changed

+109
-1
lines changed

3 files changed

+109
-1
lines changed

specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/consumption.json

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,9 @@
792792
},
793793
"ReservationSummariesMonthlyWithBillingProfileId": {
794794
"$ref": "./examples/ReservationSummariesMonthlyWithBillingProfileId.json"
795+
},
796+
"ReservationSummariesMonthlyWithBillingProfileIdReservationId": {
797+
"$ref": "./examples/ReservationSummariesMonthlyWithBillingProfileIdReservationId.json"
795798
}
796799
},
797800
"parameters": [
@@ -824,6 +827,22 @@
824827
"required": false,
825828
"type": "string"
826829
},
830+
{
831+
"name": "reservationId",
832+
"in": "query",
833+
"description": "Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation",
834+
"required": false,
835+
"type": "string",
836+
"x-ms-parameter-location": "method"
837+
},
838+
{
839+
"name": "reservationOrderId",
840+
"in": "query",
841+
"description": "Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order",
842+
"required": false,
843+
"type": "string",
844+
"x-ms-parameter-location": "method"
845+
},
827846
{
828847
"$ref": "#/parameters/apiVersionParameter"
829848
}
@@ -868,7 +887,7 @@
868887
},
869888
{
870889
"name": "$filter",
871-
"description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge' ",
890+
"description": "Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'",
872891
"in": "query",
873892
"required": true,
874893
"type": "string"
@@ -964,6 +983,9 @@
964983
},
965984
"ReservationDetailsByBillingProfileId": {
966985
"$ref": "./examples/ReservationDetailsByBillingProfileId.json"
986+
},
987+
"ReservationDetailsByBillingProfileIdReservationId": {
988+
"$ref": "./examples/ReservationDetailsByBillingProfileIdReservationId.json"
967989
}
968990
},
969991
"parameters": [
@@ -993,6 +1015,22 @@
9931015
"required": false,
9941016
"type": "string"
9951017
},
1018+
{
1019+
"name": "reservationId",
1020+
"in": "query",
1021+
"description": "Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation",
1022+
"required": false,
1023+
"type": "string",
1024+
"x-ms-parameter-location": "method"
1025+
},
1026+
{
1027+
"name": "reservationOrderId",
1028+
"in": "query",
1029+
"description": "Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order",
1030+
"required": false,
1031+
"type": "string",
1032+
"x-ms-parameter-location": "method"
1033+
},
9961034
{
9971035
"$ref": "#/parameters/apiVersionParameter"
9981036
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2019-10-01",
4+
"scope": "providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579",
5+
"startDate": "2019-09-01",
6+
"endDate": "2019-10-31",
7+
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
8+
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"id": "/providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579/providers/Microsoft.Consumption/reservationDetails/reservationDetails_Id1",
16+
"name": "reservationDetails_Id1",
17+
"type": "Microsoft.Consumption/reservationDetails",
18+
"tags": null,
19+
"properties": {
20+
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc",
21+
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
22+
"usageDate": "2019-09-30T00:00:00-08:00",
23+
"skuName": "Standard_D2s_v3",
24+
"instanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sqlh1/providers/microsoft.compute/virtualmachines/sqlh1",
25+
"totalReservedQuantity": 0,
26+
"reservedHours": 48,
27+
"usedHours": 0.6,
28+
"instanceFlexibilityGroup": "DSv3 Series",
29+
"instanceFlexibilityRatio": "1"
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2019-10-01",
4+
"scope": "providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579",
5+
"grain": "monthly",
6+
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
7+
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/providers/Microsoft.Billing/billingAccounts/12345:2468/billingProfiles/13579/providers/Microsoft.Consumption/reservationSummaries/reservationSummaries_Id1",
15+
"name": "reservationSummaries_Id1",
16+
"type": "Microsoft.Consumption/reservationSummaries",
17+
"tags": null,
18+
"properties": {
19+
"reservationOrderId": "9f39ba10-794f-4dcb-8f4b-8d0cb47c27dc",
20+
"reservationId": "1c6b6358-709f-484c-85f1-72e862a0cf3b",
21+
"skuName": "Standard_B1s",
22+
"reservedHours": 720,
23+
"usageDate": "2018-09-01T00:00:00-07:00",
24+
"usedHours": 0,
25+
"minUtilizationPercentage": 0,
26+
"avgUtilizationPercentage": 0,
27+
"maxUtilizationPercentage": 0
28+
}
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)