Description | : Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups. |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "CapacityReservationGroups_ListBySubscription", "$responses": { "200": { "$properties": { "value": { "$properties": { "properties": [ { "#name": "sharingProfile", "Description": { "new": "Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. The capacity reservation group resource can generally be shared across subscriptions belonging to a single Azure AAD tenant or across AAD tenants if there is a trust relationship established between the tenants. Block capacity reservation does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.", "old": "Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details." }, "$properties": [ { "#name": "subscriptionIds", "Description": { "new": "Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.", "old": "Specifies an array of subscription resource IDs that capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details." } } ] } ] } } } } } }
⚼ Request
GET:
/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups
{
api-version:
string
,
subscriptionId:
string
,
$expand:
string
,
resourceIdsOnly:
string
,
}
⚐ Response (200)
{
value:
[
]
,
{
,
properties:
{
,
capacityReservations:
[
]
,
{
,
id:
string
,
}
virtualMachinesAssociated:
[
]
,
{
,
id:
string
,
}
instanceView:
{
,
capacityReservations:
[
]
,
{
,
name:
string
,
}
sharedSubscriptionIds:
}
[
]
,
{
,
id:
string
,
}
sharingProfile:
}
{
,
subscriptionIds:
}
[
]
,
{
,
id:
string
,
}
zones:
}
[
,
string
,
]
nextLink:
string
,
}
⚐ Response (default)
{
error:
}
{
,
details:
[
]
,
{
,
code:
string
,
target:
string
,
message:
string
,
}
innererror:
{
,
exceptiontype:
string
,
errordetail:
string
,
}
code:
string
,
target:
string
,
message:
string
,
}