Reservation - Split
分割 Reservation
。
將 Reservation
分割成具有指定數量分配的兩個 Reservation
。
POST https://management.azure.com/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split?api-version=2022-11-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
reservation
|
path | True |
string |
保留的訂單標識碼 |
api-version
|
query | True |
string |
支援的版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
properties.quantities |
integer[] (int32) |
要建立之新保留中的數量清單。 |
properties.reservationId |
string |
要分割之保留的資源標識碼。 資源標識符的格式應該是 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
分割作業之後所建立 |
|
202 Accepted |
要求已接受且正在處理中 標題
|
|
Other Status Codes |
非預期的錯誤 |
範例
Split
範例要求
POST https://management.azure.com/providers/Microsoft.Capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/split?api-version=2022-11-01
{
"properties": {
"quantities": [
1,
2
],
"reservationId": "/providers/Microsoft.Capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"
}
}
範例回覆
[
{
"sku": {
"name": "Standard_DS1_v2"
},
"id": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7",
"type": "Microsoft.Capacity/reservationOrders/reservations",
"name": "00238563-7312-4c20-a134-8c030bf938a7",
"etag": 2,
"location": "eastus",
"properties": {
"appliedScopeProperties": {
"subscriptionId": "/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3",
"displayName": "Azure subscription 1"
},
"renew": false,
"billingScopeId": "/subscriptions/19376483-64b8-49e4-a931-d5248828720a",
"appliedScopeType": "Single",
"quantity": 1,
"provisioningState": "Succeeded",
"expiryDate": "2018-09-22",
"expiryDateTime": "2018-09-22T01:00:30.9253826Z",
"displayName": "cabri_test",
"billingPlan": "Monthly",
"effectiveDateTime": "2017-09-22T01:00:30.9253826Z",
"lastUpdatedDateTime": "2017-09-22T01:00:36.3191627Z",
"reservedResourceType": "VirtualMachines",
"instanceFlexibility": "Off",
"skuDescription": "D1 v2",
"splitProperties": {
"splitSource": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"
}
}
},
{
"sku": {
"name": "Standard_DS1_v2"
},
"id": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de",
"type": "Microsoft.Capacity/reservationOrders/reservations",
"name": "e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de",
"etag": 2,
"location": "eastus",
"properties": {
"appliedScopeProperties": {
"subscriptionId": "/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3",
"displayName": "Azure subscription 1"
},
"renew": false,
"billingScopeId": "/subscriptions/19376483-64b8-49e4-a931-d5248828720a",
"appliedScopeType": "Single",
"quantity": 2,
"provisioningState": "Succeeded",
"expiryDate": "2018-09-22",
"expiryDateTime": "2018-09-22T01:00:30.9253826Z",
"displayName": "cabri_test",
"billingPlan": "Monthly",
"effectiveDateTime": "2017-09-22T01:00:30.9253826Z",
"lastUpdatedDateTime": "2017-09-22T01:00:36.3191627Z",
"reservedResourceType": "VirtualMachines",
"instanceFlexibility": "Off",
"skuDescription": "D1 v2",
"splitProperties": {
"splitSource": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"
}
}
},
{
"sku": {
"name": "Standard_DS1_v2"
},
"id": "/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a",
"type": "Microsoft.Capacity/reservationOrders/reservations",
"name": "bcae77cd-3119-4766-919f-b50d36c75c7a",
"etag": 10,
"location": "eastus",
"properties": {
"appliedScopeProperties": {
"subscriptionId": "/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3",
"displayName": "Azure subscription 1"
},
"renew": false,
"billingScopeId": "/subscriptions/19376483-64b8-49e4-a931-d5248828720a",
"appliedScopeType": "Single",
"quantity": 3,
"provisioningState": "Cancelled",
"expiryDate": "2018-09-22",
"expiryDateTime": "2018-09-22T01:00:30.9253826Z",
"displayName": "cabri_test",
"billingPlan": "Monthly",
"effectiveDateTime": "2017-09-22T01:00:30.9253826Z",
"extendedStatusInfo": {
"statusCode": "Split",
"message": "This reservation was split and is no longer active."
},
"lastUpdatedDateTime": "2017-09-22T01:00:36.3191627Z",
"reservedResourceType": "VirtualMachines",
"instanceFlexibility": "Off",
"skuDescription": "D1 v2",
"splitProperties": {
"splitDestinations": [
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7",
"/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"
]
}
}
}
]
Location: https://management.azure.com/providers/Microsoft.Capacity/reservationorders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/splitoperationresults/bcae77cd-3119-4766-919f-b50d36c75c7a_10?api-version=2022-11-01
Retry-After: 120
定義
名稱 | Description |
---|---|
Applied |
套用範圍類型的特定屬性。 如果不適用,則不需要。 如果 AppliedScopeType 為 ManagementGroup,則需要提供 tenantId 和 managementGroupId |
Applied |
套用範圍的類型。 |
Billing |
客戶的貨幣和金額將會以客戶的當地貨幣收取續約購買費用。 不包括稅金。 |
created |
建立資源的身分識別類型。 |
Error |
錯誤資訊 |
Error |
描述服務無法處理傳入要求原因的錯誤碼 |
Extended |
擴充錯誤資訊,包括錯誤碼和錯誤訊息 |
Extended |
|
Instance |
開啟此選項會將保留折扣套用至相同 VM 大小群組中的其他 VM。 只指定 VirtualMachines 保留的資源類型。 |
Kind |
要保留的資源提供者類型。 |
Pricing |
Microsoft用於記錄的數量。 用於計算退款限制的退款期間。 不包括稅金。 這是在到期前 30 天鎖定的價格。 |
Provisioning |
代表保留的目前狀態。 |
Purchase |
購買保留的要求 |
Renew |
保留的更新屬性。 |
Reservation |
代表計費方案。 |
Reservation |
保留合併的屬性 |
Reservation |
保留的定義。 |
Reservation |
保留分割的屬性 |
Reservations |
保留的屬性 |
Reservation |
|
Reservation |
保留交換的屬性 |
Reservation |
代表保留期限。 |
Reservation |
保留使用率的匯總值 |
Reserved |
每個保留資源類型特有的屬性。 如果不適用,則不需要。 |
Reserved |
正在保留的資源類型。 |
Sku |
sku 的名稱 |
Split |
保留分割的要求 |
system |
與建立和上次修改資源相關的元數據。 |
Utilization |
保留使用率 |
AppliedScopeProperties
套用範圍類型的特定屬性。 如果不適用,則不需要。 如果 AppliedScopeType 為 ManagementGroup,則需要提供 tenantId 和 managementGroupId
名稱 | 類型 | Description |
---|---|---|
displayName |
string |
顯示名稱 |
managementGroupId |
string |
必須套用權益之管理群組的完整標識符。 |
resourceGroupId |
string |
資源群組的完整標識碼。 |
subscriptionId |
string |
訂用帳戶的完整標識碼。 |
tenantId |
string |
儲存方案應套用權益的租用戶標識碼。 |
AppliedScopeType
套用範圍的類型。
值 | Description |
---|---|
ManagementGroup | |
Shared | |
Single |
BillingCurrencyTotal
客戶的貨幣和金額將會以客戶的當地貨幣收取續約購買費用。 不包括稅金。
名稱 | 類型 | Description |
---|---|---|
amount |
number |
|
currencyCode |
string |
此購買記錄所使用貨幣的 ISO 4217 3 字母貨幣代碼。 |
createdByType
建立資源的身分識別類型。
值 | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
Error
錯誤資訊
名稱 | 類型 | Description |
---|---|---|
error |
擴充錯誤資訊,包括錯誤碼和錯誤訊息 |
ErrorResponseCode
描述服務無法處理傳入要求原因的錯誤碼
值 | Description |
---|---|
ActivateQuoteFailed | |
AppliedScopesNotAssociatedWithCommerceAccount | |
AppliedScopesSameAsExisting | |
AuthorizationFailed | |
BadRequest | |
BillingCustomerInputError | |
BillingError | |
BillingPaymentInstrumentHardError | |
BillingPaymentInstrumentSoftError | |
BillingScopeIdCannotBeChanged | |
BillingTransientError | |
CalculatePriceFailed | |
CapacityUpdateScopesFailed | |
ClientCertificateThumbprintNotSet | |
CreateQuoteFailed | |
Forbidden | |
FulfillmentConfigurationError | |
FulfillmentError | |
FulfillmentOutOfStockError | |
FulfillmentTransientError | |
HttpMethodNotSupported | |
InternalServerError | |
InvalidAccessToken | |
InvalidFulfillmentRequestParameters | |
InvalidHealthCheckType | |
InvalidLocationId | |
InvalidRefundQuantity | |
InvalidRequestContent | |
InvalidRequestUri | |
InvalidReservationId | |
InvalidReservationOrderId | |
InvalidSingleAppliedScopesCount | |
InvalidSubscriptionId | |
InvalidTenantId | |
MissingAppliedScopesForSingle | |
MissingTenantId | |
NoValidReservationsToReRate | |
NonsupportedAccountId | |
NotSpecified | |
NotSupportedCountry | |
OperationCannotBePerformedInCurrentState | |
OperationFailed | |
PatchValuesSameAsExisting | |
PaymentInstrumentNotFound | |
PurchaseError | |
ReRateOnlyAllowedForEA | |
RefundLimitExceeded | |
ReservationIdNotInReservationOrder | |
ReservationOrderCreationFailed | |
ReservationOrderIdAlreadyExists | |
ReservationOrderNotEnabled | |
ReservationOrderNotFound | |
RiskCheckFailed | |
RoleAssignmentCreationFailed | |
SelfServiceRefundNotSupported | |
ServerTimeout | |
UnauthenticatedRequestsThrottled | |
UnsupportedReservationTerm |
ExtendedErrorInfo
擴充錯誤資訊,包括錯誤碼和錯誤訊息
名稱 | 類型 | Description |
---|---|---|
code |
描述服務無法處理傳入要求原因的錯誤碼 |
|
message |
string |
ExtendedStatusInfo
名稱 | 類型 | Description |
---|---|---|
message |
string |
提供狀態代碼詳細資訊的訊息。 |
statusCode |
InstanceFlexibility
開啟此選項會將保留折扣套用至相同 VM 大小群組中的其他 VM。 只指定 VirtualMachines 保留的資源類型。
值 | Description |
---|---|
Off | |
On |
Kind
要保留的資源提供者類型。
值 | Description |
---|---|
Microsoft.Compute |
PricingCurrencyTotal
Microsoft用於記錄的數量。 用於計算退款限制的退款期間。 不包括稅金。 這是在到期前 30 天鎖定的價格。
名稱 | 類型 | Description |
---|---|---|
amount |
number |
|
currencyCode |
string |
此購買記錄所使用貨幣的 ISO 4217 3 字母貨幣代碼。 |
ProvisioningState
代表保留的目前狀態。
值 | Description |
---|---|
BillingFailed | |
Cancelled | |
ConfirmedBilling | |
ConfirmedResourceHold | |
Created | |
Creating | |
Expired | |
Failed | |
Merged | |
PendingBilling | |
PendingResourceHold | |
Split | |
Succeeded |
PurchaseRequest
購買保留的要求
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
location |
string |
保留資源所在的 Azure 區域。 |
|
properties.appliedScopeProperties |
套用範圍類型的特定屬性。 如果不適用,則不需要。 如果 AppliedScopeType 為 ManagementGroup,則需要提供 tenantId 和 managementGroupId |
||
properties.appliedScopeType |
套用範圍的類型。 |
||
properties.appliedScopes |
string[] |
將套用權益的訂用帳戶清單。 請勿指定 AppliedScopeType 是否為 Shared。 此屬性將會取代為 Single AppliedScopeType,並取代為 appliedScopeProperties。 |
|
properties.billingPlan |
代表計費方案。 |
||
properties.billingScopeId |
string |
購買保留或節省方案的訂用帳戶 |
|
properties.displayName |
string |
保留的易記名稱 |
|
properties.quantity |
integer (int32) |
屬於保留一部分的 SKU 數量。 |
|
properties.renew |
boolean |
False |
將此設定為 true 會自動在到期日時間購買新的保留。 |
properties.reservedResourceProperties |
每個保留資源類型特有的屬性。 如果不適用,則不需要。 |
||
properties.reservedResourceType |
正在保留的資源類型。 |
||
properties.reviewDateTime |
string (date-time) |
這是需要檢閱 Azure 混合式權益的日期時間。 |
|
properties.term |
代表保留期限。 |
||
sku |
sku 的名稱 |
RenewPropertiesResponse
保留的更新屬性。
名稱 | 類型 | Description |
---|---|---|
billingCurrencyTotal |
客戶的貨幣和金額將會以客戶的當地貨幣收取續約購買費用。 不包括稅金。 |
|
pricingCurrencyTotal |
Microsoft用於記錄的數量。 用於計算退款限制的退款期間。 不包括稅金。 這是在到期前 30 天鎖定的價格。 |
|
purchaseProperties |
購買保留的要求 |
ReservationBillingPlan
代表計費方案。
值 | Description |
---|---|
Monthly | |
Upfront |
ReservationMergeProperties
保留合併的屬性
名稱 | 類型 | Description |
---|---|---|
mergeDestination |
string |
由於合併而建立的保留資源標識碼。 資源標識符的格式為 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
mergeSources |
string[] |
來源保留的資源標識碼已合併以形成此保留。 資源標識符的格式為 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
ReservationResponse
保留的定義。
名稱 | 類型 | Description |
---|---|---|
etag |
integer (int32) |
|
id |
string (arm-id) |
資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
kind |
要保留的資源提供者類型。 |
|
location |
string |
保留資源所在的 Azure 區域。 |
name |
string |
資源的名稱 |
properties |
與此保留相關聯的屬性 |
|
sku |
與此保留相關聯的 SKU 資訊 |
|
systemData |
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。 |
|
type |
string |
資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
ReservationSplitProperties
保留分割的屬性
名稱 | 類型 | Description |
---|---|---|
splitDestinations |
string[] |
因為分割而建立的目的地資源標識符清單。 資源標識符的格式為 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
splitSource |
string |
分割此保留的資源識別碼。 資源標識符的格式為 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
ReservationsProperties
保留的屬性
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
appliedScopeProperties |
套用範圍類型的特定屬性。 如果不適用,則不需要。 如果 AppliedScopeType 為 ManagementGroup,則需要提供 tenantId 和 managementGroupId |
||
appliedScopeType |
套用的範圍類型 |
||
appliedScopes |
string[] |
已套用的範圍清單 |
|
archived |
boolean |
指出保留是否已封存 |
|
benefitStartTime |
string (date-time) |
這是保留權益啟動時的 DateTime。 |
|
billingPlan |
此 SKU 可用的計費方案選項。 |
||
billingScopeId |
string |
購買保留或節省方案的訂用帳戶 |
|
capabilities |
string |
保留的功能 |
|
displayName |
string |
方便用戶識別保留的易記名稱 |
|
displayProvisioningState |
string |
顯示保留的布建狀態,例如成功 |
|
effectiveDateTime |
string (date-time) |
從此版本生效時開始的保留日期時間。 |
|
expiryDate |
string (date) |
這是保留到期的日期。 |
|
expiryDateTime |
string (date-time) |
這是保留到期的日期時間。 |
|
extendedStatusInfo |
提供狀態代碼詳細資訊的訊息。 |
||
instanceFlexibility |
允許在相同自動調整群組內的 SKU 之間套用保留折扣。 並非所有 SKU 都支援實例大小彈性。 |
||
lastUpdatedDateTime |
string (date-time) |
上次更新保留的 DateTime。 |
|
mergeProperties |
保留合併的屬性 |
||
provisioningState |
保留的目前狀態。 |
||
provisioningSubState |
string |
保留的布建子狀態,例如成功 |
|
purchaseDate |
string (date) |
這是購買保留的日期。 |
|
purchaseDateTime |
string (date-time) |
這是購買保留的日期時間。 |
|
quantity |
integer (int32) |
屬於保留一部分的 SKU 數量。 |
|
renew |
boolean |
False |
將此設定為 true 會自動在到期日時間購買新的保留。 |
renewDestination |
string |
因為更新而購買的保留標識碼。 資源標識符的格式為 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}。 |
|
renewProperties |
保留的更新屬性。 |
||
renewSource |
string |
保留標識符,此保留會從中更新此保留。 資源標識符的格式為 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}。 |
|
reservedResourceType |
正在保留的資源類型。 |
||
reviewDateTime |
string (date-time) |
這是需要檢閱 Azure Hybrid Benefit 的日期時間。 |
|
skuDescription |
string |
英文 SKU 的描述。 |
|
splitProperties |
保留分割的屬性 |
||
swapProperties |
保留交換的屬性 |
||
term |
代表保留期限。 |
||
userFriendlyAppliedScopeType |
string |
保留的已套用範圍類型,例如共用 |
|
userFriendlyRenewState |
string |
保留的更新狀態以供顯示,例如開啟 |
|
utilization |
保留使用率 |
ReservationStatusCode
值 | Description |
---|---|
Active | |
Expired | |
Merged | |
None | |
PaymentInstrumentError | |
Pending | |
Processing | |
PurchaseError | |
Split | |
Succeeded |
ReservationSwapProperties
保留交換的屬性
名稱 | 類型 | Description |
---|---|---|
swapDestination |
string |
原始資源要交換的保留資源標識碼。 資源標識符的格式為 /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
swapSource |
string |
已交換之來源保留的資源標識碼。 資源標識符的格式為 /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
ReservationTerm
代表保留期限。
值 | Description |
---|---|
P1Y | |
P3Y | |
P5Y |
ReservationUtilizationAggregates
保留使用率的匯總值
名稱 | 類型 | Description |
---|---|---|
grain |
number |
匯總的粒紋 |
grainUnit |
string |
匯總的粒紋單位 |
value |
number |
匯總值 |
valueUnit |
string |
匯總值單位 |
ReservedResourceProperties
每個保留資源類型特有的屬性。 如果不適用,則不需要。
名稱 | 類型 | Description |
---|---|---|
instanceFlexibility |
開啟此選項會將保留折扣套用至相同 VM 大小群組中的其他 VM。 只指定 VirtualMachines 保留的資源類型。 |
ReservedResourceType
正在保留的資源類型。
值 | Description |
---|---|
AVS | |
AppService | |
AzureDataExplorer | |
AzureFiles | |
BlockBlob | |
CosmosDb | |
DataFactory | |
Databricks | |
DedicatedHost | |
ManagedDisk | |
MariaDb | |
MySql | |
NetAppStorage | |
PostgreSql | |
RedHat | |
RedHatOsa | |
RedisCache | |
SapHana | |
SqlAzureHybridBenefit | |
SqlDataWarehouse | |
SqlDatabases | |
SqlEdge | |
SuseLinux | |
VMwareCloudSimple | |
VirtualMachineSoftware | |
VirtualMachines |
SkuName
sku 的名稱
名稱 | 類型 | Description |
---|---|---|
name |
string |
SplitRequest
保留分割的要求
名稱 | 類型 | Description |
---|---|---|
properties.quantities |
integer[] (int32) |
要建立之新保留中的數量清單。 |
properties.reservationId |
string |
要分割之保留的資源標識碼。 資源標識符的格式應該是 /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |
Utilization
保留使用率
名稱 | 類型 | Description |
---|---|---|
aggregates |
保留使用率匯總的陣列 |
|
trend |
string |
保留的最後7天使用率趨勢 |