@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ApplicationSecurityApi extends Object
| Constructor and Description |
|---|
ApplicationSecurityApi() |
ApplicationSecurityApi(ApiClient apiClient) |
public ApplicationSecurityApi()
public ApplicationSecurityApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic ApplicationSecurityWafCustomRuleResponse createApplicationSecurityWafCustomRule(ApplicationSecurityWafCustomRuleCreateRequest body) throws ApiException
body - The definition of the new WAF Custom Rule. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafCustomRuleResponse> createApplicationSecurityWafCustomRuleAsync(ApplicationSecurityWafCustomRuleCreateRequest body)
body - The definition of the new WAF Custom Rule. (required)public ApiResponse<ApplicationSecurityWafCustomRuleResponse> createApplicationSecurityWafCustomRuleWithHttpInfo(ApplicationSecurityWafCustomRuleCreateRequest body) throws ApiException
body - The definition of the new WAF Custom Rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationSecurityWafCustomRuleResponse>> createApplicationSecurityWafCustomRuleWithHttpInfoAsync(ApplicationSecurityWafCustomRuleCreateRequest body)
body - The definition of the new WAF Custom Rule. (required)public ApplicationSecurityWafExclusionFilterResponse createApplicationSecurityWafExclusionFilter(ApplicationSecurityWafExclusionFilterCreateRequest body) throws ApiException
body - The definition of the new WAF exclusion filter. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafExclusionFilterResponse> createApplicationSecurityWafExclusionFilterAsync(ApplicationSecurityWafExclusionFilterCreateRequest body)
body - The definition of the new WAF exclusion filter. (required)public ApiResponse<ApplicationSecurityWafExclusionFilterResponse> createApplicationSecurityWafExclusionFilterWithHttpInfo(ApplicationSecurityWafExclusionFilterCreateRequest body) throws ApiException
A request matched by an exclusion filter will be ignored by the Application Security WAF product. Go to https://app.datadoghq.com/security/appsec/passlist to review existing exclusion filters (also called passlist entries).
body - The definition of the new WAF exclusion filter. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationSecurityWafExclusionFilterResponse>> createApplicationSecurityWafExclusionFilterWithHttpInfoAsync(ApplicationSecurityWafExclusionFilterCreateRequest body)
body - The definition of the new WAF exclusion filter. (required)public ApplicationSecurityPolicyResponse createApplicationSecurityWafPolicy(ApplicationSecurityPolicyCreateRequest body) throws ApiException
body - The new WAF policy. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityPolicyResponse> createApplicationSecurityWafPolicyAsync(ApplicationSecurityPolicyCreateRequest body)
body - The new WAF policy. (required)public ApiResponse<ApplicationSecurityPolicyResponse> createApplicationSecurityWafPolicyWithHttpInfo(ApplicationSecurityPolicyCreateRequest body) throws ApiException
body - The new WAF policy. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationSecurityPolicyResponse>> createApplicationSecurityWafPolicyWithHttpInfoAsync(ApplicationSecurityPolicyCreateRequest body)
body - The new WAF policy. (required)public void deleteApplicationSecurityWafCustomRule(String customRuleId) throws ApiException
See deleteApplicationSecurityWafCustomRuleWithHttpInfo(java.lang.String).
customRuleId - The ID of the custom rule. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteApplicationSecurityWafCustomRuleAsync(String customRuleId)
See deleteApplicationSecurityWafCustomRuleWithHttpInfoAsync(java.lang.String).
customRuleId - The ID of the custom rule. (required)public ApiResponse<Void> deleteApplicationSecurityWafCustomRuleWithHttpInfo(String customRuleId) throws ApiException
customRuleId - The ID of the custom rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteApplicationSecurityWafCustomRuleWithHttpInfoAsync(String customRuleId)
See deleteApplicationSecurityWafCustomRuleWithHttpInfo(java.lang.String).
customRuleId - The ID of the custom rule. (required)public void deleteApplicationSecurityWafExclusionFilter(String exclusionFilterId) throws ApiException
See deleteApplicationSecurityWafExclusionFilterWithHttpInfo(java.lang.String).
exclusionFilterId - The identifier of the WAF exclusion filter. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteApplicationSecurityWafExclusionFilterAsync(String exclusionFilterId)
See deleteApplicationSecurityWafExclusionFilterWithHttpInfoAsync(java.lang.String).
exclusionFilterId - The identifier of the WAF exclusion filter. (required)public ApiResponse<Void> deleteApplicationSecurityWafExclusionFilterWithHttpInfo(String exclusionFilterId) throws ApiException
exclusionFilterId - The identifier of the WAF exclusion filter. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteApplicationSecurityWafExclusionFilterWithHttpInfoAsync(String exclusionFilterId)
See deleteApplicationSecurityWafExclusionFilterWithHttpInfo(java.lang.String).
exclusionFilterId - The identifier of the WAF exclusion filter. (required)public void deleteApplicationSecurityWafPolicy(String policyId) throws ApiException
See deleteApplicationSecurityWafPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the policy. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteApplicationSecurityWafPolicyAsync(String policyId)
See deleteApplicationSecurityWafPolicyWithHttpInfoAsync(java.lang.String).
policyId - The ID of the policy. (required)public ApiResponse<Void> deleteApplicationSecurityWafPolicyWithHttpInfo(String policyId) throws ApiException
policyId - The ID of the policy. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 409 | Concurrent Modification | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteApplicationSecurityWafPolicyWithHttpInfoAsync(String policyId)
See deleteApplicationSecurityWafPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the policy. (required)public ApplicationSecurityWafCustomRuleResponse getApplicationSecurityWafCustomRule(String customRuleId) throws ApiException
See getApplicationSecurityWafCustomRuleWithHttpInfo(java.lang.String).
customRuleId - The ID of the custom rule. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafCustomRuleResponse> getApplicationSecurityWafCustomRuleAsync(String customRuleId)
See getApplicationSecurityWafCustomRuleWithHttpInfoAsync(java.lang.String).
customRuleId - The ID of the custom rule. (required)public ApiResponse<ApplicationSecurityWafCustomRuleResponse> getApplicationSecurityWafCustomRuleWithHttpInfo(String customRuleId) throws ApiException
customRuleId - The ID of the custom rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationSecurityWafCustomRuleResponse>> getApplicationSecurityWafCustomRuleWithHttpInfoAsync(String customRuleId)
See getApplicationSecurityWafCustomRuleWithHttpInfo(java.lang.String).
customRuleId - The ID of the custom rule. (required)public ApplicationSecurityWafExclusionFilterResponse getApplicationSecurityWafExclusionFilter(String exclusionFilterId) throws ApiException
See getApplicationSecurityWafExclusionFilterWithHttpInfo(java.lang.String).
exclusionFilterId - The identifier of the WAF exclusion filter. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafExclusionFilterResponse> getApplicationSecurityWafExclusionFilterAsync(String exclusionFilterId)
See getApplicationSecurityWafExclusionFilterWithHttpInfoAsync(java.lang.String).
exclusionFilterId - The identifier of the WAF exclusion filter. (required)public ApiResponse<ApplicationSecurityWafExclusionFilterResponse> getApplicationSecurityWafExclusionFilterWithHttpInfo(String exclusionFilterId) throws ApiException
exclusionFilterId - The identifier of the WAF exclusion filter. (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<ApplicationSecurityWafExclusionFilterResponse>> getApplicationSecurityWafExclusionFilterWithHttpInfoAsync(String exclusionFilterId)
See getApplicationSecurityWafExclusionFilterWithHttpInfo(java.lang.String).
exclusionFilterId - The identifier of the WAF exclusion filter. (required)public ApplicationSecurityPolicyResponse getApplicationSecurityWafPolicy(String policyId) throws ApiException
See getApplicationSecurityWafPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the policy. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityPolicyResponse> getApplicationSecurityWafPolicyAsync(String policyId)
See getApplicationSecurityWafPolicyWithHttpInfoAsync(java.lang.String).
policyId - The ID of the policy. (required)public ApiResponse<ApplicationSecurityPolicyResponse> getApplicationSecurityWafPolicyWithHttpInfo(String policyId) throws ApiException
policyId - The ID of the policy. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationSecurityPolicyResponse>> getApplicationSecurityWafPolicyWithHttpInfoAsync(String policyId)
See getApplicationSecurityWafPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the policy. (required)public ApplicationSecurityServicesResponse getAsmServiceByName(String serviceFilter) throws ApiException
serviceFilter - The name of the service to retrieve Application Security details for.
Returns all matching services across environments. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityServicesResponse> getAsmServiceByNameAsync(String serviceFilter)
serviceFilter - The name of the service to retrieve Application Security details for.
Returns all matching services across environments. (required)public ApiResponse<ApplicationSecurityServicesResponse> getAsmServiceByNameWithHttpInfo(String serviceFilter) throws ApiException
(service, environment) pair, along with a count of services that have Application
Security Management (Threats) enabled.serviceFilter - The name of the service to retrieve Application Security details for.
Returns all matching services across environments. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationSecurityServicesResponse>> getAsmServiceByNameWithHttpInfoAsync(String serviceFilter)
serviceFilter - The name of the service to retrieve Application Security details for.
Returns all matching services across environments. (required)public ApplicationSecurityWafCustomRuleListResponse listApplicationSecurityWAFCustomRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafCustomRuleListResponse> listApplicationSecurityWAFCustomRulesAsync()
See listApplicationSecurityWAFCustomRulesWithHttpInfoAsync().
public ApiResponse<ApplicationSecurityWafCustomRuleListResponse> listApplicationSecurityWAFCustomRulesWithHttpInfo() 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<ApplicationSecurityWafCustomRuleListResponse>> listApplicationSecurityWAFCustomRulesWithHttpInfoAsync()
public ApplicationSecurityWafExclusionFiltersResponse listApplicationSecurityWafExclusionFilters() throws ApiException
See listApplicationSecurityWafExclusionFiltersWithHttpInfo().
ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafExclusionFiltersResponse> listApplicationSecurityWafExclusionFiltersAsync()
See listApplicationSecurityWafExclusionFiltersWithHttpInfoAsync().
public ApiResponse<ApplicationSecurityWafExclusionFiltersResponse> listApplicationSecurityWafExclusionFiltersWithHttpInfo() 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<ApplicationSecurityWafExclusionFiltersResponse>> listApplicationSecurityWafExclusionFiltersWithHttpInfoAsync()
See listApplicationSecurityWafExclusionFiltersWithHttpInfo().
public ApplicationSecurityPolicyListResponse listApplicationSecurityWAFPolicies() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityPolicyListResponse> listApplicationSecurityWAFPoliciesAsync()
public ApiResponse<ApplicationSecurityPolicyListResponse> listApplicationSecurityWAFPoliciesWithHttpInfo() 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<ApplicationSecurityPolicyListResponse>> listApplicationSecurityWAFPoliciesWithHttpInfoAsync()
public ApplicationSecurityWafCustomRuleResponse updateApplicationSecurityWafCustomRule(String customRuleId, ApplicationSecurityWafCustomRuleUpdateRequest body) throws ApiException
customRuleId - The ID of the custom rule. (required)body - New definition of the WAF Custom Rule. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafCustomRuleResponse> updateApplicationSecurityWafCustomRuleAsync(String customRuleId, ApplicationSecurityWafCustomRuleUpdateRequest body)
customRuleId - The ID of the custom rule. (required)body - New definition of the WAF Custom Rule. (required)public ApiResponse<ApplicationSecurityWafCustomRuleResponse> updateApplicationSecurityWafCustomRuleWithHttpInfo(String customRuleId, ApplicationSecurityWafCustomRuleUpdateRequest body) throws ApiException
customRuleId - The ID of the custom rule. (required)body - New definition of the WAF Custom 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<ApplicationSecurityWafCustomRuleResponse>> updateApplicationSecurityWafCustomRuleWithHttpInfoAsync(String customRuleId, ApplicationSecurityWafCustomRuleUpdateRequest body)
customRuleId - The ID of the custom rule. (required)body - New definition of the WAF Custom Rule. (required)public ApplicationSecurityWafExclusionFilterResponse updateApplicationSecurityWafExclusionFilter(String exclusionFilterId, ApplicationSecurityWafExclusionFilterUpdateRequest body) throws ApiException
exclusionFilterId - The identifier of the WAF exclusion filter. (required)body - The exclusion filter to update. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityWafExclusionFilterResponse> updateApplicationSecurityWafExclusionFilterAsync(String exclusionFilterId, ApplicationSecurityWafExclusionFilterUpdateRequest body)
exclusionFilterId - The identifier of the WAF exclusion filter. (required)body - The exclusion filter to update. (required)public ApiResponse<ApplicationSecurityWafExclusionFilterResponse> updateApplicationSecurityWafExclusionFilterWithHttpInfo(String exclusionFilterId, ApplicationSecurityWafExclusionFilterUpdateRequest body) throws ApiException
exclusionFilterId - The identifier of the WAF exclusion filter. (required)body - The exclusion filter to update. (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<ApplicationSecurityWafExclusionFilterResponse>> updateApplicationSecurityWafExclusionFilterWithHttpInfoAsync(String exclusionFilterId, ApplicationSecurityWafExclusionFilterUpdateRequest body)
exclusionFilterId - The identifier of the WAF exclusion filter. (required)body - The exclusion filter to update. (required)public ApplicationSecurityPolicyResponse updateApplicationSecurityWafPolicy(String policyId, ApplicationSecurityPolicyUpdateRequest body) throws ApiException
policyId - The ID of the policy. (required)body - New WAF policy. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationSecurityPolicyResponse> updateApplicationSecurityWafPolicyAsync(String policyId, ApplicationSecurityPolicyUpdateRequest body)
policyId - The ID of the policy. (required)body - New WAF policy. (required)public ApiResponse<ApplicationSecurityPolicyResponse> updateApplicationSecurityWafPolicyWithHttpInfo(String policyId, ApplicationSecurityPolicyUpdateRequest body) throws ApiException
policyId - The ID of the policy. (required)body - New WAF 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<ApplicationSecurityPolicyResponse>> updateApplicationSecurityWafPolicyWithHttpInfoAsync(String policyId, ApplicationSecurityPolicyUpdateRequest body)
policyId - The ID of the policy. (required)body - New WAF policy. (required)Copyright © 2026. All rights reserved.