共用方式為


CapacityReservationGroup 類別

指定應指派容量保留的容量保留群組相關資訊。 <br>``<br> 目前,容量保留只能在建立時新增至容量保留群組。 現有的容量保留無法新增或移至另一個容量保留群組。

變數只會由伺服器填入,而且會在傳送要求時予以忽略。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.compute.v2021_11_01.models._models_py3.Resource
CapacityReservationGroup

建構函式

CapacityReservationGroup(*, location: str, tags: Dict[str, str] | None = None, zones: List[str] | None = None, **kwargs: Any)

Keyword-Only Parameters

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

zones
list[str]

可用性區域用於此容量保留群組。 區域只能在建立期間指派。 如果未提供,群組僅支援區域中的區域資源。 如果提供,則會強制群組中的每個容量保留專案位於其中一個區域中。

變數

id
str

資源識別碼。

name
str

資源名稱。

type
str

資源類型。

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

zones
list[str]

可用性區域用於此容量保留群組。 區域只能在建立期間指派。 如果未提供,群組僅支援區域中的區域資源。 如果提供,則會強制群組中的每個容量保留專案位於其中一個區域中。

capacity_reservations
list[SubResourceReadOnly]

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

virtual_machines_associated
list[SubResourceReadOnly]

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

instance_view
CapacityReservationGroupInstanceView

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