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
回呼