@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WorkflowAutomationApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkflowAutomationApi.ListWorkflowInstancesOptionalParameters
Manage optional parameters to listWorkflowInstances.
|
| Constructor and Description |
|---|
WorkflowAutomationApi() |
WorkflowAutomationApi(ApiClient apiClient) |
public WorkflowAutomationApi()
public WorkflowAutomationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic WorklflowCancelInstanceResponse cancelWorkflowInstance(String workflowId, String instanceId) throws ApiException
See cancelWorkflowInstanceWithHttpInfo(java.lang.String, java.lang.String).
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (required)ApiException - if fails to make API callpublic CompletableFuture<WorklflowCancelInstanceResponse> cancelWorkflowInstanceAsync(String workflowId, String instanceId)
See cancelWorkflowInstanceWithHttpInfoAsync(java.lang.String, java.lang.String).
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (required)public ApiResponse<WorklflowCancelInstanceResponse> cancelWorkflowInstanceWithHttpInfo(String workflowId, String instanceId) throws ApiException
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (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<WorklflowCancelInstanceResponse>> cancelWorkflowInstanceWithHttpInfoAsync(String workflowId, String instanceId)
See cancelWorkflowInstanceWithHttpInfo(java.lang.String, java.lang.String).
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (required)public CreateWorkflowResponse createWorkflow(CreateWorkflowRequest body) throws ApiException
See createWorkflowWithHttpInfo(com.datadog.api.client.v2.model.CreateWorkflowRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<CreateWorkflowResponse> createWorkflowAsync(CreateWorkflowRequest body)
See createWorkflowWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateWorkflowRequest).
body - (required)public ApiResponse<CreateWorkflowResponse> createWorkflowWithHttpInfo(CreateWorkflowRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Successfully created a workflow. | - |
| 400 | Bad request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CreateWorkflowResponse>> createWorkflowWithHttpInfoAsync(CreateWorkflowRequest body)
See createWorkflowWithHttpInfo(com.datadog.api.client.v2.model.CreateWorkflowRequest).
body - (required)public WorkflowInstanceCreateResponse createWorkflowInstance(String workflowId, WorkflowInstanceCreateRequest body) throws ApiException
workflowId - The ID of the workflow. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<WorkflowInstanceCreateResponse> createWorkflowInstanceAsync(String workflowId, WorkflowInstanceCreateRequest body)
workflowId - The ID of the workflow. (required)body - (required)public ApiResponse<WorkflowInstanceCreateResponse> createWorkflowInstanceWithHttpInfo(String workflowId, WorkflowInstanceCreateRequest body) throws ApiException
workflowId - The ID of the workflow. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WorkflowInstanceCreateResponse>> createWorkflowInstanceWithHttpInfoAsync(String workflowId, WorkflowInstanceCreateRequest body)
workflowId - The ID of the workflow. (required)body - (required)public void deleteWorkflow(String workflowId) throws ApiException
workflowId - The ID of the workflow. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteWorkflowAsync(String workflowId)
workflowId - The ID of the workflow. (required)public ApiResponse<Void> deleteWorkflowWithHttpInfo(String workflowId) throws ApiException
workflowId - The ID of the workflow. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | Successfully deleted a workflow. | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteWorkflowWithHttpInfoAsync(String workflowId)
workflowId - The ID of the workflow. (required)public GetWorkflowResponse getWorkflow(String workflowId) throws ApiException
workflowId - The ID of the workflow. (required)ApiException - if fails to make API callpublic CompletableFuture<GetWorkflowResponse> getWorkflowAsync(String workflowId)
workflowId - The ID of the workflow. (required)public ApiResponse<GetWorkflowResponse> getWorkflowWithHttpInfo(String workflowId) throws ApiException
workflowId - The ID of the workflow. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Successfully got a workflow. | - |
| 400 | Bad request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<GetWorkflowResponse>> getWorkflowWithHttpInfoAsync(String workflowId)
workflowId - The ID of the workflow. (required)public WorklflowGetInstanceResponse getWorkflowInstance(String workflowId, String instanceId) throws ApiException
See getWorkflowInstanceWithHttpInfo(java.lang.String, java.lang.String).
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (required)ApiException - if fails to make API callpublic CompletableFuture<WorklflowGetInstanceResponse> getWorkflowInstanceAsync(String workflowId, String instanceId)
See getWorkflowInstanceWithHttpInfoAsync(java.lang.String, java.lang.String).
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (required)public ApiResponse<WorklflowGetInstanceResponse> getWorkflowInstanceWithHttpInfo(String workflowId, String instanceId) throws ApiException
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (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<WorklflowGetInstanceResponse>> getWorkflowInstanceWithHttpInfoAsync(String workflowId, String instanceId)
See getWorkflowInstanceWithHttpInfo(java.lang.String, java.lang.String).
workflowId - The ID of the workflow. (required)instanceId - The ID of the workflow instance. (required)public WorkflowListInstancesResponse listWorkflowInstances(String workflowId) throws ApiException
workflowId - The ID of the workflow. (required)ApiException - if fails to make API callpublic CompletableFuture<WorkflowListInstancesResponse> listWorkflowInstancesAsync(String workflowId)
workflowId - The ID of the workflow. (required)public WorkflowListInstancesResponse listWorkflowInstances(String workflowId, WorkflowAutomationApi.ListWorkflowInstancesOptionalParameters parameters) throws ApiException
workflowId - The ID of the workflow. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<WorkflowListInstancesResponse> listWorkflowInstancesAsync(String workflowId, WorkflowAutomationApi.ListWorkflowInstancesOptionalParameters parameters)
workflowId - The ID of the workflow. (required)parameters - Optional parameters for the request.public ApiResponse<WorkflowListInstancesResponse> listWorkflowInstancesWithHttpInfo(String workflowId, WorkflowAutomationApi.ListWorkflowInstancesOptionalParameters parameters) throws ApiException
workflowId - The ID of the workflow. (required)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<WorkflowListInstancesResponse>> listWorkflowInstancesWithHttpInfoAsync(String workflowId, WorkflowAutomationApi.ListWorkflowInstancesOptionalParameters parameters)
workflowId - The ID of the workflow. (required)parameters - Optional parameters for the request.public UpdateWorkflowResponse updateWorkflow(String workflowId, UpdateWorkflowRequest body) throws ApiException
See updateWorkflowWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UpdateWorkflowRequest).
workflowId - The ID of the workflow. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<UpdateWorkflowResponse> updateWorkflowAsync(String workflowId, UpdateWorkflowRequest body)
workflowId - The ID of the workflow. (required)body - (required)public ApiResponse<UpdateWorkflowResponse> updateWorkflowWithHttpInfo(String workflowId, UpdateWorkflowRequest body) throws ApiException
workflowId - The ID of the workflow. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Successfully updated a workflow. | - |
| 400 | Bad request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UpdateWorkflowResponse>> updateWorkflowWithHttpInfoAsync(String workflowId, UpdateWorkflowRequest body)
See updateWorkflowWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UpdateWorkflowRequest).
workflowId - The ID of the workflow. (required)body - (required)Copyright © 2025. All rights reserved.