GetAssetsInLibrary
This method can be used for the following: Get assets in the library (must have Assets Module enabled in your tenant configuration!);
Parameters
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
Headers
Query
name (string) (optional)
Name of the asset.
Example:
type (string) (optional)
Type of asset. Must be one of the following: Web App, API, Mobile, Cloud, Infrastructure, Network, Wifi, Hardware, Other
Example:
external_id (string) (optional)
External id for the asset. For example id associated with the assest in Configuration Management Database.
Example:
skip (integer) (optional)
Number of records to skip. Default is 0 (do not skip any records).
Example:
limit (integer) (optional)
Number of records to limit to. Default limit is 500. Max limit is 500.
Example:
q (string) (optional)
Provides options to query a custom selection of assets.
Please visit the following link for more details on how to use this filter: https://support.attackforge.com/attackforge-enterprise/modules/self-service-restful-api/advanced-query-filter
Example
The following example is a cURL request to get all assets from the library of type 'Web App'.
Request
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
Response
Response contains an asset library count and array of asset library objects.
Last updated