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

Tags interface

表示标记的接口。

方法

get(string, TagsGetOptionalParams)

获取定义范围的所有可用标记键

方法详细信息

get(string, TagsGetOptionalParams)

获取定义范围的所有可用标记键

function get(scope: string, options?: TagsGetOptionalParams): Promise<TagsResult>

参数

scope

string

与标记作关联的范围。 这包括订阅范围的“/subscriptions/{subscriptionId}/”、resourceGroup 范围的“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 计费帐户范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}','/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 作用域的 enrollmentAccountId}“和”/providers/Microsoft.Management/managementGroups/{managementGroupId}“(适用于管理组范围)。

options
TagsGetOptionalParams

选项参数。

返回

Promise<TagsResult>