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
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "2020-11-01-preview",
"billingAccountName": "{billingAccountName}",
"reservationOrderId": "{reservationOrderId}",
"reservationId": "{reservationId}"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/reservationOrders/{reservationOrderId}/reservations/{reservationId}",
"type": "microsoft.billing/reservationOrders",
"name": "Reservation Name",
"location": "global",
"sku": {
"name": "sql_enterprise_licenses"
},
"properties": {
"appliedScopes": null,
"appliedScopeType": "Shared",
"reservedResourceType": "SqlAzureHybridBenefit",
"quantity": 1,
"provisioningState": "Succeeded",
"expiryDate": null,
"reviewDate": null,
"provisioningSubState": null,
"displayName": "SQL_Server_Enterprise_Edition",
"userFriendlyRenewState": "NotApplicable",
"userFriendlyAppliedScopeType": "Shared",
"effectiveDateTime": "2020-07-30T18:36:50.7939106Z",
"skuDescription": null,
"term": null,
"renew": false,
"renewSource": null,
"utilization": {
"trend": null,
"aggregates": [
{
"grain": 1.0,
"grainUnit": "days",
"value": null,
"valueUnit": "percentage"
},
{
"grain": 7.0,
"grainUnit": "days",
"value": null,
"valueUnit": "percentage"
},
{
"grain": 30.0,
"grainUnit": "days",
"value": null,
"valueUnit": "percentage"
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"api-version": "2020-11-01-preview",
"billingAccountName": "{billingAccountName}",
"billingProfileName": "{billingProfileName}",
"reservationOrderId": "{reservationOrderId}",
"reservationId": "{reservationId}"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/reservationOrders/{reservationOrderId}/reservations/{reservationId}",
"type": "microsoft.billing/reservationOrders",
"name": "Reservation Name",
"location": "global",
"sku": {
"name": "sql_enterprise_licenses"
},
"properties": {
"appliedScopes": null,
"appliedScopeType": "Shared",
"reservedResourceType": "SqlAzureHybridBenefit",
"quantity": 1,
"provisioningState": "Succeeded",
"expiryDate": null,
"reviewDate": null,
"provisioningSubState": null,
"displayName": "SQL_Server_Enterprise_Edition",
"userFriendlyRenewState": "NotApplicable",
"userFriendlyAppliedScopeType": "Shared",
"effectiveDateTime": "2020-07-30T18:36:50.7939106Z",
"skuDescription": null,
"term": null,
"renew": false,
"renewSource": null,
"utilization": {
"trend": null,
"aggregates": [
{
"grain": 1.0,
"grainUnit": "days",
"value": null,
"valueUnit": "percentage"
},
{
"grain": 7.0,
"grainUnit": "days",
"value": null,
"valueUnit": "percentage"
},
{
"grain": 30.0,
"grainUnit": "days",
"value": null,
"valueUnit": "percentage"
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2020-11-01-preview",
"billingAccountName": "{billingAccountName}",
"reservationOrderId": "{reservationOrderId}"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/reservationOrders/{reservationOrderId}",
"type": "microsoft.billing/reservationOrders",
"name": "Reservation Name",
"properties": {
"productType": "AzureHybridBenefit",
"tenantId": "00000000-0000-0000-0000-000000000000",
"effectiveDate": "2020-07-30T18:36:50.7939106Z",
"requestPurchaseTime": "0001-01-01T00:00:00",
"expiryDate": null,
"reviewDate": null,
"endDate": null,
"term": "None",
"reservationName": "SQL_Server_Enterprise_Edition",
"billingScope": "",
"billingPlanDetails": null,
"state": "Created",
"subState": "Active",
"reservations": [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you really need to surface reservations in the response of reservationOrders? The customer can do an explicit GET to get all reservations under a reservationOrder.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did the same thing in Microsoft.Capacity for the reservationOrder.

"00000000-0000-0000-0000-000000000000"
],
"enrollmentId": null,
"originalQuantity": 1,
"extendedErrorInformation": null,
"benefitScopeBillingAliasId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AB12-AB12-123-ABC"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2020-11-01-preview",
"billingAccountName": "{billingAccountName}",
"billingProfileName": "{billingProfileName}",
"reservationOrderId": "{reservationOrderId}"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/reservationOrders/{reservationOrderId}",
"type": "microsoft.billing/reservationOrders",
"name": "Reservation Name",
"properties": {
"productType": "AzureHybridBenefit",
"tenantId": "00000000-0000-0000-0000-000000000000",
"effectiveDate": "2020-07-30T18:36:50.7939106Z",
"requestPurchaseTime": "0001-01-01T00:00:00",
"expiryDate": null,
"reviewDate": null,
"endDate": null,
"term": "None",
"reservationName": "SQL_Server_Enterprise_Edition",
"billingScope": "",
"billingPlanDetails": null,
"state": "Created",
"subState": "Active",
"reservations": [
"00000000-0000-0000-0000-000000000000"
],
"enrollmentId": null,
"originalQuantity": 1,
"extendedErrorInformation": null,
"benefitScopeBillingAliasId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AB12-AB12-123-ABC"
}
}
}
}
}
Loading