@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ExecutionPolicyApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters
Manage optional parameters to listExecutionPolicies.
|
| Constructor and Description |
|---|
ExecutionPolicyApi() |
ExecutionPolicyApi(ApiClient apiClient) |
public ExecutionPolicyApi()
public ExecutionPolicyApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic ExecutionPolicyResponse createExecutionPolicy(ExecutionPolicyCreateRequest body) throws ApiException
See createExecutionPolicyWithHttpInfo(com.datadog.api.client.v2.model.ExecutionPolicyCreateRequest).
body - The execution policy to create. (required)ApiException - if fails to make API callpublic CompletableFuture<ExecutionPolicyResponse> createExecutionPolicyAsync(ExecutionPolicyCreateRequest body)
See createExecutionPolicyWithHttpInfoAsync(com.datadog.api.client.v2.model.ExecutionPolicyCreateRequest).
body - The execution policy to create. (required)public ApiResponse<ExecutionPolicyResponse> createExecutionPolicyWithHttpInfo(ExecutionPolicyCreateRequest body) throws ApiException
body - The execution policy to create. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ExecutionPolicyResponse>> createExecutionPolicyWithHttpInfoAsync(ExecutionPolicyCreateRequest body)
See createExecutionPolicyWithHttpInfo(com.datadog.api.client.v2.model.ExecutionPolicyCreateRequest).
body - The execution policy to create. (required)public void deleteExecutionPolicy(String policyId) throws ApiException
policyId - The ID of the execution policy. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteExecutionPolicyAsync(String policyId)
See deleteExecutionPolicyWithHttpInfoAsync(java.lang.String).
policyId - The ID of the execution policy. (required)public ApiResponse<Void> deleteExecutionPolicyWithHttpInfo(String policyId) throws ApiException
policyId - The ID of the execution policy. (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>> deleteExecutionPolicyWithHttpInfoAsync(String policyId)
policyId - The ID of the execution policy. (required)public ExecutionPolicyResponse getExecutionPolicy(String policyId) throws ApiException
policyId - The ID of the execution policy. (required)ApiException - if fails to make API callpublic CompletableFuture<ExecutionPolicyResponse> getExecutionPolicyAsync(String policyId)
policyId - The ID of the execution policy. (required)public ApiResponse<ExecutionPolicyResponse> getExecutionPolicyWithHttpInfo(String policyId) throws ApiException
policyId - The ID of the execution policy. (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<ExecutionPolicyResponse>> getExecutionPolicyWithHttpInfoAsync(String policyId)
policyId - The ID of the execution policy. (required)public ExecutionPolicyListResponse listExecutionPolicies() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ExecutionPolicyListResponse> listExecutionPoliciesAsync()
public ExecutionPolicyListResponse listExecutionPolicies(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ExecutionPolicyListResponse> listExecutionPoliciesAsync(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<ExecutionPolicyListResponse> listExecutionPoliciesWithHttpInfo(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters 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<ExecutionPolicyListResponse>> listExecutionPoliciesWithHttpInfoAsync(ExecutionPolicyApi.ListExecutionPoliciesOptionalParameters parameters)
parameters - Optional parameters for the request.public ExecutionPolicyResponse updateExecutionPolicy(String policyId, ExecutionPolicyUpdateRequest body) throws ApiException
policyId - The ID of the execution policy. (required)body - The new execution policy. (required)ApiException - if fails to make API callpublic CompletableFuture<ExecutionPolicyResponse> updateExecutionPolicyAsync(String policyId, ExecutionPolicyUpdateRequest body)
policyId - The ID of the execution policy. (required)body - The new execution policy. (required)public ApiResponse<ExecutionPolicyResponse> updateExecutionPolicyWithHttpInfo(String policyId, ExecutionPolicyUpdateRequest body) throws ApiException
policyId - The ID of the execution policy. (required)body - The new execution policy. (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<ExecutionPolicyResponse>> updateExecutionPolicyWithHttpInfoAsync(String policyId, ExecutionPolicyUpdateRequest body)
policyId - The ID of the execution policy. (required)body - The new execution policy. (required)Copyright © 2026. All rights reserved.