@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CsmThreatsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CsmThreatsApi.DeleteCSMThreatsAgentRuleOptionalParameters
Manage optional parameters to deleteCSMThreatsAgentRule.
|
static class |
CsmThreatsApi.GetCSMThreatsAgentRuleOptionalParameters
Manage optional parameters to getCSMThreatsAgentRule.
|
static class |
CsmThreatsApi.ListCSMThreatsAgentRulesOptionalParameters
Manage optional parameters to listCSMThreatsAgentRules.
|
static class |
CsmThreatsApi.UpdateCSMThreatsAgentRuleOptionalParameters
Manage optional parameters to updateCSMThreatsAgentRule.
|
| Constructor and Description |
|---|
CsmThreatsApi() |
CsmThreatsApi(ApiClient apiClient) |
public CsmThreatsApi()
public CsmThreatsApi(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
Note: This endpoint should only be used for the Government (US1-FED) site.
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 CloudWorkloadSecurityAgentPolicyResponse createCSMThreatsAgentPolicy(CloudWorkloadSecurityAgentPolicyCreateRequest body) throws ApiException
body - The definition of the new Agent policy (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentPolicyResponse> createCSMThreatsAgentPolicyAsync(CloudWorkloadSecurityAgentPolicyCreateRequest body)
body - The definition of the new Agent policy (required)public ApiResponse<CloudWorkloadSecurityAgentPolicyResponse> createCSMThreatsAgentPolicyWithHttpInfo(CloudWorkloadSecurityAgentPolicyCreateRequest body) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
body - The definition of the new Agent policy (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<CloudWorkloadSecurityAgentPolicyResponse>> createCSMThreatsAgentPolicyWithHttpInfoAsync(CloudWorkloadSecurityAgentPolicyCreateRequest body)
body - The definition of the new Agent policy (required)public CloudWorkloadSecurityAgentRuleResponse createCSMThreatsAgentRule(CloudWorkloadSecurityAgentRuleCreateRequest body) throws ApiException
body - The definition of the new agent rule (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> createCSMThreatsAgentRuleAsync(CloudWorkloadSecurityAgentRuleCreateRequest body)
body - The definition of the new agent rule (required)public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> createCSMThreatsAgentRuleWithHttpInfo(CloudWorkloadSecurityAgentRuleCreateRequest body) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
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>> createCSMThreatsAgentRuleWithHttpInfoAsync(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
Note: This endpoint should only be used for the Government (US1-FED) site.
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 void deleteCSMThreatsAgentPolicy(String policyId) throws ApiException
See deleteCSMThreatsAgentPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the Agent policy (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCSMThreatsAgentPolicyAsync(String policyId)
See deleteCSMThreatsAgentPolicyWithHttpInfoAsync(java.lang.String).
policyId - The ID of the Agent policy (required)public ApiResponse<Void> deleteCSMThreatsAgentPolicyWithHttpInfo(String policyId) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
policyId - The ID of the Agent policy (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | OK | - |
| 204 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCSMThreatsAgentPolicyWithHttpInfoAsync(String policyId)
See deleteCSMThreatsAgentPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the Agent policy (required)public void deleteCSMThreatsAgentRule(String agentRuleId) throws ApiException
agentRuleId - The ID of the Agent rule (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCSMThreatsAgentRuleAsync(String agentRuleId)
agentRuleId - The ID of the Agent rule (required)public void deleteCSMThreatsAgentRule(String agentRuleId, CsmThreatsApi.DeleteCSMThreatsAgentRuleOptionalParameters parameters) throws ApiException
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCSMThreatsAgentRuleAsync(String agentRuleId, CsmThreatsApi.DeleteCSMThreatsAgentRuleOptionalParameters parameters)
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.public ApiResponse<Void> deleteCSMThreatsAgentRuleWithHttpInfo(String agentRuleId, CsmThreatsApi.DeleteCSMThreatsAgentRuleOptionalParameters parameters) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.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>> deleteCSMThreatsAgentRuleWithHttpInfoAsync(String agentRuleId, CsmThreatsApi.DeleteCSMThreatsAgentRuleOptionalParameters parameters)
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.public File downloadCloudWorkloadPolicyFile() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<File> downloadCloudWorkloadPolicyFileAsync()
public ApiResponse<File> downloadCloudWorkloadPolicyFileWithHttpInfo() throws ApiException
.policy file. This file
can then be deployed to your agents to update the policy running in your environment.
Note: This endpoint should only be used for the Government (US1-FED) site.
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 File downloadCSMThreatsPolicy() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<File> downloadCSMThreatsPolicyAsync()
public ApiResponse<File> downloadCSMThreatsPolicyWithHttpInfo() throws ApiException
.policy file. This file
can then be deployed to your agents to update the policy running in your environment.
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
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>> downloadCSMThreatsPolicyWithHttpInfoAsync()
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
Note: This endpoint should only be used for the Government (US1-FED) site.
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 CloudWorkloadSecurityAgentPolicyResponse getCSMThreatsAgentPolicy(String policyId) throws ApiException
policyId - The ID of the Agent policy (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentPolicyResponse> getCSMThreatsAgentPolicyAsync(String policyId)
See getCSMThreatsAgentPolicyWithHttpInfoAsync(java.lang.String).
policyId - The ID of the Agent policy (required)public ApiResponse<CloudWorkloadSecurityAgentPolicyResponse> getCSMThreatsAgentPolicyWithHttpInfo(String policyId) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
policyId - The ID of the Agent policy (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<CloudWorkloadSecurityAgentPolicyResponse>> getCSMThreatsAgentPolicyWithHttpInfoAsync(String policyId)
policyId - The ID of the Agent policy (required)public CloudWorkloadSecurityAgentRuleResponse getCSMThreatsAgentRule(String agentRuleId) throws ApiException
agentRuleId - The ID of the Agent rule (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> getCSMThreatsAgentRuleAsync(String agentRuleId)
agentRuleId - The ID of the Agent rule (required)public CloudWorkloadSecurityAgentRuleResponse getCSMThreatsAgentRule(String agentRuleId, CsmThreatsApi.GetCSMThreatsAgentRuleOptionalParameters parameters) throws ApiException
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> getCSMThreatsAgentRuleAsync(String agentRuleId, CsmThreatsApi.GetCSMThreatsAgentRuleOptionalParameters parameters)
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> getCSMThreatsAgentRuleWithHttpInfo(String agentRuleId, CsmThreatsApi.GetCSMThreatsAgentRuleOptionalParameters parameters) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.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>> getCSMThreatsAgentRuleWithHttpInfoAsync(String agentRuleId, CsmThreatsApi.GetCSMThreatsAgentRuleOptionalParameters parameters)
agentRuleId - The ID of the Agent rule (required)parameters - Optional parameters for the request.public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgentRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRulesListResponse> listCloudWorkloadSecurityAgentRulesAsync()
public ApiResponse<CloudWorkloadSecurityAgentRulesListResponse> listCloudWorkloadSecurityAgentRulesWithHttpInfo() throws ApiException
Note: This endpoint should only be used for the Government (US1-FED) site.
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 CloudWorkloadSecurityAgentPoliciesListResponse listCSMThreatsAgentPolicies() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentPoliciesListResponse> listCSMThreatsAgentPoliciesAsync()
public ApiResponse<CloudWorkloadSecurityAgentPoliciesListResponse> listCSMThreatsAgentPoliciesWithHttpInfo() throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentPoliciesListResponse>> listCSMThreatsAgentPoliciesWithHttpInfoAsync()
public CloudWorkloadSecurityAgentRulesListResponse listCSMThreatsAgentRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRulesListResponse> listCSMThreatsAgentRulesAsync()
public CloudWorkloadSecurityAgentRulesListResponse listCSMThreatsAgentRules(CsmThreatsApi.ListCSMThreatsAgentRulesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRulesListResponse> listCSMThreatsAgentRulesAsync(CsmThreatsApi.ListCSMThreatsAgentRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<CloudWorkloadSecurityAgentRulesListResponse> listCSMThreatsAgentRulesWithHttpInfo(CsmThreatsApi.ListCSMThreatsAgentRulesOptionalParameters parameters) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
parameters - Optional parameters for the request.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>> listCSMThreatsAgentRulesWithHttpInfoAsync(CsmThreatsApi.ListCSMThreatsAgentRulesOptionalParameters parameters)
parameters - Optional parameters for the request.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
Note: This endpoint should only be used for the Government (US1-FED) site.
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)public CloudWorkloadSecurityAgentPolicyResponse updateCSMThreatsAgentPolicy(String policyId, CloudWorkloadSecurityAgentPolicyUpdateRequest body) throws ApiException
policyId - The ID of the Agent policy (required)body - New definition of the Agent policy (required)ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentPolicyResponse> updateCSMThreatsAgentPolicyAsync(String policyId, CloudWorkloadSecurityAgentPolicyUpdateRequest body)
policyId - The ID of the Agent policy (required)body - New definition of the Agent policy (required)public ApiResponse<CloudWorkloadSecurityAgentPolicyResponse> updateCSMThreatsAgentPolicyWithHttpInfo(String policyId, CloudWorkloadSecurityAgentPolicyUpdateRequest body) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
policyId - The ID of the Agent policy (required)body - New definition of the Agent policy (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<CloudWorkloadSecurityAgentPolicyResponse>> updateCSMThreatsAgentPolicyWithHttpInfoAsync(String policyId, CloudWorkloadSecurityAgentPolicyUpdateRequest body)
policyId - The ID of the Agent policy (required)body - New definition of the Agent policy (required)public CloudWorkloadSecurityAgentRuleResponse updateCSMThreatsAgentRule(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> updateCSMThreatsAgentRuleAsync(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body)
agentRuleId - The ID of the Agent rule (required)body - New definition of the agent rule (required)public CloudWorkloadSecurityAgentRuleResponse updateCSMThreatsAgentRule(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body, CsmThreatsApi.UpdateCSMThreatsAgentRuleOptionalParameters parameters) throws ApiException
agentRuleId - The ID of the Agent rule (required)body - New definition of the agent rule (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> updateCSMThreatsAgentRuleAsync(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body, CsmThreatsApi.UpdateCSMThreatsAgentRuleOptionalParameters parameters)
agentRuleId - The ID of the Agent rule (required)body - New definition of the agent rule (required)parameters - Optional parameters for the request.public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> updateCSMThreatsAgentRuleWithHttpInfo(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body, CsmThreatsApi.UpdateCSMThreatsAgentRuleOptionalParameters parameters) throws ApiException
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
agentRuleId - The ID of the Agent rule (required)body - New definition of the agent 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 | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRuleResponse>> updateCSMThreatsAgentRuleWithHttpInfoAsync(String agentRuleId, CloudWorkloadSecurityAgentRuleUpdateRequest body, CsmThreatsApi.UpdateCSMThreatsAgentRuleOptionalParameters parameters)
agentRuleId - The ID of the Agent rule (required)body - New definition of the agent rule (required)parameters - Optional parameters for the request.Copyright © 2025. All rights reserved.