Download OpenAPI specification:Download
As of December 2022, Threat Stack is now F5 Distributed Cloud App Infrastructure Protection (AIP). For more information, see Introduction to AIP.
The Distributed Cloud AIP Rest API provides a way to connect to a Distributed Cloud AIP organization and extract key information around security concerns in your environment.
View the API Changelog here.
Hawk is a protocol that implements hash message authentication code (HMAC) signing based on the API key provided. Hawk was designed to allow two parties to verify the sender of a message by a signed header in the HTTP request. If there is a body to the request, such as sending data via the API, you can verify the integrity of the body as well.
To get started with Hawk:
Before you can use the Distributed Cloud AIP API v2, you must authenticate using the three environment variables:
You can find the API key and the IDs on the Application Keys tab within the Settings page.
Distributed Cloud AIP has implemented supported HAWK starter clients for Java, NodeJs, and Python for you to use!
You can clone them from the Distributed Cloud AIP GitHub repository.
With your credentials from step 1, you can make a test request to our API that confirms your successful Hawk configuration.
After you successfully authenticate, you can start using the available API endpoints!
For more details on our Hawk implementations, review one of the following frameworks:
Some of the API endpoints return data that spans across a wide time range. To help refine the responses, you can specify the time ranges by modifying the
until parameters. All date and time parameters follow ISO-8601 standards.
The API uses UTC timestamps:
|Date, Time, Date and Time||Format||Example|
|Combined date and time (hours)||yyyy-mm-ddThh||2022-09-05T15|
|Combined date and time (minutes)||yyyy-mm-ddThh:mm||2022-09-05T15:53|
|Combined date and time (seconds)||yyyy-mm-ddThh:mm:ss||2022-09-05T15:53:00|
To return resources created after a specific date, use the
To return resources created before a specific date, use the
To return resources created within a window of time bounded by specific dates, use the
until parameters together:
The Alert, Agent, and Vulnerabilities endpoints paginate and return up to
100 records per query. Use the
token value from the response to query for the next page. When the
token value is
null in the response, you have reached the end of the results list.
The token value is located at the bottom of the response body:
], "token": "NTk4OGM5MWRmNDUyYWUzZjIzYTk2NWQzLDIwMTctMDgtMDdUMjA6MTA6==" }
token as an addendum to the query parameter to access the next page:
Each page of results must display before fetching the next page of results.
The rate limit for an organization is 200 requests per minute. Specifically, this describes the
organization-Id rate limit. This results in an
HTTP 429 error message. You can send the next request after 1 minute.
The Distributed Cloud AIP API includes HTTP headers on every API response. These headers help you determine how much of your organization's rate limit budget has been used.
If the number of requests from an IP address exceeds 1,000 requests per minute, that results in an
HTTP 429 error message and a 15 minute lock out for that IP address.