你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Move Collections - Update

汇报移动集合。

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}?api-version=2023-08-01

URI 参数

名称 必需 类型 说明
moveCollectionName
path True

string

移动集合名称。

resourceGroupName
path True

string

资源组名称。

subscriptionId
path True

string

订阅 ID。

api-version
query True

string

客户端 API 版本。

请求正文

名称 类型 说明
identity

Identity

定义 Move 集合的 MSI 属性。

tags

object

获取或设置资源标记。

响应

名称 类型 说明
200 OK

MoveCollection

成功

Other Status Codes

CloudError

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

MoveCollections_Update

Sample Request

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/moveCollections/movecollection1?api-version=2023-08-01

{
  "tags": {
    "key1": "mc1"
  },
  "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-01T15:06:54.2757906Z",
    "lastModifiedBy": "user@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2021-08-27T17:16:24.3644126Z"
  }
}

定义

名称 说明
CloudError

来自服务的错误响应。

CloudErrorBody

来自服务的错误响应。

createdByType

创建资源的标识类型。

Errors

定义移动资源错误。

Identity

定义 Move 集合的 MSI 属性。

MoveCollection

定义移动集合。

MoveCollectionProperties

定义移动集合属性。

MoveResourceErrorBody

来自 Azure Migrate 服务的错误响应。

MoveType

定义 MoveType。

ProvisioningState

定义预配状态。

ResourceIdentityType

用于资源移动程序服务的标识类型。

systemData

与资源的创建和上次修改相关的元数据。

UpdateMoveCollectionRequest

定义用于更新移动集合的请求正文。

CloudError

来自服务的错误响应。

名称 类型 说明
error

CloudErrorBody

云错误正文。

CloudErrorBody

来自服务的错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

CloudErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,该消息适用于在用户界面中显示。

target

string

特定错误的目标。 例如,属性的名称出错。

createdByType

创建资源的标识类型。

名称 类型 说明
Application

string

Key

string

ManagedIdentity

string

User

string

Errors

定义移动资源错误。

名称 类型 说明
properties

MoveResourceErrorBody

移动资源错误正文。

Identity

定义 Move 集合的 MSI 属性。

名称 类型 说明
principalId

string

获取或设置主体 ID。

tenantId

string

获取或设置租户 ID。

type

ResourceIdentityType

用于资源移动程序服务的标识类型。

MoveCollection

定义移动集合。

名称 类型 说明
etag

string

资源的 etag。

id

string

资源的完全限定资源 ID。

identity

Identity

定义 Move 集合的 MSI 属性。

location

string

资源所在的地理位置。

name

string

资源的名称

properties

MoveCollectionProperties

定义移动集合属性。

systemData

systemData

与资源的创建和上次修改相关的元数据。

tags

object

资源标记。

type

string

资源类型。

MoveCollectionProperties

定义移动集合属性。

名称 类型 说明
errors

Errors

定义移动集合错误。

moveRegion

string

获取或设置移动区域,该移动区域指示将执行 VM 区域到区域移动的区域。

moveType

MoveType

定义 MoveType。

provisioningState

ProvisioningState

定义预配状态。

sourceRegion

string

获取或设置源区域。

targetRegion

string

获取或设置目标区域。

version

string

获取或设置移动集合的版本。

MoveResourceErrorBody

来自 Azure Migrate 服务的错误响应。

名称 类型 说明
code

string

错误的标识符。 代码是固定的,旨在以编程方式使用。

details

MoveResourceErrorBody[]

有关错误的其他详细信息的列表。

message

string

描述错误的消息,该消息适用于在用户界面中显示。

target

string

特定错误的目标。 例如,属性的名称出错。

MoveType

定义 MoveType。

名称 类型 说明
RegionToRegion

string

RegionToZone

string

ProvisioningState

定义预配状态。

名称 类型 说明
Creating

string

Failed

string

Succeeded

string

Updating

string

ResourceIdentityType

用于资源移动程序服务的标识类型。

名称 类型 说明
None

string

SystemAssigned

string

UserAssigned

string

systemData

与资源的创建和上次修改相关的元数据。

名称 类型 说明
createdAt

string

资源的创建时间戳 (UTC) 。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识类型。

lastModifiedAt

string

资源上次修改的时间戳 (UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识类型。

UpdateMoveCollectionRequest

定义用于更新移动集合的请求正文。

名称 类型 说明
identity

Identity

定义 Move 集合的 MSI 属性。

tags

object

获取或设置资源标记。