Dimensions interface
Interface representing a Dimensions.
Methods
list(string, Dimensions |
Lists the dimensions by the defined scope. |
list |
Lists the dimensions by the external cloud provider type. |
Method Details
list(string, DimensionsListOptionalParams)
Lists the dimensions by the defined scope.
function list(scope: string, options?: DimensionsListOptionalParams): PagedAsyncIterableIterator<Dimension, Dimension[], PageSettings>
Parameters
- scope
-
string
The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.
- options
- DimensionsListOptionalParams
The options parameters.
Returns
listByExternalCloudProviderType(string, string, DimensionsByExternalCloudProviderTypeOptionalParams)
Lists the dimensions by the external cloud provider type.
function listByExternalCloudProviderType(externalCloudProviderType: string, externalCloudProviderId: string, options?: DimensionsByExternalCloudProviderTypeOptionalParams): PagedAsyncIterableIterator<Dimension, Dimension[], PageSettings>
Parameters
- externalCloudProviderType
-
string
The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.
- externalCloudProviderId
-
string
This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
The options parameters.
Returns
Azure SDK for JavaScript