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

Groups interface

表示组的接口。

方法

create(string, string, string, GroupsCreateOptionalParams)

通过发送类型为“group”的 json 对象,作为请求正文的一部分,创建一个新组。 项目中的组名称是唯一的。

此作是幂等的。

delete(string, string, string, GroupsDeleteOptionalParams)

从项目中删除组。 计算机保留在项目中。 删除不存在的组会导致无作。

组是项目中计算机的聚合机制。 因此,删除组不会删除其中的计算机。

get(string, string, string, GroupsGetOptionalParams)

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

listByProject(string, string, GroupsListByProjectOptionalParams)

获取在项目中创建的所有组。 返回“模型”部分中指定的“group”类型的对象的 json 数组。

updateMachines(string, string, string, GroupsUpdateMachinesOptionalParams)

通过添加或删除计算机来更新组中的计算机。

方法详细信息

create(string, string, string, GroupsCreateOptionalParams)

通过发送类型为“group”的 json 对象,作为请求正文的一部分,创建一个新组。 项目中的组名称是唯一的。

此作是幂等的。

function create(resourceGroupName: string, projectName: string, groupName: string, options?: GroupsCreateOptionalParams): Promise<GroupsCreateResponse>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

groupName

string

项目中组的唯一名称。

options
GroupsCreateOptionalParams

选项参数。

返回

delete(string, string, string, GroupsDeleteOptionalParams)

从项目中删除组。 计算机保留在项目中。 删除不存在的组会导致无作。

组是项目中计算机的聚合机制。 因此,删除组不会删除其中的计算机。

function delete(resourceGroupName: string, projectName: string, groupName: string, options?: GroupsDeleteOptionalParams): Promise<GroupsDeleteHeaders>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

groupName

string

项目中组的唯一名称。

options
GroupsDeleteOptionalParams

选项参数。

返回

get(string, string, string, GroupsGetOptionalParams)

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

function get(resourceGroupName: string, projectName: string, groupName: string, options?: GroupsGetOptionalParams): Promise<GroupsGetResponse>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

groupName

string

项目中组的唯一名称。

options
GroupsGetOptionalParams

选项参数。

返回

listByProject(string, string, GroupsListByProjectOptionalParams)

获取在项目中创建的所有组。 返回“模型”部分中指定的“group”类型的对象的 json 数组。

function listByProject(resourceGroupName: string, projectName: string, options?: GroupsListByProjectOptionalParams): PagedAsyncIterableIterator<Group, Group[], PageSettings>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

options
GroupsListByProjectOptionalParams

选项参数。

返回

updateMachines(string, string, string, GroupsUpdateMachinesOptionalParams)

通过添加或删除计算机来更新组中的计算机。

function updateMachines(resourceGroupName: string, projectName: string, groupName: string, options?: GroupsUpdateMachinesOptionalParams): Promise<GroupsUpdateMachinesResponse>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

groupName

string

项目中组的唯一名称。

options
GroupsUpdateMachinesOptionalParams

选项参数。

返回