ReservationPurchaseRequest interface

購買保留的要求

屬性

appliedScopeProperties

套用範圍類型的特定屬性。 如果不適用,則不需要。 如果 AppliedScopeType 為 ManagementGroup,則需要提供 tenantId 和 managementGroupId

appliedScopes

將套用權益的訂用帳戶清單。 請勿指定 AppliedScopeType 是否為 Shared。

appliedScopeType

套用範圍的類型。

billingPlan

代表計費方案。

billingScopeId

購買保留或節省方案的訂用帳戶

displayName

保留的易記名稱

instanceFlexibility

允許在相同自動調整群組內的 SKU 之間套用保留折扣。 並非所有 SKU 都支援實例大小彈性。

location

保留資源所在的 Azure 區域。

quantity

屬於保留一部分的 SKU 數量。 必須大於零。

renew

將此設定為 true 會自動在到期日期時間購買新的權益。

reservedResourceProperties

每個保留資源類型特有的屬性。 如果不適用,則不需要。

reservedResourceType

保留的保留來源類型,例如虛擬機。

reviewDateTime

這是需要檢閱 Azure 混合式權益的日期時間。

sku

sku 的名稱

term

保留期限,例如 P1Y

屬性詳細資料

appliedScopeProperties

套用範圍類型的特定屬性。 如果不適用,則不需要。 如果 AppliedScopeType 為 ManagementGroup,則需要提供 tenantId 和 managementGroupId

appliedScopeProperties?: ReservationAppliedScopeProperties

屬性值

appliedScopes

將套用權益的訂用帳戶清單。 請勿指定 AppliedScopeType 是否為 Shared。

appliedScopes?: string[]

屬性值

string[]

appliedScopeType

套用範圍的類型。

appliedScopeType?: string

屬性值

string

billingPlan

代表計費方案。

billingPlan?: string

屬性值

string

billingScopeId

購買保留或節省方案的訂用帳戶

billingScopeId?: string

屬性值

string

displayName

保留的易記名稱

displayName?: string

屬性值

string

instanceFlexibility

允許在相同自動調整群組內的 SKU 之間套用保留折扣。 並非所有 SKU 都支援實例大小彈性。

instanceFlexibility?: string

屬性值

string

location

保留資源所在的 Azure 區域。

location?: string

屬性值

string

quantity

屬於保留一部分的 SKU 數量。 必須大於零。

quantity?: number

屬性值

number

renew

將此設定為 true 會自動在到期日期時間購買新的權益。

renew?: boolean

屬性值

boolean

reservedResourceProperties

每個保留資源類型特有的屬性。 如果不適用,則不需要。

reservedResourceProperties?: ReservationPurchaseRequestPropertiesReservedResourceProperties

屬性值

reservedResourceType

保留的保留來源類型,例如虛擬機。

reservedResourceType?: string

屬性值

string

reviewDateTime

這是需要檢閱 Azure 混合式權益的日期時間。

reviewDateTime?: Date

屬性值

Date

sku

sku 的名稱

sku?: SkuName

屬性值

term

保留期限,例如 P1Y

term?: string

屬性值

string