MachineGroups class
表示 MachineGroups 的类。
构造函数
| Machine |
创建 MachineGroups。 |
方法
构造函数详细信息
MachineGroups(ServicemapManagementClientContext)
创建 MachineGroups。
new MachineGroups(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
可选参数
返回
Promise<MachineGroupsCreateResponse>
承诺<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
回调
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
回调
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
可选参数
返回
Promise<MachineGroupsGetResponse>
承诺<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
回调
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
回调
listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams)
返回指定时间间隔内的所有计算机组。
function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: MachineGroupsListByWorkspaceOptionalParams): Promise<MachineGroupsListByWorkspaceResponse>
参数
- resourceGroupName
-
string
指定 subscriptionId 中的资源组名称。
- workspaceName
-
string
包含相关资源的 OMS 工作区。
可选参数
返回
Promise<MachineGroupsListByWorkspaceResponse>
承诺<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 工作区。
可选参数
- callback
回调
listByWorkspace(string, string, ServiceCallback<MachineGroupCollection>)
function listByWorkspace(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<MachineGroupCollection>)
参数
- resourceGroupName
-
string
指定 subscriptionId 中的资源组名称。
- workspaceName
-
string
包含相关资源的 OMS 工作区。
- callback
回调
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
可选参数
- callback
回调
listByWorkspaceNext(string, ServiceCallback<MachineGroupCollection>)
function listByWorkspaceNext(nextPageLink: string, callback: ServiceCallback<MachineGroupCollection>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
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
可选参数
返回
Promise<MachineGroupsUpdateResponse>
承诺<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
回调
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
回调