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

ServerCollectors interface

表示 ServerCollectors 的接口。

方法详细信息

create(string, string, string, ServerCollectorsCreateOptionalParams)

创建或更新服务器收集器

function create(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: ServerCollectorsCreateOptionalParams): Promise<ServerCollectorsCreateResponse>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

serverCollectorName

string

项目中服务器收集器的唯一名称。

options
ServerCollectorsCreateOptionalParams

选项参数。

返回

delete(string, string, string, ServerCollectorsDeleteOptionalParams)

从项目中删除服务器收集器。

function delete(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: ServerCollectorsDeleteOptionalParams): Promise<ServerCollectorsDeleteHeaders>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

serverCollectorName

string

项目中服务器收集器的唯一名称。

options
ServerCollectorsDeleteOptionalParams

选项参数。

返回

get(string, string, string, ServerCollectorsGetOptionalParams)

获取服务器收集器。

function get(resourceGroupName: string, projectName: string, serverCollectorName: string, options?: ServerCollectorsGetOptionalParams): Promise<ServerCollectorsGetResponse>

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

serverCollectorName

string

项目中服务器收集器的唯一名称。

options
ServerCollectorsGetOptionalParams

选项参数。

返回

listByProject(string, string, ServerCollectorsListByProjectOptionalParams)

获取服务器收集器的列表。

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

参数

resourceGroupName

string

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

projectName

string

Azure Migrate 项目的名称。

返回