@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DeploymentGatesApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DeploymentGatesApi.ListDeploymentGatesOptionalParameters
Manage optional parameters to listDeploymentGates.
|
| Constructor and Description |
|---|
DeploymentGatesApi() |
DeploymentGatesApi(ApiClient apiClient) |
public DeploymentGatesApi()
public DeploymentGatesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic DeploymentGateResponse createDeploymentGate(CreateDeploymentGateParams body) throws ApiException
See createDeploymentGateWithHttpInfo(com.datadog.api.client.v2.model.CreateDeploymentGateParams).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentGateResponse> createDeploymentGateAsync(CreateDeploymentGateParams body)
See createDeploymentGateWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateDeploymentGateParams).
body - (required)public ApiResponse<DeploymentGateResponse> createDeploymentGateWithHttpInfo(CreateDeploymentGateParams body) throws ApiException
body - (required)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 | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGateResponse>> createDeploymentGateWithHttpInfoAsync(CreateDeploymentGateParams body)
See createDeploymentGateWithHttpInfo(com.datadog.api.client.v2.model.CreateDeploymentGateParams).
body - (required)public DeploymentRuleResponse createDeploymentRule(String gateId, CreateDeploymentRuleParams body) throws ApiException
gateId - The ID of the deployment gate. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentRuleResponse> createDeploymentRuleAsync(String gateId, CreateDeploymentRuleParams body)
gateId - The ID of the deployment gate. (required)body - (required)public ApiResponse<DeploymentRuleResponse> createDeploymentRuleWithHttpInfo(String gateId, CreateDeploymentRuleParams body) throws ApiException
gateId - The ID of the deployment gate. (required)body - (required)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 | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentRuleResponse>> createDeploymentRuleWithHttpInfoAsync(String gateId, CreateDeploymentRuleParams body)
gateId - The ID of the deployment gate. (required)body - (required)public void deleteDeploymentGate(String id) throws ApiException
id - The ID of the deployment gate. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteDeploymentGateAsync(String id)
See deleteDeploymentGateWithHttpInfoAsync(java.lang.String).
id - The ID of the deployment gate. (required)public ApiResponse<Void> deleteDeploymentGateWithHttpInfo(String id) throws ApiException
id - The ID of the deployment gate. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad request. | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Deployment gate not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<Void>> deleteDeploymentGateWithHttpInfoAsync(String id)
id - The ID of the deployment gate. (required)public void deleteDeploymentRule(String gateId, String id) throws ApiException
See deleteDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteDeploymentRuleAsync(String gateId, String id)
See deleteDeploymentRuleWithHttpInfoAsync(java.lang.String, java.lang.String).
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)public ApiResponse<Void> deleteDeploymentRuleWithHttpInfo(String gateId, String id) throws ApiException
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad request. | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Deployment gate not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<Void>> deleteDeploymentRuleWithHttpInfoAsync(String gateId, String id)
See deleteDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)public DeploymentGateResponse getDeploymentGate(String id) throws ApiException
id - The ID of the deployment gate. (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentGateResponse> getDeploymentGateAsync(String id)
id - The ID of the deployment gate. (required)public ApiResponse<DeploymentGateResponse> getDeploymentGateWithHttpInfo(String id) throws ApiException
id - The ID of the deployment gate. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Deployment gate not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGateResponse>> getDeploymentGateWithHttpInfoAsync(String id)
id - The ID of the deployment gate. (required)public DeploymentGateRulesResponse getDeploymentGateRules(String gateId) throws ApiException
gateId - The ID of the deployment gate. (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentGateRulesResponse> getDeploymentGateRulesAsync(String gateId)
See getDeploymentGateRulesWithHttpInfoAsync(java.lang.String).
gateId - The ID of the deployment gate. (required)public ApiResponse<DeploymentGateRulesResponse> getDeploymentGateRulesWithHttpInfo(String gateId) throws ApiException
gateId - The ID of the deployment gate. (required)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 | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGateRulesResponse>> getDeploymentGateRulesWithHttpInfoAsync(String gateId)
gateId - The ID of the deployment gate. (required)public DeploymentGatesEvaluationResultResponse getDeploymentGatesEvaluationResult(UUID id) throws ApiException
See getDeploymentGatesEvaluationResultWithHttpInfo(java.util.UUID).
id - The evaluation ID returned by the trigger endpoint. (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentGatesEvaluationResultResponse> getDeploymentGatesEvaluationResultAsync(UUID id)
See getDeploymentGatesEvaluationResultWithHttpInfoAsync(java.util.UUID).
id - The evaluation ID returned by the trigger endpoint. (required)public ApiResponse<DeploymentGatesEvaluationResultResponse> getDeploymentGatesEvaluationResultWithHttpInfo(UUID id) throws ApiException
data.attributes.gate_status will be in_progress;
continue polling until it returns pass or fail. Polling every 10-20
seconds is recommended. The endpoint may return a 404 if called too soon after triggering;
retry after a few seconds.id - The evaluation ID returned by the trigger endpoint. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Deployment gate not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGatesEvaluationResultResponse>> getDeploymentGatesEvaluationResultWithHttpInfoAsync(UUID id)
See getDeploymentGatesEvaluationResultWithHttpInfo(java.util.UUID).
id - The evaluation ID returned by the trigger endpoint. (required)public DeploymentRuleResponse getDeploymentRule(String gateId, String id) throws ApiException
See getDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentRuleResponse> getDeploymentRuleAsync(String gateId, String id)
See getDeploymentRuleWithHttpInfoAsync(java.lang.String, java.lang.String).
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)public ApiResponse<DeploymentRuleResponse> getDeploymentRuleWithHttpInfo(String gateId, String id) throws ApiException
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad request. | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Deployment rule not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentRuleResponse>> getDeploymentRuleWithHttpInfoAsync(String gateId, String id)
See getDeploymentRuleWithHttpInfo(java.lang.String, java.lang.String).
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)public DeploymentGatesListResponse listDeploymentGates() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<DeploymentGatesListResponse> listDeploymentGatesAsync()
public DeploymentGatesListResponse listDeploymentGates(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<DeploymentGatesListResponse> listDeploymentGatesAsync(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<DeploymentGatesListResponse> listDeploymentGatesWithHttpInfo(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters) throws ApiException
page[cursor]
and page[size] query parameters to paginate through results.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 | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGatesListResponse>> listDeploymentGatesWithHttpInfoAsync(DeploymentGatesApi.ListDeploymentGatesOptionalParameters parameters)
parameters - Optional parameters for the request.public DeploymentGatesEvaluationResponse triggerDeploymentGatesEvaluation(DeploymentGatesEvaluationRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentGatesEvaluationResponse> triggerDeploymentGatesEvaluationAsync(DeploymentGatesEvaluationRequest body)
body - (required)public ApiResponse<DeploymentGatesEvaluationResponse> triggerDeploymentGatesEvaluationWithHttpInfo(DeploymentGatesEvaluationRequest body) throws ApiException
GET /api/v2/deployments/gates/evaluation/{id} endpoint.
When the configuration attribute is provided, rules are evaluated inline from
that configuration and no pre-configured gate is required. When configuration is
omitted, rules are resolved from the gate pre-configured for the given service and environment
through the Datadog UI, API, or Terraform.
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Accepted | - |
| 400 | Bad request. | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Deployment gate not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGatesEvaluationResponse>> triggerDeploymentGatesEvaluationWithHttpInfoAsync(DeploymentGatesEvaluationRequest body)
body - (required)public DeploymentGateResponse updateDeploymentGate(String id, UpdateDeploymentGateParams body) throws ApiException
id - The ID of the deployment gate. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentGateResponse> updateDeploymentGateAsync(String id, UpdateDeploymentGateParams body)
id - The ID of the deployment gate. (required)body - (required)public ApiResponse<DeploymentGateResponse> updateDeploymentGateWithHttpInfo(String id, UpdateDeploymentGateParams body) throws ApiException
id - The ID of the deployment gate. (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 | Deployment gate not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentGateResponse>> updateDeploymentGateWithHttpInfoAsync(String id, UpdateDeploymentGateParams body)
id - The ID of the deployment gate. (required)body - (required)public DeploymentRuleResponse updateDeploymentRule(String gateId, String id, UpdateDeploymentRuleParams body) throws ApiException
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<DeploymentRuleResponse> updateDeploymentRuleAsync(String gateId, String id, UpdateDeploymentRuleParams body)
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)body - (required)public ApiResponse<DeploymentRuleResponse> updateDeploymentRuleWithHttpInfo(String gateId, String id, UpdateDeploymentRuleParams body) throws ApiException
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (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 | Deployment rule not found. | - |
| 429 | Too many requests | - |
| 500 | Internal Server Error | - |
public CompletableFuture<ApiResponse<DeploymentRuleResponse>> updateDeploymentRuleWithHttpInfoAsync(String gateId, String id, UpdateDeploymentRuleParams body)
gateId - The ID of the deployment gate. (required)id - The ID of the deployment rule. (required)body - (required)Copyright © 2026. All rights reserved.