@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagRulesApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TagRulesApi.DeleteTagRuleOptionalParameters
Manage optional parameters to deleteTagRule.
|
static class |
TagRulesApi.GetTagRuleOptionalParameters
Manage optional parameters to getTagRule.
|
static class |
TagRulesApi.GetTagRuleScoreOptionalParameters
Manage optional parameters to getTagRuleScore.
|
static class |
TagRulesApi.ListTagRulesOptionalParameters
Manage optional parameters to listTagRules.
|
| Constructor and Description |
|---|
TagRulesApi() |
TagRulesApi(ApiClient apiClient) |
public TagRulesApi()
public TagRulesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic TagRuleResponse createTagRule(TagRuleCreateRequest body) throws ApiException
See createTagRuleWithHttpInfo(com.datadog.api.client.v2.model.TagRuleCreateRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<TagRuleResponse> createTagRuleAsync(TagRuleCreateRequest body)
See createTagRuleWithHttpInfoAsync(com.datadog.api.client.v2.model.TagRuleCreateRequest).
body - (required)public ApiResponse<TagRuleResponse> createTagRuleWithHttpInfo(TagRuleCreateRequest body) throws ApiException
rule_id
, version, and the timestamp/audit fields are assigned by the server.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TagRuleResponse>> createTagRuleWithHttpInfoAsync(TagRuleCreateRequest body)
See createTagRuleWithHttpInfo(com.datadog.api.client.v2.model.TagRuleCreateRequest).
body - (required)public void deleteTagRule(String ruleId) throws ApiException
ruleId - The unique identifier of the tag rule to delete. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTagRuleAsync(String ruleId)
ruleId - The unique identifier of the tag rule to delete. (required)public void deleteTagRule(String ruleId, TagRulesApi.DeleteTagRuleOptionalParameters parameters) throws ApiException
ruleId - The unique identifier of the tag rule to delete. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTagRuleAsync(String ruleId, TagRulesApi.DeleteTagRuleOptionalParameters parameters)
ruleId - The unique identifier of the tag rule to delete. (required)parameters - Optional parameters for the request.public ApiResponse<Void> deleteTagRuleWithHttpInfo(String ruleId, TagRulesApi.DeleteTagRuleOptionalParameters parameters) throws ApiException
hard_delete=true to remove the rule
permanently.ruleId - The unique identifier of the tag rule to delete. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTagRuleWithHttpInfoAsync(String ruleId, TagRulesApi.DeleteTagRuleOptionalParameters parameters)
ruleId - The unique identifier of the tag rule to delete. (required)parameters - Optional parameters for the request.public TagRuleResponse getTagRule(String ruleId) throws ApiException
ruleId - The unique identifier of the tag rule. (required)ApiException - if fails to make API callpublic CompletableFuture<TagRuleResponse> getTagRuleAsync(String ruleId)
ruleId - The unique identifier of the tag rule. (required)public TagRuleResponse getTagRule(String ruleId, TagRulesApi.GetTagRuleOptionalParameters parameters) throws ApiException
ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TagRuleResponse> getTagRuleAsync(String ruleId, TagRulesApi.GetTagRuleOptionalParameters parameters)
ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.public ApiResponse<TagRuleResponse> getTagRuleWithHttpInfo(String ruleId, TagRulesApi.GetTagRuleOptionalParameters parameters) throws ApiException
include=score query parameter. Rules belonging to other organizations cannot
be retrieved.ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TagRuleResponse>> getTagRuleWithHttpInfoAsync(String ruleId, TagRulesApi.GetTagRuleOptionalParameters parameters)
ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.public TagRuleScoreResponse getTagRuleScore(String ruleId) throws ApiException
ruleId - The unique identifier of the tag rule. (required)ApiException - if fails to make API callpublic CompletableFuture<TagRuleScoreResponse> getTagRuleScoreAsync(String ruleId)
ruleId - The unique identifier of the tag rule. (required)public TagRuleScoreResponse getTagRuleScore(String ruleId, TagRulesApi.GetTagRuleScoreOptionalParameters parameters) throws ApiException
ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TagRuleScoreResponse> getTagRuleScoreAsync(String ruleId, TagRulesApi.GetTagRuleScoreOptionalParameters parameters)
ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.public ApiResponse<TagRuleScoreResponse> getTagRuleScoreWithHttpInfo(String ruleId, TagRulesApi.GetTagRuleScoreOptionalParameters parameters) throws ApiException
null score indicates that no relevant
telemetry was found.ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TagRuleScoreResponse>> getTagRuleScoreWithHttpInfoAsync(String ruleId, TagRulesApi.GetTagRuleScoreOptionalParameters parameters)
ruleId - The unique identifier of the tag rule. (required)parameters - Optional parameters for the request.public TagRulesListResponse listTagRules() throws ApiException
See listTagRulesWithHttpInfo(com.datadog.api.client.v2.api.TagRulesApi.ListTagRulesOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<TagRulesListResponse> listTagRulesAsync()
public TagRulesListResponse listTagRules(TagRulesApi.ListTagRulesOptionalParameters parameters) throws ApiException
See listTagRulesWithHttpInfo(com.datadog.api.client.v2.api.TagRulesApi.ListTagRulesOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TagRulesListResponse> listTagRulesAsync(TagRulesApi.ListTagRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<TagRulesListResponse> listTagRulesWithHttpInfo(TagRulesApi.ListTagRulesOptionalParameters parameters) throws ApiException
include=score query parameter.parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TagRulesListResponse>> listTagRulesWithHttpInfoAsync(TagRulesApi.ListTagRulesOptionalParameters parameters)
See listTagRulesWithHttpInfo(com.datadog.api.client.v2.api.TagRulesApi.ListTagRulesOptionalParameters).
parameters - Optional parameters for the request.public TagRuleResponse updateTagRule(String ruleId, TagRuleUpdateRequest body) throws ApiException
See updateTagRuleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.TagRuleUpdateRequest).
ruleId - The unique identifier of the tag rule to update. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TagRuleResponse> updateTagRuleAsync(String ruleId, TagRuleUpdateRequest body)
ruleId - The unique identifier of the tag rule to update. (required)body - (required)public ApiResponse<TagRuleResponse> updateTagRuleWithHttpInfo(String ruleId, TagRuleUpdateRequest body) throws ApiException
source
cannot be changed after creation.ruleId - The unique identifier of the tag rule to update. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TagRuleResponse>> updateTagRuleWithHttpInfoAsync(String ruleId, TagRuleUpdateRequest body)
See updateTagRuleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.TagRuleUpdateRequest).
ruleId - The unique identifier of the tag rule to update. (required)body - (required)Copyright © 2026. All rights reserved.