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

Groups - Get

获取特定组。
获取与项目中特定组相关的信息。 返回模型节中指定的类型为“group”的 json 对象。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}?api-version=2019-10-01

URI 参数

名称 必需 类型 说明
groupName
path True

string

项目中组的唯一名称。

projectName
path True

string

Azure Migrate 项目的名称。

resourceGroupName
path True

string

项目所属的 Azure 资源组的名称。

subscriptionId
path True

string

在其中创建了项目的 Azure 订阅 ID。

api-version
query True

string

标准请求标头。 由服务用于标识客户端使用的 API 版本。

响应

名称 类型 说明
200 OK

Group

没问题。 返回具有指定名称的组。

Headers

x-ms-request-id: string

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 模拟用户帐户

示例

Groups_Get

Sample Request

GET https://management.azure.com/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westEurope/providers/Microsoft.Migrate/assessmentProjects/abgoyalWEselfhostb72bproject/groups/Test1?api-version=2019-10-01

Sample Response

{
  "id": "/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1",
  "name": "Test1",
  "eTag": "\"21009c31-0000-0d00-0000-5cd585ad0000\"",
  "type": "Microsoft.Migrate/assessmentprojects/groups",
  "properties": {
    "groupStatus": "Completed",
    "machineCount": 26,
    "assessments": [
      "/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourceGroups/abgoyal-westeurope/providers/Microsoft.Migrate/assessmentprojects/abgoyalWEselfhostb72bproject/groups/Test1/assessments/assessment_5_9_2019_16_22_14"
    ],
    "areAssessmentsRunning": false,
    "createdTimestamp": "2019-05-09T10:52:07.7368474Z",
    "updatedTimestamp": "2019-05-10T14:07:41.752989Z"
  }
}

定义

名称 说明
CloudError

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

CloudErrorBody

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

Group

在迁移项目中创建的组。

GroupProperties

组资源的属性。

GroupStatus

组是否已创建且是否有效。

CloudError

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

名称 类型 说明
error

CloudErrorBody

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

CloudErrorBody

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

名称 类型 说明
code

string

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

details

CloudErrorBody[]

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

message

string

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

target

string

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

Group

在迁移项目中创建的组。

名称 类型 说明
eTag

string

用于乐观并发控制。

id

string

对此组的路径引用。 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}

name

string

组名称。

properties

GroupProperties

组的属性。

type

string

对象的类型 = [Microsoft.Migrate/assessmentProjects/groups]。

GroupProperties

组资源的属性。

名称 类型 说明
areAssessmentsRunning

boolean

如果评估处于运行状态。

assessments

string[]

对此组创建的评估的引用列表。

createdTimestamp

string

创建此组的时间。 以 ISO-8601 格式表示的 Date-Time。

groupStatus

GroupStatus

组是否已创建且是否有效。

groupType

string

组的类型。

machineCount

integer

此组的一部分的计算机数。

updatedTimestamp

string

上次更新此组的时间。 以 ISO-8601 格式表示的 Date-Time。

GroupStatus

组是否已创建且是否有效。

名称 类型 说明
Completed

string

Created

string

Invalid

string

Running

string

Updated

string