@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CloudWorkloadSecurityApi extends Object
| Constructor and Description |
|---|
CloudWorkloadSecurityApi() |
CloudWorkloadSecurityApi(ApiClient apiClient) |
public CloudWorkloadSecurityApi()
public CloudWorkloadSecurityApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic CloudWorkloadSecurityAgentRuleResponse createCloudWorkloadSecurityAgentRule(CloudWorkloadSecurityAgentRuleCreateRequest body) throws ApiException
body - The definition of the new Agent rule. (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> createCloudWorkloadSecurityAgentRuleAsync(CloudWorkloadSecurityAgentRuleCreateRequest body)
body - The definition of the new Agent rule. (required)public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> createCloudWorkloadSecurityAgentRuleWithHttpInfo(CloudWorkloadSecurityAgentRuleCreateRequest body) throws ApiException
body - The definition of the new Agent rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRuleResponse>> createCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(CloudWorkloadSecurityAgentRuleCreateRequest body)
body - The definition of the new Agent rule. (required)public void deleteCloudWorkloadSecurityAgentRule(String agentRuleId) throws ApiException
See deleteCloudWorkloadSecurityAgentRuleWithHttpInfo(java.lang.String).
agentRuleId - The ID of the Agent rule. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCloudWorkloadSecurityAgentRuleAsync(String agentRuleId)
See deleteCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(java.lang.String).
agentRuleId - The ID of the Agent rule. (required)public ApiResponse<Void> deleteCloudWorkloadSecurityAgentRuleWithHttpInfo(String agentRuleId) throws ApiException
agentRuleId - The ID of the Agent rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(String agentRuleId)
See deleteCloudWorkloadSecurityAgentRuleWithHttpInfo(java.lang.String).
agentRuleId - The ID of the Agent rule. (required)public File downloadCloudWorkloadPolicyFile() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<File> downloadCloudWorkloadPolicyFileAsync()
public ApiResponse<File> downloadCloudWorkloadPolicyFileWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<File>> downloadCloudWorkloadPolicyFileWithHttpInfoAsync()
public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(String agentRuleId) throws ApiException
See getCloudWorkloadSecurityAgentRuleWithHttpInfo(java.lang.String).
agentRuleId - The ID of the Agent rule. (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> getCloudWorkloadSecurityAgentRuleAsync(String agentRuleId)
See getCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(java.lang.String).
agentRuleId - The ID of the Agent rule. (required)public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> getCloudWorkloadSecurityAgentRuleWithHttpInfo(String agentRuleId) throws ApiException
agentRuleId - The ID of the Agent rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRuleResponse>> getCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(String agentRuleId)
See getCloudWorkloadSecurityAgentRuleWithHttpInfo(java.lang.String).
agentRuleId - The ID of the Agent rule. (required)public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgentRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRulesListResponse> listCloudWorkloadSecurityAgentRulesAsync()
public ApiResponse<CloudWorkloadSecurityAgentRulesListResponse> listCloudWorkloadSecurityAgentRulesWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRulesListResponse>> listCloudWorkloadSecurityAgentRulesWithHttpInfoAsync()
public CloudWorkloadSecurityAgentRuleResponse updateCloudWorkloadSecurityAgentRule(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body) throws ApiException
agentRuleId - The ID of the Agent rule. (required)body - New definition of the Agent rule. (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> updateCloudWorkloadSecurityAgentRuleAsync(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body)
agentRuleId - The ID of the Agent rule. (required)body - New definition of the Agent rule. (required)public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> updateCloudWorkloadSecurityAgentRuleWithHttpInfo(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body) throws ApiException
agentRuleId - The ID of the Agent rule. (required)body - New definition of the Agent rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRuleResponse>> updateCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body)
agentRuleId - The ID of the Agent rule. (required)body - New definition of the Agent rule. (required)Copyright © 2023. All rights reserved.