ReservationPurchaseRequest interface
预留购买请求
属性
| applied |
特定于应用的范围类型的属性。 如果不适用,则不需要。 如果 AppliedScopeType 为 ManagementGroup,则需要提供 tenantId 和 managementGroupId |
| applied |
将应用权益的订阅列表。 请勿指定 AppliedScopeType 是否为 Shared。 |
| applied |
应用的作用域的类型。 |
| billing |
表示计费计划。 |
| billing |
购买预留或节省计划需要收费的订阅注意:此属性不会序列化。 它只能由服务器填充。 |
| display |
预留的友好名称 |
| instance |
允许在同一自动调整组中的 SKU 之间应用预留折扣。 并非所有 SKU 都支持实例大小灵活性。 |
| instance |
打开此项会将预留折扣应用到同一 VM 大小组中的其他 VM。 仅指定 VirtualMachines 保留资源类型。 |
| location | 保留资源的 Azure 区域。 |
| quantity | 属于预留的 SKU 的数量。 必须大于零。 |
| renew | 将此项设置为 true 将在到期日期时间自动购买新权益。 |
| reserved |
预留的保留源类型,例如虚拟机。 注意:此属性不会序列化。 它只能由服务器填充。 |
| review |
这是需要查看 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
instanceFlexibilityPropertiesInstanceFlexibility
允许在同一自动调整组中的 SKU 之间应用预留折扣。 并非所有 SKU 都支持实例大小灵活性。
instanceFlexibilityPropertiesInstanceFlexibility?: string
属性值
string
instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility
打开此项会将预留折扣应用到同一 VM 大小组中的其他 VM。 仅指定 VirtualMachines 保留资源类型。
instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility?: string
属性值
string
location
保留资源的 Azure 区域。
location?: string
属性值
string
quantity
属于预留的 SKU 的数量。 必须大于零。
quantity?: number
属性值
number
renew
将此项设置为 true 将在到期日期时间自动购买新权益。
renew?: boolean
属性值
boolean
reservedResourceType
预留的保留源类型,例如虚拟机。 注意:此属性不会序列化。 它只能由服务器填充。
reservedResourceType?: string
属性值
string
reviewDateTime
这是需要查看 Azure 混合权益的日期时间。
reviewDateTime?: Date
属性值
Date
sku
term
预留期限,例如 P1Y 注意:此属性不会序列化。 它只能由服务器填充。
term?: string
属性值
string