你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Licenses interface
表示许可证的接口。
方法
方法详细信息
beginCreateOrUpdate(string, string, License, LicensesCreateOrUpdateOptionalParams)
用于创建或更新许可证的操作。
function beginCreateOrUpdate(resourceGroupName: string, licenseName: string, parameters: License, options?: LicensesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<License>, License>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- parameters
- License
提供给“创建许可证”操作的参数。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<License>, License>>
beginCreateOrUpdateAndWait(string, string, License, LicensesCreateOrUpdateOptionalParams)
用于创建或更新许可证的操作。
function beginCreateOrUpdateAndWait(resourceGroupName: string, licenseName: string, parameters: License, options?: LicensesCreateOrUpdateOptionalParams): Promise<License>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- parameters
- License
提供给“创建许可证”操作的参数。
选项参数。
返回
Promise<License>
beginDelete(string, string, LicensesDeleteOptionalParams)
用于删除许可证的操作。
function beginDelete(resourceGroupName: string, licenseName: string, options?: LicensesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- options
- LicensesDeleteOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, LicensesDeleteOptionalParams)
用于删除许可证的操作。
function beginDeleteAndWait(resourceGroupName: string, licenseName: string, options?: LicensesDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- options
- LicensesDeleteOptionalParams
选项参数。
返回
Promise<void>
beginUpdate(string, string, LicenseUpdate, LicensesUpdateOptionalParams)
用于更新许可证的操作。
function beginUpdate(resourceGroupName: string, licenseName: string, parameters: LicenseUpdate, options?: LicensesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<License>, License>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- parameters
- LicenseUpdate
提供给更新许可证操作的参数。
- options
- LicensesUpdateOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<License>, License>>
beginUpdateAndWait(string, string, LicenseUpdate, LicensesUpdateOptionalParams)
用于更新许可证的操作。
function beginUpdateAndWait(resourceGroupName: string, licenseName: string, parameters: LicenseUpdate, options?: LicensesUpdateOptionalParams): Promise<License>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- parameters
- LicenseUpdate
提供给更新许可证操作的参数。
- options
- LicensesUpdateOptionalParams
选项参数。
返回
Promise<License>
beginValidateLicense(License, LicensesValidateLicenseOptionalParams)
用于验证许可证的操作。
function beginValidateLicense(parameters: License, options?: LicensesValidateLicenseOptionalParams): Promise<SimplePollerLike<OperationState<License>, License>>
参数
- parameters
- License
提供给许可证验证操作的参数。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<License>, License>>
beginValidateLicenseAndWait(License, LicensesValidateLicenseOptionalParams)
用于验证许可证的操作。
function beginValidateLicenseAndWait(parameters: License, options?: LicensesValidateLicenseOptionalParams): Promise<License>
参数
- parameters
- License
提供给许可证验证操作的参数。
选项参数。
返回
Promise<License>
get(string, string, LicensesGetOptionalParams)
检索有关许可证视图的信息。
function get(resourceGroupName: string, licenseName: string, options?: LicensesGetOptionalParams): Promise<License>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- licenseName
-
string
许可证的名称。
- options
- LicensesGetOptionalParams
选项参数。
返回
Promise<License>
listByResourceGroup(string, LicensesListByResourceGroupOptionalParams)
获取非 Azure 计算机的所有许可证的操作
function listByResourceGroup(resourceGroupName: string, options?: LicensesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<License, License[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
选项参数。
返回
listBySubscription(LicensesListBySubscriptionOptionalParams)
获取非 Azure 计算机的所有许可证的操作
function listBySubscription(options?: LicensesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<License, License[], PageSettings>
参数
选项参数。