Resources - Validate Move Resources
驗證是否可以將資源從某個資源群組移至另一個資源群組。
這項作業會檢查指定的資源是否可以移至目標。 要移動的資源必須位於所使用來源訂用帳戶中的相同來源資源群組中。 目標資源群組可能位於不同的訂用帳戶中。 如果驗證成功,它會傳回 HTTP 回應碼 204 (沒有內容) 。 如果驗證失敗,它會傳回 HTTP 回應碼 409 (衝突) 錯誤訊息。 擷取 [位置] 標頭值中的 URL,以檢查長時間執行作業的結果。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources?api-version=2021-04-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
source
|
path | True |
string |
來源訂用帳戶中的資源組名,其中包含要驗證要移動的資源。 Regex pattern: |
subscription
|
path | True |
string |
Microsoft Azure 訂用帳戶標識碼。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
resources |
string[] |
資源的標識碼。 |
targetResourceGroup |
string |
目標資源群組。 |
回應
名稱 | 類型 | Description |
---|---|---|
202 Accepted |
已接受 |
|
204 No Content |
沒有內容 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
定義
名稱 | Description |
---|---|
Cloud |
資源管理要求的錯誤回應。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤回應 |
Resources |
移動資源的參數。 |
CloudError
資源管理要求的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤回應 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細資料。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ResourcesMoveInfo
移動資源的參數。
名稱 | 類型 | Description |
---|---|---|
resources |
string[] |
資源的標識碼。 |
targetResourceGroup |
string |
目標資源群組。 |