Move Collections - Create
移動コレクションを作成または更新します。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}?api-version=2023-08-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
move
|
path | True |
string |
コレクション名の移動。 |
resource
|
path | True |
string |
リソース グループ名。 |
subscription
|
path | True |
string |
サブスクリプション ID。 |
api-version
|
query | True |
string |
クライアント API のバージョン。 |
要求本文
名前 | 型 | 説明 |
---|---|---|
identity |
移動コレクションの MSI プロパティを定義します。 |
|
location |
string |
リソースが保存されている地理的な場所。 |
properties |
移動コレクションのプロパティを定義します。 |
|
tags |
object |
リソース タグ。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
成功 |
|
201 Created |
Success |
|
Other Status Codes |
操作に失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントの借用 |
例
MoveCollections_Create
Sample Request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/moveCollections/movecollection1?api-version=2023-08-01
{
"location": "eastus2",
"properties": {
"sourceRegion": "eastus",
"targetRegion": "westus",
"moveType": "RegionToRegion"
},
"identity": {
"type": "SystemAssigned"
}
}
Sample Response
{
"name": "movecollection1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1",
"type": "Microsoft.Migrate/MoveCollections",
"location": "United States",
"identity": {
"type": "SystemAssigned",
"principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72",
"tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80"
},
"properties": {
"sourceRegion": "eastus",
"targetRegion": "westus",
"provisioningState": "Succeeded",
"version": "V1",
"moveType": "RegionToRegion"
},
"systemData": {
"createdBy": "user@microsoft.com",
"createdByType": "User",
"createdAt": "2021-08-29T15:06:54.2757906Z",
"lastModifiedBy": "user@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-29T15:06:54.2757906Z"
}
}
{
"name": "movecollection1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1",
"type": "Microsoft.Migrate/MoveCollections",
"location": "United States",
"identity": {
"type": "SystemAssigned",
"principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72",
"tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80"
},
"properties": {
"sourceRegion": "eastus",
"targetRegion": "westus",
"provisioningState": "Succeeded",
"version": "V1"
},
"systemData": {
"createdBy": "user@microsoft.com",
"createdByType": "User",
"createdAt": "2021-08-29T15:06:54.2757906Z",
"lastModifiedBy": "user@microsoft.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-29T15:06:54.2757906Z"
}
}
定義
名前 | 説明 |
---|---|
Cloud |
サービスからのエラー応答。 |
Cloud |
サービスからのエラー応答。 |
created |
リソースを作成した ID の種類。 |
Errors |
リソースの移動エラーを定義します。 |
Identity |
移動コレクションの MSI プロパティを定義します。 |
Move |
移動コレクションを定義します。 |
Move |
移動コレクションのプロパティを定義します。 |
Move |
Azure Migrate サービスからのエラー応答。 |
Move |
MoveType を定義します。 |
Provisioning |
プロビジョニングの状態を定義します。 |
Resource |
リソース ムーバー サービスに使用される ID の種類。 |
system |
リソースの作成と最後の変更に関連するメタデータ。 |
CloudError
サービスからのエラー応答。
名前 | 型 | 説明 |
---|---|---|
error |
クラウド エラー本文。 |
CloudErrorBody
サービスからのエラー応答。
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラーの識別子。 コードは不変であり、プログラムによって使用されることを意図しています。 |
details |
エラーに関するその他の詳細の一覧。 |
|
message |
string |
ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。 |
target |
string |
特定のエラーのターゲット。 たとえば、エラーが発生したプロパティの名前です。 |
createdByType
リソースを作成した ID の種類。
名前 | 型 | 説明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
Errors
リソースの移動エラーを定義します。
名前 | 型 | 説明 |
---|---|---|
properties |
リソースの移動エラー本文。 |
Identity
移動コレクションの MSI プロパティを定義します。
名前 | 型 | 説明 |
---|---|---|
principalId |
string |
プリンシパル ID を取得または設定します。 |
tenantId |
string |
テナント ID を取得または設定します。 |
type |
リソース ムーバー サービスに使用される ID の種類。 |
MoveCollection
移動コレクションを定義します。
名前 | 型 | 説明 |
---|---|---|
etag |
string |
リソースの etag。 |
id |
string |
リソースの完全修飾リソース ID。 |
identity |
移動コレクションの MSI プロパティを定義します。 |
|
location |
string |
リソースが保存されている地理的な場所。 |
name |
string |
リソースの名前 |
properties |
移動コレクションのプロパティを定義します。 |
|
systemData |
リソースの作成と最後の変更に関連するメタデータ。 |
|
tags |
object |
リソース タグ。 |
type |
string |
リソースの型。 |
MoveCollectionProperties
移動コレクションのプロパティを定義します。
名前 | 型 | 説明 |
---|---|---|
errors |
コレクションの移動エラーを定義します。 |
|
moveRegion |
string |
VM リージョンからゾーンへの移動が実行されるリージョンを示す移動リージョンを取得または設定します。 |
moveType |
MoveType を定義します。 |
|
provisioningState |
プロビジョニングの状態を定義します。 |
|
sourceRegion |
string |
ソースリージョンを取得または設定します。 |
targetRegion |
string |
ターゲットリージョンを取得または設定します。 |
version |
string |
移動コレクションのバージョンを取得または設定します。 |
MoveResourceErrorBody
Azure Migrate サービスからのエラー応答。
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラーの識別子。 コードは不変であり、プログラムによって使用されることを意図しています。 |
details |
エラーに関するその他の詳細の一覧。 |
|
message |
string |
ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。 |
target |
string |
特定のエラーのターゲット。 たとえば、エラーが発生したプロパティの名前です。 |
MoveType
MoveType を定義します。
名前 | 型 | 説明 |
---|---|---|
RegionToRegion |
string |
|
RegionToZone |
string |
ProvisioningState
プロビジョニングの状態を定義します。
名前 | 型 | 説明 |
---|---|---|
Creating |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |
ResourceIdentityType
リソース ムーバー サービスに使用される ID の種類。
名前 | 型 | 説明 |
---|---|---|
None |
string |
|
SystemAssigned |
string |
|
UserAssigned |
string |
systemData
リソースの作成と最後の変更に関連するメタデータ。
名前 | 型 | 説明 |
---|---|---|
createdAt |
string |
リソース作成のタイムスタンプ (UTC)。 |
createdBy |
string |
リソースを作成した ID。 |
createdByType |
リソースを作成した ID の種類。 |
|
lastModifiedAt |
string |
リソースの最終変更のタイムスタンプ (UTC) |
lastModifiedBy |
string |
リソースを最後に変更した ID。 |
lastModifiedByType |
リソースを最後に変更した ID の種類。 |