CapacityReservationGroup interface

指定應該指派容量保留的容量保留群組相關信息。 目前,容量保留只能在建立時新增至容量保留群組。 現有的容量保留無法新增或移至另一個容量保留群組。

Extends

屬性

capacityReservations

屬於容量保留群組的所有容量保留資源標識符清單。

instanceView

容量保留群組實例檢視,其中包含屬於容量保留群組之所有容量保留的實例檢視清單。

reservationType

指出容量保留的類型。 允許的值為「封鎖」,表示區塊容量保留,而「目標」適用於保留,可讓虛擬機器在提供容量保留群組時取用特定容量保留。 保留類型是不可變的,指派後無法變更。

sharingProfile

指定要針對容量保留群組資源啟用跨訂用帳戶共享的設定。 容量保留群組資源通常可以在屬於單一 Azure AAD 租用戶的訂用帳戶之間共用,如果租用戶之間建立了信任關係,則可以在 AAD 租用戶之間共用。 區塊容量保留不支援跨訂閱共用。 注意: 最低 api-version:2023-09-01。 如需詳細資訊, https://aka.ms/computereservationsharing 請參閱 。

virtualMachinesAssociated

與容量保留群組相關聯的所有虛擬機參考清單。

zones

可用性區域。

繼承的屬性

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

資源所在的地理位置

name

資源名稱

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

tags

資源標籤。

type

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

屬性詳細資料

capacityReservations

屬於容量保留群組的所有容量保留資源標識符清單。

capacityReservations?: SubResourceReadOnly[]

屬性值

instanceView

容量保留群組實例檢視,其中包含屬於容量保留群組之所有容量保留的實例檢視清單。

instanceView?: CapacityReservationGroupInstanceView

屬性值

reservationType

指出容量保留的類型。 允許的值為「封鎖」,表示區塊容量保留,而「目標」適用於保留,可讓虛擬機器在提供容量保留群組時取用特定容量保留。 保留類型是不可變的,指派後無法變更。

reservationType?: string

屬性值

string

sharingProfile

指定要針對容量保留群組資源啟用跨訂用帳戶共享的設定。 容量保留群組資源通常可以在屬於單一 Azure AAD 租用戶的訂用帳戶之間共用,如果租用戶之間建立了信任關係,則可以在 AAD 租用戶之間共用。 區塊容量保留不支援跨訂閱共用。 注意: 最低 api-version:2023-09-01。 如需詳細資訊, https://aka.ms/computereservationsharing 請參閱 。

sharingProfile?: ResourceSharingProfile

屬性值

virtualMachinesAssociated

與容量保留群組相關聯的所有虛擬機參考清單。

virtualMachinesAssociated?: SubResourceReadOnly[]

屬性值

zones

可用性區域。

zones?: string[]

屬性值

string[]

繼承的屬性詳細資料

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

屬性值

string

繼承自TrackedResource.id

location

資源所在的地理位置

location: string

屬性值

string

繼承自TrackedResource.location

name

資源名稱

name?: string

屬性值

string

繼承自 TrackedResource.name

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

systemData?: SystemData

屬性值

繼承自TrackedResource.systemData

tags

資源標籤。

tags?: Record<string, string>

屬性值

Record<string, string>

繼承自TrackedResource.tags

type

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

type?: string

屬性值

string

繼承自TrackedResource.type