-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding paths from preview versions into new stable version
- Loading branch information
Showing
6 changed files
with
957 additions
and
1 deletion.
There are no files selected for viewing
123 changes: 123 additions & 0 deletions
123
...ons/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/CalculateExchange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01", | ||
"body": { | ||
"properties": { | ||
"reservationsToPurchase": [ | ||
{ | ||
"sku": { | ||
"name": "Standard_B1ls" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Upfront", | ||
"quantity": 1, | ||
"displayName": "testDisplayName", | ||
"appliedScopeType": "Shared", | ||
"appliedScopes": null, | ||
"renew": false, | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
} | ||
], | ||
"reservationsToExchange": [ | ||
{ | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6", | ||
"quantity": 1 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"status": "Succeeded", | ||
"properties": { | ||
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081", | ||
"netPayable": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"refundsTotal": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"purchasesTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"policyResult": { | ||
"policyErrors": null | ||
}, | ||
"reservationsToPurchase": [ | ||
{ | ||
"properties": { | ||
"sku": { | ||
"name": "Standard_B1ls" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Upfront", | ||
"quantity": 1, | ||
"displayName": "testDisplayName", | ||
"appliedScopeType": "Shared", | ||
"appliedScopes": null, | ||
"renew": false, | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
}, | ||
"billingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
} | ||
} | ||
], | ||
"reservationsToExchange": [ | ||
{ | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6", | ||
"quantity": 1, | ||
"billingRefundAmount": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"billingInformation": { | ||
"billingCurrencyTotalPaidAmount": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"billingCurrencyProratedAmount": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"billingCurrencyRemainingCommitmentAmount": { | ||
"currencyCode": "USD", | ||
"amount": 0.0 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01", | ||
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01", | ||
"Retry-After": 5 | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...anager/Microsoft.Capacity/stable/2021-07-01/examples/ChangeDirectoryReservationOrder.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01", | ||
"reservationOrderId": "a075419f-44cc-497f-b68a-14ee811d48b9", | ||
"body": { | ||
"destinationTenantId": "906655ea-30be-4587-9d12-b50e077b0f32" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"reservationOrder": { | ||
"id": "a075419f-44cc-497f-b68a-14ee811d48b9", | ||
"name": "VM_RI_10-02-2020_15-21", | ||
"isSucceeded": true, | ||
"error": "error string" | ||
}, | ||
"reservations": [ | ||
{ | ||
"id": "1f14354c-dc12-4c8d-8090-6f295a3a34aa", | ||
"name": "VM_RI_10-02-2020_15-21", | ||
"isSucceeded": true, | ||
"error": "error string" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
...reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/Exchange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01", | ||
"body": { | ||
"properties": { | ||
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"status": "Succeeded", | ||
"properties": { | ||
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081", | ||
"netPayable": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"refundsTotal": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"purchasesTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"policyResult": { | ||
"policyErrors": null | ||
}, | ||
"reservationsToPurchase": [ | ||
{ | ||
"reservationOrderId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f", | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f/reservations/0c80fceb-305c-40a8-b5a6-11445807bbb3", | ||
"properties": { | ||
"sku": { | ||
"name": "Standard_B1ls" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Upfront", | ||
"quantity": 1, | ||
"displayName": "testDisplayName", | ||
"appliedScopeType": "Shared", | ||
"appliedScopes": null, | ||
"renew": false, | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
}, | ||
"billingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"status": "Succeeded" | ||
} | ||
], | ||
"reservationsToExchange": [ | ||
{ | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6", | ||
"quantity": 1, | ||
"billingRefundAmount": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"billingInformation": { | ||
"billingCurrencyTotalPaidAmount": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"billingCurrencyProratedAmount": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"billingCurrencyRemainingCommitmentAmount": { | ||
"currencyCode": "USD", | ||
"amount": 0.0 | ||
} | ||
}, | ||
"status": "Succeeded" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01", | ||
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01", | ||
"Retry-After": 5 | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ons/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAvailableScope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01", | ||
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", | ||
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da", | ||
"body": { | ||
"properties": { | ||
"scopes": [ | ||
"/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"scopes": [ | ||
{ | ||
"scope": "/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9", | ||
"valid": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationsFromOrder.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.