@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AgentlessScanningApi extends Object
| Constructor and Description |
|---|
AgentlessScanningApi() |
AgentlessScanningApi(ApiClient apiClient) |
public AgentlessScanningApi()
public AgentlessScanningApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic AwsOnDemandResponse createAwsOnDemandTask(AwsOnDemandCreateRequest body) throws ApiException
See createAwsOnDemandTaskWithHttpInfo(com.datadog.api.client.v2.model.AwsOnDemandCreateRequest).
body - The definition of the on demand task. (required)ApiException - if fails to make API callpublic CompletableFuture<AwsOnDemandResponse> createAwsOnDemandTaskAsync(AwsOnDemandCreateRequest body)
See createAwsOnDemandTaskWithHttpInfoAsync(com.datadog.api.client.v2.model.AwsOnDemandCreateRequest).
body - The definition of the on demand task. (required)public ApiResponse<AwsOnDemandResponse> createAwsOnDemandTaskWithHttpInfo(AwsOnDemandCreateRequest body) throws ApiException
body - The definition of the on demand task. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | AWS on demand task created successfully. | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsOnDemandResponse>> createAwsOnDemandTaskWithHttpInfoAsync(AwsOnDemandCreateRequest body)
See createAwsOnDemandTaskWithHttpInfo(com.datadog.api.client.v2.model.AwsOnDemandCreateRequest).
body - The definition of the on demand task. (required)public AwsScanOptionsResponse createAwsScanOptions(AwsScanOptionsCreateRequest body) throws ApiException
See createAwsScanOptionsWithHttpInfo(com.datadog.api.client.v2.model.AwsScanOptionsCreateRequest).
body - The definition of the new scan options. (required)ApiException - if fails to make API callpublic CompletableFuture<AwsScanOptionsResponse> createAwsScanOptionsAsync(AwsScanOptionsCreateRequest body)
See createAwsScanOptionsWithHttpInfoAsync(com.datadog.api.client.v2.model.AwsScanOptionsCreateRequest).
body - The definition of the new scan options. (required)public ApiResponse<AwsScanOptionsResponse> createAwsScanOptionsWithHttpInfo(AwsScanOptionsCreateRequest body) throws ApiException
body - The definition of the new scan options. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Agentless scan options enabled successfully. | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsScanOptionsResponse>> createAwsScanOptionsWithHttpInfoAsync(AwsScanOptionsCreateRequest body)
See createAwsScanOptionsWithHttpInfo(com.datadog.api.client.v2.model.AwsScanOptionsCreateRequest).
body - The definition of the new scan options. (required)public void deleteAwsScanOptions(String accountId) throws ApiException
accountId - The ID of an AWS account. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteAwsScanOptionsAsync(String accountId)
See deleteAwsScanOptionsWithHttpInfoAsync(java.lang.String).
accountId - The ID of an AWS account. (required)public ApiResponse<Void> deleteAwsScanOptionsWithHttpInfo(String accountId) throws ApiException
accountId - The ID of an AWS account. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteAwsScanOptionsWithHttpInfoAsync(String accountId)
accountId - The ID of an AWS account. (required)public AwsOnDemandResponse getAwsOnDemandTask(String taskId) throws ApiException
taskId - The UUID of the task. (required)ApiException - if fails to make API callpublic CompletableFuture<AwsOnDemandResponse> getAwsOnDemandTaskAsync(String taskId)
taskId - The UUID of the task. (required)public ApiResponse<AwsOnDemandResponse> getAwsOnDemandTaskWithHttpInfo(String taskId) throws ApiException
taskId - The UUID of the task. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK. | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsOnDemandResponse>> getAwsOnDemandTaskWithHttpInfoAsync(String taskId)
taskId - The UUID of the task. (required)public AwsScanOptionsResponse getAwsScanOptions(String accountId) throws ApiException
accountId - The ID of an AWS account. (required)ApiException - if fails to make API callpublic CompletableFuture<AwsScanOptionsResponse> getAwsScanOptionsAsync(String accountId)
accountId - The ID of an AWS account. (required)public ApiResponse<AwsScanOptionsResponse> getAwsScanOptionsWithHttpInfo(String accountId) throws ApiException
accountId - The ID of an AWS account. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsScanOptionsResponse>> getAwsScanOptionsWithHttpInfoAsync(String accountId)
accountId - The ID of an AWS account. (required)public AwsOnDemandListResponse listAwsOnDemandTasks() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<AwsOnDemandListResponse> listAwsOnDemandTasksAsync()
public ApiResponse<AwsOnDemandListResponse> listAwsOnDemandTasksWithHttpInfo() 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<AwsOnDemandListResponse>> listAwsOnDemandTasksWithHttpInfoAsync()
public AwsScanOptionsListResponse listAwsScanOptions() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<AwsScanOptionsListResponse> listAwsScanOptionsAsync()
public ApiResponse<AwsScanOptionsListResponse> listAwsScanOptionsWithHttpInfo() 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<AwsScanOptionsListResponse>> listAwsScanOptionsWithHttpInfoAsync()
public void updateAwsScanOptions(String accountId, AwsScanOptionsUpdateRequest body) throws ApiException
accountId - The ID of an AWS account. (required)body - New definition of the scan options. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> updateAwsScanOptionsAsync(String accountId, AwsScanOptionsUpdateRequest body)
accountId - The ID of an AWS account. (required)body - New definition of the scan options. (required)public ApiResponse<Void> updateAwsScanOptionsWithHttpInfo(String accountId, AwsScanOptionsUpdateRequest body) throws ApiException
accountId - The ID of an AWS account. (required)body - New definition of the scan options. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> updateAwsScanOptionsWithHttpInfoAsync(String accountId, AwsScanOptionsUpdateRequest body)
accountId - The ID of an AWS account. (required)body - New definition of the scan options. (required)Copyright © 2025. All rights reserved.