Interface QueriesClient
public interface QueriesClient
An instance of this class provides access to all the operations defined in QueriesClient.
-
Method Summary
Modifier and TypeMethodDescriptionusage(String scope, QueryDefinition parameters) Query the usage data for scope defined.usageByExternalCloudProviderType(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, QueryDefinition parameters) Query the usage data for external cloud provider type defined.com.azure.core.http.rest.Response<QueryResultInner>usageByExternalCloudProviderTypeWithResponse(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, QueryDefinition parameters, com.azure.core.util.Context context) Query the usage data for external cloud provider type defined.com.azure.core.http.rest.Response<QueryResultInner>usageWithResponse(String scope, QueryDefinition parameters, com.azure.core.util.Context context) Query the usage data for scope defined.
-
Method Details
-
usageWithResponse
com.azure.core.http.rest.Response<QueryResultInner> usageWithResponse(String scope, QueryDefinition parameters, com.azure.core.util.Context context) Query the usage data for scope defined.- Parameters:
scope- The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/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.parameters- Parameters supplied to the CreateOrUpdate Query Config operation.context- The context to associate with this operation.- Returns:
- result of query along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
usage
Query the usage data for scope defined.- Parameters:
scope- The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/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.parameters- Parameters supplied to the CreateOrUpdate Query Config operation.- Returns:
- result of query.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
usageByExternalCloudProviderTypeWithResponse
com.azure.core.http.rest.Response<QueryResultInner> usageByExternalCloudProviderTypeWithResponse(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, QueryDefinition parameters, com.azure.core.util.Context context) Query the usage data for external cloud provider type defined.- Parameters:
externalCloudProviderType- The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.externalCloudProviderId- This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.parameters- Parameters supplied to the CreateOrUpdate Query Config operation.context- The context to associate with this operation.- Returns:
- result of query along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
usageByExternalCloudProviderType
QueryResultInner usageByExternalCloudProviderType(ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId, QueryDefinition parameters) Query the usage data for external cloud provider type defined.- Parameters:
externalCloudProviderType- The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.externalCloudProviderId- This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.parameters- Parameters supplied to the CreateOrUpdate Query Config operation.- Returns:
- result of query.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-