AttackForge Enterprise

GetAssetInLibrary

This method can be used for the following: Get an asset 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

GET /api/ss/library/asset HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close

Query

id (string)

Id of the asset.

Example:

{
"id": "..."
}

Example

The following example is a cURL request to get an asset from the library.

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.

curl -X GET 'https://demo.attackforge.com/api/ss/library/asset' -H 'Host: localhost:3000' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"id": "6035baa5fa29850a2a100ea9"
}'

Response

Response contains an asset library object.

{
"asset": {
"id": "...",
"created": "...",
"modified": "...",
"name": "...",
"type": "...",
"external_id": "...",
"details": "...",
"groups": "[{"name": "...", "id": "..."}]",
"projects": "[{"name": "...", "id": "..."}]",
"created_by": "..."
}
}