Package com.datadog.api.client.v2.api
Class ThreatIntelligenceApi
java.lang.Object
com.datadog.api.client.v2.api.ThreatIntelligenceApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ThreatIntelligenceApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to addSTIXThreatIntel. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSTIXThreatIntel(String tiVendor, STIXBundleRequest body) Ingest STIX threat intelligence.addSTIXThreatIntel(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) Ingest STIX threat intelligence.addSTIXThreatIntelAsync(String tiVendor, STIXBundleRequest body) Ingest STIX threat intelligence.addSTIXThreatIntelAsync(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) Ingest STIX threat intelligence.addSTIXThreatIntelWithHttpInfo(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) Ingest a STIX 2.1 bundle containing threat intelligence indicators.addSTIXThreatIntelWithHttpInfoAsync(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) Ingest STIX threat intelligence.Get the API client.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
ThreatIntelligenceApi
public ThreatIntelligenceApi() -
ThreatIntelligenceApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
addSTIXThreatIntel
public STIXIngestResponse addSTIXThreatIntel(String tiVendor, STIXBundleRequest body) throws ApiException Ingest STIX threat intelligence.- Parameters:
tiVendor- Vendor identifier for the feed. The value must not exceed 10 characters. Datadog normalizes the accepted value to lowercase, converts non-alphanumeric characters to underscores, and trims leading and trailing underscores. (required)body- A STIX 2.1 bundle containing indicator objects. The request body must not exceed 50 MB as received or 100 MB after decompression. (required)- Returns:
- STIXIngestResponse
- Throws:
ApiException- if fails to make API call
-
addSTIXThreatIntelAsync
public CompletableFuture<STIXIngestResponse> addSTIXThreatIntelAsync(String tiVendor, STIXBundleRequest body) Ingest STIX threat intelligence.- Parameters:
tiVendor- Vendor identifier for the feed. The value must not exceed 10 characters. Datadog normalizes the accepted value to lowercase, converts non-alphanumeric characters to underscores, and trims leading and trailing underscores. (required)body- A STIX 2.1 bundle containing indicator objects. The request body must not exceed 50 MB as received or 100 MB after decompression. (required)- Returns:
- CompletableFuture<STIXIngestResponse>
-
addSTIXThreatIntel
public STIXIngestResponse addSTIXThreatIntel(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) throws ApiException Ingest STIX threat intelligence.- Parameters:
tiVendor- Vendor identifier for the feed. The value must not exceed 10 characters. Datadog normalizes the accepted value to lowercase, converts non-alphanumeric characters to underscores, and trims leading and trailing underscores. (required)body- A STIX 2.1 bundle containing indicator objects. The request body must not exceed 50 MB as received or 100 MB after decompression. (required)parameters- Optional parameters for the request.- Returns:
- STIXIngestResponse
- Throws:
ApiException- if fails to make API call
-
addSTIXThreatIntelAsync
public CompletableFuture<STIXIngestResponse> addSTIXThreatIntelAsync(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) Ingest STIX threat intelligence.- Parameters:
tiVendor- Vendor identifier for the feed. The value must not exceed 10 characters. Datadog normalizes the accepted value to lowercase, converts non-alphanumeric characters to underscores, and trims leading and trailing underscores. (required)body- A STIX 2.1 bundle containing indicator objects. The request body must not exceed 50 MB as received or 100 MB after decompression. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<STIXIngestResponse>
-
addSTIXThreatIntelWithHttpInfo
public ApiResponse<STIXIngestResponse> addSTIXThreatIntelWithHttpInfo(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) throws ApiException Ingest a STIX 2.1 bundle containing threat intelligence indicators. Only indicator objects are processed. Supported indicator patterns contain IPv4 addresses, IPv6 addresses, domain names, or SHA-256 file hashes.Non-indicator objects are ignored and are not included in the response counters. Indicator objects with unsupported STIX versions or patterns that produce no supported observable values increment the
unsupportedcounter. Patterns that cannot be parsed increment theinvalidcounter. Processing is best effort, so valid supported indicators in the same bundle are still added.A successful response means ingestion has completed. Reference-table materialization and enrichment happen asynchronously. Requests are limited to 50 MB as received, 100 MB after decompression, and 10 requests per second per API key. Gzip-compressed request bodies are supported.
- Parameters:
tiVendor- Vendor identifier for the feed. The value must not exceed 10 characters. Datadog normalizes the accepted value to lowercase, converts non-alphanumeric characters to underscores, and trims leading and trailing underscores. (required)body- A STIX 2.1 bundle containing indicator objects. The request body must not exceed 50 MB as received or 100 MB after decompression. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<STIXIngestResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 413 The request body exceeds 50 MB as received or 100 MB after decompression. - 429 Too many requests - 502 The STIX ingestion service returned an error while processing the request. - 503 The STIX ingestion service is temporarily unavailable. -
-
addSTIXThreatIntelWithHttpInfoAsync
public CompletableFuture<ApiResponse<STIXIngestResponse>> addSTIXThreatIntelWithHttpInfoAsync(String tiVendor, STIXBundleRequest body, ThreatIntelligenceApi.AddSTIXThreatIntelOptionalParameters parameters) Ingest STIX threat intelligence.- Parameters:
tiVendor- Vendor identifier for the feed. The value must not exceed 10 characters. Datadog normalizes the accepted value to lowercase, converts non-alphanumeric characters to underscores, and trims leading and trailing underscores. (required)body- A STIX 2.1 bundle containing indicator objects. The request body must not exceed 50 MB as received or 100 MB after decompression. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<STIXIngestResponse>>
-