CapacityReservationGroup interface
指定應該指派容量保留的容量保留群組相關信息。 目前,容量保留只能在建立時新增至容量保留群組。 現有的容量保留無法新增或移至另一個容量保留群組。
- Extends
屬性
| capacity |
屬於容量保留群組的所有容量保留資源標識符清單。 |
| instance |
容量保留群組實例檢視,其中包含屬於容量保留群組之所有容量保留的實例檢視清單。 |
| reservation |
指出容量保留的類型。 允許的值為「封鎖」,表示區塊容量保留,而「目標」適用於保留,可讓虛擬機器在提供容量保留群組時取用特定容量保留。 保留類型是不可變的,指派後無法變更。 |
| sharing |
指定要針對容量保留群組資源啟用跨訂用帳戶共享的設定。 容量保留群組資源通常可以在屬於單一 Azure AAD 租用戶的訂用帳戶之間共用,如果租用戶之間建立了信任關係,則可以在 AAD 租用戶之間共用。 區塊容量保留不支援跨訂閱共用。 注意: 最低 api-version:2023-09-01。 如需詳細資訊, https://aka.ms/computereservationsharing 請參閱 。 |
| virtual |
與容量保留群組相關聯的所有虛擬機參考清單。 |
| zones | 可用性區域。 |
繼承的屬性
| id | 資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location | 資源所在的地理位置 |
| name | 資源名稱 |
| system |
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。 |
| tags | 資源標籤。 |
| type | 資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
屬性詳細資料
capacityReservations
instanceView
容量保留群組實例檢視,其中包含屬於容量保留群組之所有容量保留的實例檢視清單。
instanceView?: CapacityReservationGroupInstanceView
屬性值
reservationType
指出容量保留的類型。 允許的值為「封鎖」,表示區塊容量保留,而「目標」適用於保留,可讓虛擬機器在提供容量保留群組時取用特定容量保留。 保留類型是不可變的,指派後無法變更。
reservationType?: string
屬性值
string
sharingProfile
指定要針對容量保留群組資源啟用跨訂用帳戶共享的設定。 容量保留群組資源通常可以在屬於單一 Azure AAD 租用戶的訂用帳戶之間共用,如果租用戶之間建立了信任關係,則可以在 AAD 租用戶之間共用。 區塊容量保留不支援跨訂閱共用。 注意: 最低 api-version:2023-09-01。 如需詳細資訊, https://aka.ms/computereservationsharing 請參閱 。
sharingProfile?: ResourceSharingProfile
屬性值
virtualMachinesAssociated
zones
可用性區域。
zones?: string[]
屬性值
string[]
繼承的屬性詳細資料
id
資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
id?: string
屬性值
string
location
name
systemData
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。
systemData?: SystemData
屬性值
tags
type
資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”
type?: string
屬性值
string