Reservation Order - Change Directory
變更的 ReservationOrder
目錄。
將目錄 (租使用者) ReservationOrder
,並將其下的所有 Reservation
變更為指定的租用戶標識碼
POST https://management.azure.com/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory?api-version=2022-11-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
reservation
|
path | True |
string |
保留的順序標識碼 |
api-version
|
query | True |
string |
支援的版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
destinationTenantId |
string |
要轉移保留訂單的租用戶標識碼 GUID |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
變更目錄作業之後建立的 |
|
Other Status Codes |
未預期的錯誤 |
範例
ChangeDirectory
Sample Request
Sample Response
{
"reservationOrder": {
"id": "a075419f-44cc-497f-b68a-14ee811d48b9",
"name": "VM_RI_10-02-2020_15-21",
"isSucceeded": true,
"error": "error string"
},
"reservations": [
{
"id": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
"name": "VM_RI_10-02-2020_15-21",
"isSucceeded": true,
"error": "error string"
}
]
}
定義
名稱 | Description |
---|---|
Change |
要求保留變更目錄的本文。 |
Change |
變更目錄回應 |
Change |
變更保留訂單或保留的目錄結果 |
Error |
錯誤資訊 |
Error |
描述服務無法處理傳入要求原因的錯誤碼 |
Extended |
擴充的錯誤資訊,包括錯誤碼和錯誤訊息 |
ChangeDirectoryRequest
要求保留變更目錄的本文。
名稱 | 類型 | Description |
---|---|---|
destinationTenantId |
string |
要轉移保留訂單的租用戶標識碼 GUID |
ChangeDirectoryResponse
變更目錄回應
名稱 | 類型 | Description |
---|---|---|
reservationOrder |
變更保留訂單或保留的目錄結果 |
|
reservations |
變更保留訂單或保留的目錄結果 |
ChangeDirectoryResult
變更保留訂單或保留的目錄結果
名稱 | 類型 | Description |
---|---|---|
error |
string |
作業失敗時的錯誤原因。 否則為 Null |
id |
string |
保留訂單或保留的標識碼 |
isSucceeded |
boolean |
如果變更目錄作業在此保留訂單或保留上成功,則為 True |
name |
string |
保留訂單或保留的名稱 |
Error
錯誤資訊
名稱 | 類型 | Description |
---|---|---|
error |
擴充的錯誤資訊,包括錯誤碼和錯誤訊息 |
ErrorResponseCode
描述服務無法處理傳入要求原因的錯誤碼
名稱 | 類型 | Description |
---|---|---|
ActivateQuoteFailed |
string |
|
AppliedScopesNotAssociatedWithCommerceAccount |
string |
|
AppliedScopesSameAsExisting |
string |
|
AuthorizationFailed |
string |
|
BadRequest |
string |
|
BillingCustomerInputError |
string |
|
BillingError |
string |
|
BillingPaymentInstrumentHardError |
string |
|
BillingPaymentInstrumentSoftError |
string |
|
BillingScopeIdCannotBeChanged |
string |
|
BillingTransientError |
string |
|
CalculatePriceFailed |
string |
|
CapacityUpdateScopesFailed |
string |
|
ClientCertificateThumbprintNotSet |
string |
|
CreateQuoteFailed |
string |
|
Forbidden |
string |
|
FulfillmentConfigurationError |
string |
|
FulfillmentError |
string |
|
FulfillmentOutOfStockError |
string |
|
FulfillmentTransientError |
string |
|
HttpMethodNotSupported |
string |
|
InternalServerError |
string |
|
InvalidAccessToken |
string |
|
InvalidFulfillmentRequestParameters |
string |
|
InvalidHealthCheckType |
string |
|
InvalidLocationId |
string |
|
InvalidRefundQuantity |
string |
|
InvalidRequestContent |
string |
|
InvalidRequestUri |
string |
|
InvalidReservationId |
string |
|
InvalidReservationOrderId |
string |
|
InvalidSingleAppliedScopesCount |
string |
|
InvalidSubscriptionId |
string |
|
InvalidTenantId |
string |
|
MissingAppliedScopesForSingle |
string |
|
MissingTenantId |
string |
|
NoValidReservationsToReRate |
string |
|
NonsupportedAccountId |
string |
|
NotSpecified |
string |
|
NotSupportedCountry |
string |
|
OperationCannotBePerformedInCurrentState |
string |
|
OperationFailed |
string |
|
PatchValuesSameAsExisting |
string |
|
PaymentInstrumentNotFound |
string |
|
PurchaseError |
string |
|
ReRateOnlyAllowedForEA |
string |
|
RefundLimitExceeded |
string |
|
ReservationIdNotInReservationOrder |
string |
|
ReservationOrderCreationFailed |
string |
|
ReservationOrderIdAlreadyExists |
string |
|
ReservationOrderNotEnabled |
string |
|
ReservationOrderNotFound |
string |
|
RiskCheckFailed |
string |
|
RoleAssignmentCreationFailed |
string |
|
SelfServiceRefundNotSupported |
string |
|
ServerTimeout |
string |
|
UnauthenticatedRequestsThrottled |
string |
|
UnsupportedReservationTerm |
string |
ExtendedErrorInfo
擴充的錯誤資訊,包括錯誤碼和錯誤訊息
名稱 | 類型 | Description |
---|---|---|
code |
描述服務無法處理傳入要求原因的錯誤碼 |
|
message |
string |