CostManagementExtensions.UsageByExternalCloudProviderTypeQuery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Query the usage data for external cloud provider type defined.
- Request Path: /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query
- Operation Id: Query_UsageByExternalCloudProviderType
public static Azure.Response<Azure.ResourceManager.CostManagement.Models.QueryResult> UsageByExternalCloudProviderTypeQuery (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.CostManagement.Models.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Azure.ResourceManager.CostManagement.Models.QueryDefinition queryDefinition, System.Threading.CancellationToken cancellationToken = default);
static member UsageByExternalCloudProviderTypeQuery : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.CostManagement.Models.ExternalCloudProviderType * string * Azure.ResourceManager.CostManagement.Models.QueryDefinition * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CostManagement.Models.QueryResult>
<Extension()>
Public Function UsageByExternalCloudProviderTypeQuery (tenantResource As TenantResource, externalCloudProviderType As ExternalCloudProviderType, externalCloudProviderId As String, queryDefinition As QueryDefinition, Optional cancellationToken As CancellationToken = Nothing) As Response(Of QueryResult)
Parameters
- tenantResource
- TenantResource
The TenantResource instance the method will execute against.
- externalCloudProviderType
- ExternalCloudProviderType
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.
- queryDefinition
- QueryDefinition
Parameters supplied to the CreateOrUpdate Query Config operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
externalCloudProviderId
is an empty string, and was expected to be non-empty.
tenantResource
, externalCloudProviderId
or queryDefinition
is null.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för