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

Solutions class

表示解决方案的类。

构造函数

Solutions(OperationsManagementClientContext)

创建解决方案。

构造函数详细信息

Solutions(OperationsManagementClientContext)

创建解决方案。

new Solutions(client: OperationsManagementClientContext)

参数

client
OperationsManagementClientContext

对服务客户端的引用。

方法详细信息

beginCreateOrUpdate(string, string, Solution, RequestOptionsBase)

创建或更新解决方案。

function beginCreateOrUpdate(resourceGroupName: string, solutionName: string, parameters: Solution, options?: RequestOptionsBase): Promise<LROPoller>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

parameters
Solution

创建 OMS 解决方案所需的参数。

options
RequestOptionsBase

可选参数

返回

Promise<@azure/ms-rest-azure-js.LROPoller>

承诺<msRestAzure.LROPoller>

beginDeleteMethod(string, string, RequestOptionsBase)

删除订阅中的解决方案。

function beginDeleteMethod(resourceGroupName: string, solutionName: string, options?: RequestOptionsBase): Promise<LROPoller>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

options
RequestOptionsBase

可选参数

返回

Promise<@azure/ms-rest-azure-js.LROPoller>

承诺<msRestAzure.LROPoller>

beginUpdate(string, string, SolutionPatch, RequestOptionsBase)

修补解决方案。 仅支持更新标记。

function beginUpdate(resourceGroupName: string, solutionName: string, parameters: SolutionPatch, options?: RequestOptionsBase): Promise<LROPoller>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

parameters
SolutionPatch

修补解决方案所需的参数。

options
RequestOptionsBase

可选参数

返回

Promise<@azure/ms-rest-azure-js.LROPoller>

承诺<msRestAzure.LROPoller>

createOrUpdate(string, string, Solution, RequestOptionsBase)

创建或更新解决方案。

function createOrUpdate(resourceGroupName: string, solutionName: string, parameters: Solution, options?: RequestOptionsBase): Promise<SolutionsCreateOrUpdateResponse>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

parameters
Solution

创建 OMS 解决方案所需的参数。

options
RequestOptionsBase

可选参数

返回

承诺<Models.SolutionsCreateOrUpdateResponse>

deleteMethod(string, string, RequestOptionsBase)

删除订阅中的解决方案。

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

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

get(string, string, RequestOptionsBase)

检索用户解决方案。

function get(resourceGroupName: string, solutionName: string, options?: RequestOptionsBase): Promise<SolutionsGetResponse>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.SolutionsGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<Solution>)

function get(resourceGroupName: string, solutionName: string, options: RequestOptionsBase, callback: ServiceCallback<Solution>)

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Solution>

回调

get(string, string, ServiceCallback<Solution>)

function get(resourceGroupName: string, solutionName: string, callback: ServiceCallback<Solution>)

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

callback

ServiceCallback<Solution>

回调

listByResourceGroup(string, RequestOptionsBase)

检索解决方案列表。 它将检索第一方和第三方解决方案

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<SolutionsListByResourceGroupResponse>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

返回

承诺<Models.SolutionsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<SolutionPropertiesList>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<SolutionPropertiesList>)

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

listByResourceGroup(string, ServiceCallback<SolutionPropertiesList>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<SolutionPropertiesList>)

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

listBySubscription(RequestOptionsBase)

检索解决方案列表。 它将检索第一方和第三方解决方案

function listBySubscription(options?: RequestOptionsBase): Promise<SolutionsListBySubscriptionResponse>

参数

options
RequestOptionsBase

可选参数

返回

承诺<Models.SolutionsListBySubscriptionResponse>

listBySubscription(RequestOptionsBase, ServiceCallback<SolutionPropertiesList>)

function listBySubscription(options: RequestOptionsBase, callback: ServiceCallback<SolutionPropertiesList>)

参数

options
RequestOptionsBase

可选参数

listBySubscription(ServiceCallback<SolutionPropertiesList>)

function listBySubscription(callback: ServiceCallback<SolutionPropertiesList>)

参数

update(string, string, SolutionPatch, RequestOptionsBase)

修补解决方案。 仅支持更新标记。

function update(resourceGroupName: string, solutionName: string, parameters: SolutionPatch, options?: RequestOptionsBase): Promise<SolutionsUpdateResponse>

参数

resourceGroupName

string

要获取的资源组的名称。 名称不区分大小写。

solutionName

string

用户解决方案名称。

parameters
SolutionPatch

修补解决方案所需的参数。

options
RequestOptionsBase

可选参数

返回

承诺<Models.SolutionsUpdateResponse>