@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CloudCostManagementApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CloudCostManagementApi.ListCustomCostsFilesOptionalParameters
Manage optional parameters to listCustomCostsFiles.
|
| Constructor and Description |
|---|
CloudCostManagementApi() |
CloudCostManagementApi(ApiClient apiClient) |
public CloudCostManagementApi()
public CloudCostManagementApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic AwsCurConfigResponse createCostAWSCURConfig(AwsCURConfigPostRequest body) throws ApiException
See createCostAWSCURConfigWithHttpInfo(com.datadog.api.client.v2.model.AwsCURConfigPostRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<AwsCurConfigResponse> createCostAWSCURConfigAsync(AwsCURConfigPostRequest body)
See createCostAWSCURConfigWithHttpInfoAsync(com.datadog.api.client.v2.model.AwsCURConfigPostRequest).
body - (required)public ApiResponse<AwsCurConfigResponse> createCostAWSCURConfigWithHttpInfo(AwsCURConfigPostRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsCurConfigResponse>> createCostAWSCURConfigWithHttpInfoAsync(AwsCURConfigPostRequest body)
See createCostAWSCURConfigWithHttpInfo(com.datadog.api.client.v2.model.AwsCURConfigPostRequest).
body - (required)public AzureUCConfigPairsResponse createCostAzureUCConfigs(AzureUCConfigPostRequest body) throws ApiException
See createCostAzureUCConfigsWithHttpInfo(com.datadog.api.client.v2.model.AzureUCConfigPostRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<AzureUCConfigPairsResponse> createCostAzureUCConfigsAsync(AzureUCConfigPostRequest body)
See createCostAzureUCConfigsWithHttpInfoAsync(com.datadog.api.client.v2.model.AzureUCConfigPostRequest).
body - (required)public ApiResponse<AzureUCConfigPairsResponse> createCostAzureUCConfigsWithHttpInfo(AzureUCConfigPostRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AzureUCConfigPairsResponse>> createCostAzureUCConfigsWithHttpInfoAsync(AzureUCConfigPostRequest body)
See createCostAzureUCConfigsWithHttpInfo(com.datadog.api.client.v2.model.AzureUCConfigPostRequest).
body - (required)public GCPUsageCostConfigResponse createCostGCPUsageCostConfig(GCPUsageCostConfigPostRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<GCPUsageCostConfigResponse> createCostGCPUsageCostConfigAsync(GCPUsageCostConfigPostRequest body)
body - (required)public ApiResponse<GCPUsageCostConfigResponse> createCostGCPUsageCostConfigWithHttpInfo(GCPUsageCostConfigPostRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<GCPUsageCostConfigResponse>> createCostGCPUsageCostConfigWithHttpInfoAsync(GCPUsageCostConfigPostRequest body)
body - (required)public ArbitraryRuleResponse createCustomAllocationRule(ArbitraryCostUpsertRequest body) throws ApiException
See createCustomAllocationRuleWithHttpInfo(com.datadog.api.client.v2.model.ArbitraryCostUpsertRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<ArbitraryRuleResponse> createCustomAllocationRuleAsync(ArbitraryCostUpsertRequest body)
body - (required)public ApiResponse<ArbitraryRuleResponse> createCustomAllocationRuleWithHttpInfo(ArbitraryCostUpsertRequest body) throws ApiException
Strategy Methods: - PROPORTIONAL/EVEN: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters. - PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys. - PERCENT: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
Filter Conditions: - Use value for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" - Use values for multi-value conditions: "in", "not in" - Cannot use both value and values simultaneously.
Supported operators: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ArbitraryRuleResponse>> createCustomAllocationRuleWithHttpInfoAsync(ArbitraryCostUpsertRequest body)
See createCustomAllocationRuleWithHttpInfo(com.datadog.api.client.v2.model.ArbitraryCostUpsertRequest).
body - (required)public RulesetResp createTagPipelinesRuleset(CreateRulesetRequest body) throws ApiException
See createTagPipelinesRulesetWithHttpInfo(com.datadog.api.client.v2.model.CreateRulesetRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<RulesetResp> createTagPipelinesRulesetAsync(CreateRulesetRequest body)
See createTagPipelinesRulesetWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateRulesetRequest).
body - (required)public ApiResponse<RulesetResp> createTagPipelinesRulesetWithHttpInfo(CreateRulesetRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RulesetResp>> createTagPipelinesRulesetWithHttpInfoAsync(CreateRulesetRequest body)
See createTagPipelinesRulesetWithHttpInfo(com.datadog.api.client.v2.model.CreateRulesetRequest).
body - (required)public void deleteBudget(String budgetId) throws ApiException
budgetId - Budget id. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteBudgetAsync(String budgetId)
budgetId - Budget id. (required)public ApiResponse<Void> deleteBudgetWithHttpInfo(String budgetId) throws ApiException
budgetId - Budget id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteBudgetWithHttpInfoAsync(String budgetId)
budgetId - Budget id. (required)public void deleteCostAWSCURConfig(Long cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCostAWSCURConfigAsync(Long cloudAccountId)
See deleteCostAWSCURConfigWithHttpInfoAsync(java.lang.Long).
cloudAccountId - Cloud Account id. (required)public ApiResponse<Void> deleteCostAWSCURConfigWithHttpInfo(Long cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCostAWSCURConfigWithHttpInfoAsync(Long cloudAccountId)
cloudAccountId - Cloud Account id. (required)public void deleteCostAzureUCConfig(Long cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCostAzureUCConfigAsync(Long cloudAccountId)
See deleteCostAzureUCConfigWithHttpInfoAsync(java.lang.Long).
cloudAccountId - Cloud Account id. (required)public ApiResponse<Void> deleteCostAzureUCConfigWithHttpInfo(Long cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCostAzureUCConfigWithHttpInfoAsync(Long cloudAccountId)
cloudAccountId - Cloud Account id. (required)public void deleteCostGCPUsageCostConfig(Long cloudAccountId) throws ApiException
See deleteCostGCPUsageCostConfigWithHttpInfo(java.lang.Long).
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCostGCPUsageCostConfigAsync(Long cloudAccountId)
See deleteCostGCPUsageCostConfigWithHttpInfoAsync(java.lang.Long).
cloudAccountId - Cloud Account id. (required)public ApiResponse<Void> deleteCostGCPUsageCostConfigWithHttpInfo(Long cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCostGCPUsageCostConfigWithHttpInfoAsync(Long cloudAccountId)
See deleteCostGCPUsageCostConfigWithHttpInfo(java.lang.Long).
cloudAccountId - Cloud Account id. (required)public void deleteCustomAllocationRule(Long ruleId) throws ApiException
ruleId - The unique identifier of the custom allocation rule (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCustomAllocationRuleAsync(Long ruleId)
See deleteCustomAllocationRuleWithHttpInfoAsync(java.lang.Long).
ruleId - The unique identifier of the custom allocation rule (required)public ApiResponse<Void> deleteCustomAllocationRuleWithHttpInfo(Long ruleId) throws ApiException
ruleId - The unique identifier of the custom allocation rule (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCustomAllocationRuleWithHttpInfoAsync(Long ruleId)
ruleId - The unique identifier of the custom allocation rule (required)public void deleteCustomCostsFile(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCustomCostsFileAsync(String fileId)
See deleteCustomCostsFileWithHttpInfoAsync(java.lang.String).
fileId - File ID. (required)public ApiResponse<Void> deleteCustomCostsFileWithHttpInfo(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCustomCostsFileWithHttpInfoAsync(String fileId)
fileId - File ID. (required)public void deleteTagPipelinesRuleset(String rulesetId) throws ApiException
See deleteTagPipelinesRulesetWithHttpInfo(java.lang.String).
rulesetId - The unique identifier of the ruleset (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTagPipelinesRulesetAsync(String rulesetId)
See deleteTagPipelinesRulesetWithHttpInfoAsync(java.lang.String).
rulesetId - The unique identifier of the ruleset (required)public ApiResponse<Void> deleteTagPipelinesRulesetWithHttpInfo(String rulesetId) throws ApiException
rulesetId - The unique identifier of the ruleset (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTagPipelinesRulesetWithHttpInfoAsync(String rulesetId)
See deleteTagPipelinesRulesetWithHttpInfo(java.lang.String).
rulesetId - The unique identifier of the ruleset (required)public BudgetWithEntries getBudget(String budgetId) throws ApiException
budgetId - Budget id. (required)ApiException - if fails to make API callpublic CompletableFuture<BudgetWithEntries> getBudgetAsync(String budgetId)
budgetId - Budget id. (required)public ApiResponse<BudgetWithEntries> getBudgetWithHttpInfo(String budgetId) throws ApiException
budgetId - Budget id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<BudgetWithEntries>> getBudgetWithHttpInfoAsync(String budgetId)
budgetId - Budget id. (required)public AwsCurConfigResponse getCostAWSCURConfig(Long cloudAccountId) throws ApiException
cloudAccountId - The unique identifier of the cloud account (required)ApiException - if fails to make API callpublic CompletableFuture<AwsCurConfigResponse> getCostAWSCURConfigAsync(Long cloudAccountId)
cloudAccountId - The unique identifier of the cloud account (required)public ApiResponse<AwsCurConfigResponse> getCostAWSCURConfigWithHttpInfo(Long cloudAccountId) throws ApiException
cloudAccountId - The unique identifier of the cloud account (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsCurConfigResponse>> getCostAWSCURConfigWithHttpInfoAsync(Long cloudAccountId)
cloudAccountId - The unique identifier of the cloud account (required)public UCConfigPair getCostAzureUCConfig(Long cloudAccountId) throws ApiException
cloudAccountId - The unique identifier of the cloud account (required)ApiException - if fails to make API callpublic CompletableFuture<UCConfigPair> getCostAzureUCConfigAsync(Long cloudAccountId)
cloudAccountId - The unique identifier of the cloud account (required)public ApiResponse<UCConfigPair> getCostAzureUCConfigWithHttpInfo(Long cloudAccountId) throws ApiException
cloudAccountId - The unique identifier of the cloud account (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UCConfigPair>> getCostAzureUCConfigWithHttpInfoAsync(Long cloudAccountId)
cloudAccountId - The unique identifier of the cloud account (required)public GcpUcConfigResponse getCostGCPUsageCostConfig(Long cloudAccountId) throws ApiException
cloudAccountId - The unique identifier of the cloud account (required)ApiException - if fails to make API callpublic CompletableFuture<GcpUcConfigResponse> getCostGCPUsageCostConfigAsync(Long cloudAccountId)
See getCostGCPUsageCostConfigWithHttpInfoAsync(java.lang.Long).
cloudAccountId - The unique identifier of the cloud account (required)public ApiResponse<GcpUcConfigResponse> getCostGCPUsageCostConfigWithHttpInfo(Long cloudAccountId) throws ApiException
cloudAccountId - The unique identifier of the cloud account (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<GcpUcConfigResponse>> getCostGCPUsageCostConfigWithHttpInfoAsync(Long cloudAccountId)
cloudAccountId - The unique identifier of the cloud account (required)public ArbitraryRuleResponse getCustomAllocationRule(Long ruleId) throws ApiException
ruleId - The unique identifier of the custom allocation rule (required)ApiException - if fails to make API callpublic CompletableFuture<ArbitraryRuleResponse> getCustomAllocationRuleAsync(Long ruleId)
See getCustomAllocationRuleWithHttpInfoAsync(java.lang.Long).
ruleId - The unique identifier of the custom allocation rule (required)public ApiResponse<ArbitraryRuleResponse> getCustomAllocationRuleWithHttpInfo(Long ruleId) throws ApiException
ruleId - The unique identifier of the custom allocation rule (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ArbitraryRuleResponse>> getCustomAllocationRuleWithHttpInfoAsync(Long ruleId)
ruleId - The unique identifier of the custom allocation rule (required)public CustomCostsFileGetResponse getCustomCostsFile(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileGetResponse> getCustomCostsFileAsync(String fileId)
fileId - File ID. (required)public ApiResponse<CustomCostsFileGetResponse> getCustomCostsFileWithHttpInfo(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomCostsFileGetResponse>> getCustomCostsFileWithHttpInfoAsync(String fileId)
fileId - File ID. (required)public RulesetResp getTagPipelinesRuleset(String rulesetId) throws ApiException
rulesetId - The unique identifier of the ruleset (required)ApiException - if fails to make API callpublic CompletableFuture<RulesetResp> getTagPipelinesRulesetAsync(String rulesetId)
See getTagPipelinesRulesetWithHttpInfoAsync(java.lang.String).
rulesetId - The unique identifier of the ruleset (required)public ApiResponse<RulesetResp> getTagPipelinesRulesetWithHttpInfo(String rulesetId) throws ApiException
rulesetId - The unique identifier of the ruleset (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RulesetResp>> getTagPipelinesRulesetWithHttpInfoAsync(String rulesetId)
rulesetId - The unique identifier of the ruleset (required)public BudgetArray listBudgets() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<BudgetArray> listBudgetsAsync()
public ApiResponse<BudgetArray> listBudgetsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<BudgetArray>> listBudgetsWithHttpInfoAsync()
public AwsCURConfigsResponse listCostAWSCURConfigs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<AwsCURConfigsResponse> listCostAWSCURConfigsAsync()
public ApiResponse<AwsCURConfigsResponse> listCostAWSCURConfigsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsCURConfigsResponse>> listCostAWSCURConfigsWithHttpInfoAsync()
public AzureUCConfigsResponse listCostAzureUCConfigs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<AzureUCConfigsResponse> listCostAzureUCConfigsAsync()
public ApiResponse<AzureUCConfigsResponse> listCostAzureUCConfigsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AzureUCConfigsResponse>> listCostAzureUCConfigsWithHttpInfoAsync()
public GCPUsageCostConfigsResponse listCostGCPUsageCostConfigs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<GCPUsageCostConfigsResponse> listCostGCPUsageCostConfigsAsync()
public ApiResponse<GCPUsageCostConfigsResponse> listCostGCPUsageCostConfigsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<GCPUsageCostConfigsResponse>> listCostGCPUsageCostConfigsWithHttpInfoAsync()
public ArbitraryRuleResponseArray listCustomAllocationRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ArbitraryRuleResponseArray> listCustomAllocationRulesAsync()
public ApiResponse<ArbitraryRuleResponseArray> listCustomAllocationRulesWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ArbitraryRuleResponseArray>> listCustomAllocationRulesWithHttpInfoAsync()
public CustomCostsFileListResponse listCustomCostsFiles() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileListResponse> listCustomCostsFilesAsync()
public CustomCostsFileListResponse listCustomCostsFiles(CloudCostManagementApi.ListCustomCostsFilesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileListResponse> listCustomCostsFilesAsync(CloudCostManagementApi.ListCustomCostsFilesOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<CustomCostsFileListResponse> listCustomCostsFilesWithHttpInfo(CloudCostManagementApi.ListCustomCostsFilesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomCostsFileListResponse>> listCustomCostsFilesWithHttpInfoAsync(CloudCostManagementApi.ListCustomCostsFilesOptionalParameters parameters)
parameters - Optional parameters for the request.public RulesetRespArray listTagPipelinesRulesets() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<RulesetRespArray> listTagPipelinesRulesetsAsync()
public ApiResponse<RulesetRespArray> listTagPipelinesRulesetsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RulesetRespArray>> listTagPipelinesRulesetsWithHttpInfoAsync()
public void reorderCustomAllocationRules(ReorderRuleResourceArray body) throws ApiException
See reorderCustomAllocationRulesWithHttpInfo(com.datadog.api.client.v2.model.ReorderRuleResourceArray).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> reorderCustomAllocationRulesAsync(ReorderRuleResourceArray body)
body - (required)public ApiResponse<Void> reorderCustomAllocationRulesWithHttpInfo(ReorderRuleResourceArray body) throws ApiException
Important: You must provide the complete list of all rule IDs in the desired execution order. The API will reorder ALL rules according to the provided sequence.
Rules are executed in the order specified, with lower indices (earlier in the array) having higher priority.
Example: If you have rules with IDs [123, 456, 789] and want to change order from 123→456→789 to 456→123→789, send: [{"id": "456"}, {"id": "123"}, {"id": "789"}]
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | Successfully reordered rules | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> reorderCustomAllocationRulesWithHttpInfoAsync(ReorderRuleResourceArray body)
See reorderCustomAllocationRulesWithHttpInfo(com.datadog.api.client.v2.model.ReorderRuleResourceArray).
body - (required)public void reorderTagPipelinesRulesets(ReorderRulesetResourceArray body) throws ApiException
See reorderTagPipelinesRulesetsWithHttpInfo(com.datadog.api.client.v2.model.ReorderRulesetResourceArray).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> reorderTagPipelinesRulesetsAsync(ReorderRulesetResourceArray body)
body - (required)public ApiResponse<Void> reorderTagPipelinesRulesetsWithHttpInfo(ReorderRulesetResourceArray body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | Successfully reordered rulesets | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> reorderTagPipelinesRulesetsWithHttpInfoAsync(ReorderRulesetResourceArray body)
See reorderTagPipelinesRulesetsWithHttpInfo(com.datadog.api.client.v2.model.ReorderRulesetResourceArray).
body - (required)public AwsCURConfigsResponse updateCostAWSCURConfig(Long cloudAccountId, AwsCURConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<AwsCURConfigsResponse> updateCostAWSCURConfigAsync(Long cloudAccountId, AwsCURConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public ApiResponse<AwsCURConfigsResponse> updateCostAWSCURConfigWithHttpInfo(Long cloudAccountId, AwsCURConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsCURConfigsResponse>> updateCostAWSCURConfigWithHttpInfoAsync(Long cloudAccountId, AwsCURConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public AzureUCConfigPairsResponse updateCostAzureUCConfigs(Long cloudAccountId, AzureUCConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<AzureUCConfigPairsResponse> updateCostAzureUCConfigsAsync(Long cloudAccountId, AzureUCConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public ApiResponse<AzureUCConfigPairsResponse> updateCostAzureUCConfigsWithHttpInfo(Long cloudAccountId, AzureUCConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AzureUCConfigPairsResponse>> updateCostAzureUCConfigsWithHttpInfoAsync(Long cloudAccountId, AzureUCConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public GCPUsageCostConfigResponse updateCostGCPUsageCostConfig(Long cloudAccountId, GCPUsageCostConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<GCPUsageCostConfigResponse> updateCostGCPUsageCostConfigAsync(Long cloudAccountId, GCPUsageCostConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public ApiResponse<GCPUsageCostConfigResponse> updateCostGCPUsageCostConfigWithHttpInfo(Long cloudAccountId, GCPUsageCostConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<GCPUsageCostConfigResponse>> updateCostGCPUsageCostConfigWithHttpInfoAsync(Long cloudAccountId, GCPUsageCostConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public ArbitraryRuleResponse updateCustomAllocationRule(Long ruleId, ArbitraryCostUpsertRequest body) throws ApiException
ruleId - The unique identifier of the custom allocation rule (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<ArbitraryRuleResponse> updateCustomAllocationRuleAsync(Long ruleId, ArbitraryCostUpsertRequest body)
ruleId - The unique identifier of the custom allocation rule (required)body - (required)public ApiResponse<ArbitraryRuleResponse> updateCustomAllocationRuleWithHttpInfo(Long ruleId, ArbitraryCostUpsertRequest body) throws ApiException
Strategy Methods: - PROPORTIONAL/EVEN: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters. - PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys. - PERCENT: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations). - USAGE_METRIC: Allocates based on usage metrics (implementation varies).
Filter Conditions: - Use value for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" - Use values for multi-value conditions: "in", "not in" - Cannot use both value and values simultaneously.
Supported operators: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
ruleId - The unique identifier of the custom allocation rule (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ArbitraryRuleResponse>> updateCustomAllocationRuleWithHttpInfoAsync(Long ruleId, ArbitraryCostUpsertRequest body)
ruleId - The unique identifier of the custom allocation rule (required)body - (required)public RulesetResp updateTagPipelinesRuleset(String rulesetId, UpdateRulesetRequest body) throws ApiException
rulesetId - The unique identifier of the ruleset (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<RulesetResp> updateTagPipelinesRulesetAsync(String rulesetId, UpdateRulesetRequest body)
rulesetId - The unique identifier of the ruleset (required)body - (required)public ApiResponse<RulesetResp> updateTagPipelinesRulesetWithHttpInfo(String rulesetId, UpdateRulesetRequest body) throws ApiException
rulesetId - The unique identifier of the ruleset (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RulesetResp>> updateTagPipelinesRulesetWithHttpInfoAsync(String rulesetId, UpdateRulesetRequest body)
rulesetId - The unique identifier of the ruleset (required)body - (required)public CustomCostsFileUploadResponse uploadCustomCostsFile(List<CustomCostsFileLineItem> body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileUploadResponse> uploadCustomCostsFileAsync(List<CustomCostsFileLineItem> body)
body - (required)public ApiResponse<CustomCostsFileUploadResponse> uploadCustomCostsFileWithHttpInfo(List<CustomCostsFileLineItem> body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Accepted | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomCostsFileUploadResponse>> uploadCustomCostsFileWithHttpInfoAsync(List<CustomCostsFileLineItem> body)
body - (required)public BudgetWithEntries upsertBudget(BudgetWithEntries body) throws ApiException
See upsertBudgetWithHttpInfo(com.datadog.api.client.v2.model.BudgetWithEntries).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<BudgetWithEntries> upsertBudgetAsync(BudgetWithEntries body)
See upsertBudgetWithHttpInfoAsync(com.datadog.api.client.v2.model.BudgetWithEntries).
body - (required)public ApiResponse<BudgetWithEntries> upsertBudgetWithHttpInfo(BudgetWithEntries body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<BudgetWithEntries>> upsertBudgetWithHttpInfoAsync(BudgetWithEntries body)
See upsertBudgetWithHttpInfo(com.datadog.api.client.v2.model.BudgetWithEntries).
body - (required)public BudgetValidationResponse validateBudget(BudgetValidationRequest body) throws ApiException
See validateBudgetWithHttpInfo(com.datadog.api.client.v2.model.BudgetValidationRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<BudgetValidationResponse> validateBudgetAsync(BudgetValidationRequest body)
See validateBudgetWithHttpInfoAsync(com.datadog.api.client.v2.model.BudgetValidationRequest).
body - (required)public ApiResponse<BudgetValidationResponse> validateBudgetWithHttpInfo(BudgetValidationRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<BudgetValidationResponse>> validateBudgetWithHttpInfoAsync(BudgetValidationRequest body)
See validateBudgetWithHttpInfo(com.datadog.api.client.v2.model.BudgetValidationRequest).
body - (required)public ValidationResponse validateCsvBudget() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ValidationResponse> validateCsvBudgetAsync()
public ApiResponse<ValidationResponse> validateCsvBudgetWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ValidationResponse>> validateCsvBudgetWithHttpInfoAsync()
public RulesValidateQueryResponse validateQuery(RulesValidateQueryRequest body) throws ApiException
See validateQueryWithHttpInfo(com.datadog.api.client.v2.model.RulesValidateQueryRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<RulesValidateQueryResponse> validateQueryAsync(RulesValidateQueryRequest body)
See validateQueryWithHttpInfoAsync(com.datadog.api.client.v2.model.RulesValidateQueryRequest).
body - (required)public ApiResponse<RulesValidateQueryResponse> validateQueryWithHttpInfo(RulesValidateQueryRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RulesValidateQueryResponse>> validateQueryWithHttpInfoAsync(RulesValidateQueryRequest body)
See validateQueryWithHttpInfo(com.datadog.api.client.v2.model.RulesValidateQueryRequest).
body - (required)Copyright © 2026. All rights reserved.