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

Dimensions interface

表示维度的接口。

方法

list(string, DimensionsListOptionalParams)

按定义的作用域列出维度。

listByExternalCloudProviderType(string, string, DimensionsByExternalCloudProviderTypeOptionalParams)

按外部云提供程序类型列出维度。

方法详细信息

list(string, DimensionsListOptionalParams)

按定义的作用域列出维度。

function list(scope: string, options?: DimensionsListOptionalParams): PagedAsyncIterableIterator<Dimension, Dimension[], PageSettings>

参数

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}”,用于管理组范围, billingProfile 范围的“/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}”、“providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}”和“providers/Microsoft”。Billing/billingAccounts/{billingAccountId}/customers/{customerId}特定于合作伙伴。

options
DimensionsListOptionalParams

选项参数。

返回

listByExternalCloudProviderType(string, string, DimensionsByExternalCloudProviderTypeOptionalParams)

按外部云提供程序类型列出维度。

function listByExternalCloudProviderType(externalCloudProviderType: string, externalCloudProviderId: string, options?: DimensionsByExternalCloudProviderTypeOptionalParams): PagedAsyncIterableIterator<Dimension, Dimension[], PageSettings>

参数

externalCloudProviderType

string

与维度/查询操作关联的外部云提供程序类型。 这包括链接帐户的“externalSubscriptions”,以及合并帐户的“externalBillingAccounts”。

externalCloudProviderId

string

对于链接帐户,这可以是“{externalSubscriptionId}”,也可以是用于维度/查询操作的合并帐户的“{externalBillingAccountId}”。

返回