通过


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

MachineGroups class

表示 MachineGroups 的类。

构造函数

MachineGroups(ServicemapManagementClientContext)

创建 MachineGroups。

方法

create(string, string, MachineGroup, RequestOptionsBase)

创建新的计算机组。

create(string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)
create(string, string, MachineGroup, ServiceCallback<MachineGroup>)
deleteMethod(string, string, string, RequestOptionsBase)

删除指定的计算机组。

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, MachineGroupsGetOptionalParams)

返回指定时间间隔内存在的指定计算机组。

get(string, string, string, MachineGroupsGetOptionalParams, ServiceCallback<MachineGroup>)
get(string, string, string, ServiceCallback<MachineGroup>)
listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams)

返回指定时间间隔内的所有计算机组。

listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams, ServiceCallback<MachineGroupCollection>)
listByWorkspace(string, string, ServiceCallback<MachineGroupCollection>)
listByWorkspaceNext(string, RequestOptionsBase)

返回指定时间间隔内的所有计算机组。

listByWorkspaceNext(string, RequestOptionsBase, ServiceCallback<MachineGroupCollection>)
listByWorkspaceNext(string, ServiceCallback<MachineGroupCollection>)
update(string, string, string, MachineGroup, RequestOptionsBase)

更新计算机组。

update(string, string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)
update(string, string, string, MachineGroup, ServiceCallback<MachineGroup>)

构造函数详细信息

MachineGroups(ServicemapManagementClientContext)

创建 MachineGroups。

new MachineGroups(client: ServicemapManagementClientContext)

参数

client
ServicemapManagementClientContext

对服务客户端的引用。

方法详细信息

create(string, string, MachineGroup, RequestOptionsBase)

创建新的计算机组。

function create(resourceGroupName: string, workspaceName: string, machineGroup: MachineGroup, options?: RequestOptionsBase): Promise<MachineGroupsCreateResponse>

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroup
MachineGroup

要创建的计算机组资源。

options
RequestOptionsBase

可选参数

返回

承诺<Models.MachineGroupsCreateResponse>

create(string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)

function create(resourceGroupName: string, workspaceName: string, machineGroup: MachineGroup, options: RequestOptionsBase, callback: ServiceCallback<MachineGroup>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroup
MachineGroup

要创建的计算机组资源。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<MachineGroup>

回调

create(string, string, MachineGroup, ServiceCallback<MachineGroup>)

function create(resourceGroupName: string, workspaceName: string, machineGroup: MachineGroup, callback: ServiceCallback<MachineGroup>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroup
MachineGroup

要创建的计算机组资源。

callback

ServiceCallback<MachineGroup>

回调

deleteMethod(string, string, string, RequestOptionsBase)

删除指定的计算机组。

function deleteMethod(resourceGroupName: string, workspaceName: string, machineGroupName: string, options?: RequestOptionsBase): Promise<RestResponse>

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, workspaceName: string, machineGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, workspaceName: string, machineGroupName: string, callback: ServiceCallback<void>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

callback

ServiceCallback<void>

回调

get(string, string, string, MachineGroupsGetOptionalParams)

返回指定时间间隔内存在的指定计算机组。

function get(resourceGroupName: string, workspaceName: string, machineGroupName: string, options?: MachineGroupsGetOptionalParams): Promise<MachineGroupsGetResponse>

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

options
MachineGroupsGetOptionalParams

可选参数

返回

承诺<Models.MachineGroupsGetResponse>

get(string, string, string, MachineGroupsGetOptionalParams, ServiceCallback<MachineGroup>)

function get(resourceGroupName: string, workspaceName: string, machineGroupName: string, options: MachineGroupsGetOptionalParams, callback: ServiceCallback<MachineGroup>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

options
MachineGroupsGetOptionalParams

可选参数

callback

ServiceCallback<MachineGroup>

回调

get(string, string, string, ServiceCallback<MachineGroup>)

function get(resourceGroupName: string, workspaceName: string, machineGroupName: string, callback: ServiceCallback<MachineGroup>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

callback

ServiceCallback<MachineGroup>

回调

listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams)

返回指定时间间隔内的所有计算机组。

function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: MachineGroupsListByWorkspaceOptionalParams): Promise<MachineGroupsListByWorkspaceResponse>

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

返回

承诺<Models.MachineGroupsListByWorkspaceResponse>

listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams, ServiceCallback<MachineGroupCollection>)

function listByWorkspace(resourceGroupName: string, workspaceName: string, options: MachineGroupsListByWorkspaceOptionalParams, callback: ServiceCallback<MachineGroupCollection>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

listByWorkspace(string, string, ServiceCallback<MachineGroupCollection>)

function listByWorkspace(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<MachineGroupCollection>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

listByWorkspaceNext(string, RequestOptionsBase)

返回指定时间间隔内的所有计算机组。

function listByWorkspaceNext(nextPageLink: string, options?: RequestOptionsBase): Promise<MachineGroupsListByWorkspaceNextResponse>

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

承诺<Models.MachineGroupsListByWorkspaceNextResponse>

listByWorkspaceNext(string, RequestOptionsBase, ServiceCallback<MachineGroupCollection>)

function listByWorkspaceNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<MachineGroupCollection>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listByWorkspaceNext(string, ServiceCallback<MachineGroupCollection>)

function listByWorkspaceNext(nextPageLink: string, callback: ServiceCallback<MachineGroupCollection>)

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

update(string, string, string, MachineGroup, RequestOptionsBase)

更新计算机组。

function update(resourceGroupName: string, workspaceName: string, machineGroupName: string, machineGroup: MachineGroup, options?: RequestOptionsBase): Promise<MachineGroupsUpdateResponse>

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

machineGroup
MachineGroup

要更新的计算机组资源。

options
RequestOptionsBase

可选参数

返回

承诺<Models.MachineGroupsUpdateResponse>

update(string, string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)

function update(resourceGroupName: string, workspaceName: string, machineGroupName: string, machineGroup: MachineGroup, options: RequestOptionsBase, callback: ServiceCallback<MachineGroup>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

machineGroup
MachineGroup

要更新的计算机组资源。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<MachineGroup>

回调

update(string, string, string, MachineGroup, ServiceCallback<MachineGroup>)

function update(resourceGroupName: string, workspaceName: string, machineGroupName: string, machineGroup: MachineGroup, callback: ServiceCallback<MachineGroup>)

参数

resourceGroupName

string

指定 subscriptionId 中的资源组名称。

workspaceName

string

包含相关资源的 OMS 工作区。

machineGroupName

string

计算机组资源名称。

machineGroup
MachineGroup

要更新的计算机组资源。

callback

ServiceCallback<MachineGroup>

回调