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

TemplateSpecs interface

表示 TemplateSpecs 的接口。

方法

createOrUpdate(string, string, TemplateSpec, TemplateSpecsCreateOrUpdateOptionalParams)

创建或更新模板规格。

delete(string, string, TemplateSpecsDeleteOptionalParams)

按名称删除模板规格。 作完成后,状态代码 200 返回时没有内容。

get(string, string, TemplateSpecsGetOptionalParams)

获取具有给定名称的模板规格。

listByResourceGroup(string, TemplateSpecsListByResourceGroupOptionalParams)

列出指定资源组中的所有模板规格。

listBySubscription(TemplateSpecsListBySubscriptionOptionalParams)

列出指定订阅中的所有模板规格。

update(string, string, TemplateSpecsUpdateOptionalParams)

使用指定值更新模板规格标记。

方法详细信息

createOrUpdate(string, string, TemplateSpec, TemplateSpecsCreateOrUpdateOptionalParams)

创建或更新模板规格。

function createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, options?: TemplateSpecsCreateOrUpdateOptionalParams): Promise<TemplateSpec>

参数

resourceGroupName

string

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

templateSpecName

string

模板规格的名称。

templateSpec
TemplateSpec

提供给作的模板规格。

返回

Promise<TemplateSpec>

delete(string, string, TemplateSpecsDeleteOptionalParams)

按名称删除模板规格。 作完成后,状态代码 200 返回时没有内容。

function delete(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

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

templateSpecName

string

模板规格的名称。

options
TemplateSpecsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, TemplateSpecsGetOptionalParams)

获取具有给定名称的模板规格。

function get(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsGetOptionalParams): Promise<TemplateSpec>

参数

resourceGroupName

string

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

templateSpecName

string

模板规格的名称。

options
TemplateSpecsGetOptionalParams

选项参数。

返回

Promise<TemplateSpec>

listByResourceGroup(string, TemplateSpecsListByResourceGroupOptionalParams)

列出指定资源组中的所有模板规格。

function listByResourceGroup(resourceGroupName: string, options?: TemplateSpecsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<TemplateSpec, TemplateSpec[], PageSettings>

参数

resourceGroupName

string

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

返回

listBySubscription(TemplateSpecsListBySubscriptionOptionalParams)

列出指定订阅中的所有模板规格。

function listBySubscription(options?: TemplateSpecsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<TemplateSpec, TemplateSpec[], PageSettings>

参数

返回

update(string, string, TemplateSpecsUpdateOptionalParams)

使用指定值更新模板规格标记。

function update(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsUpdateOptionalParams): Promise<TemplateSpec>

参数

resourceGroupName

string

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

templateSpecName

string

模板规格的名称。

options
TemplateSpecsUpdateOptionalParams

选项参数。

返回

Promise<TemplateSpec>