Resources
Get Resource by ID
API Documentation (V2)
Vulnerability Findings
Resources
Get Resource by ID
Return a resource by its ID (Leen’s UUID)
GET
/
resources
/
{resource_id}
curl --request GET \
--url https://api.leen.dev/v2/resources/{resource_id} \
--header 'X-API-KEY: <api-key>' \
--header 'X-CONNECTION-ID: <api-key>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tags": [
{
"key": "<string>",
"value": "<string>",
"source": "wiz_vms"
}
],
"type": "BRANCH",
"state": "ACTIVE",
"groups": [
{
"name": "<string>",
"uid": "<string>"
}
],
"data": {
"hostnames": [
"<string>"
],
"image": "<string>"
},
"cloud_metadata": {
"account_id": "<string>",
"account_name": "<string>",
"cloud_provider": "<string>",
"image_id": "<string>",
"instance_id": "<string>",
"instance_type": "<string>",
"region": "<string>",
"subnet_id": "<string>",
"vpc_id": "<string>"
},
"url": "<string>",
"vendor": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"vendor_attributes": {
"id": "<string>"
}
}
Path Parameters
Response
200
application/json
Successful Response
Response model for returning resource details via an API endpoint.
curl --request GET \
--url https://api.leen.dev/v2/resources/{resource_id} \
--header 'X-API-KEY: <api-key>' \
--header 'X-CONNECTION-ID: <api-key>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tags": [
{
"key": "<string>",
"value": "<string>",
"source": "wiz_vms"
}
],
"type": "BRANCH",
"state": "ACTIVE",
"groups": [
{
"name": "<string>",
"uid": "<string>"
}
],
"data": {
"hostnames": [
"<string>"
],
"image": "<string>"
},
"cloud_metadata": {
"account_id": "<string>",
"account_name": "<string>",
"cloud_provider": "<string>",
"image_id": "<string>",
"instance_id": "<string>",
"instance_type": "<string>",
"region": "<string>",
"subnet_id": "<string>",
"vpc_id": "<string>"
},
"url": "<string>",
"vendor": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"vendor_attributes": {
"id": "<string>"
}
}