GET
/
resources
curl --request GET \
  --url https://api.leen.dev/v2/resources \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-CONNECTION-ID: <api-key>'
{
  "items": [
    {
      "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>"
      }
    }
  ],
  "next_cursor": "<string>",
  "previous_cursor": "<string>"
}

Authorizations

X-CONNECTION-ID
string
header
required
X-API-KEY
string
header
required

Query Parameters

updatedSince
string | null

Datetime filter, only return items updated since this datetime. Example format: 2021-01-01T00:00:00+00:00

cursor
string | null
limit
integer
default:100

Limit size (page size)

Required range: x >= 0
name
string | null

Filter resources by name (comma-separated values supported)

vendor
string | null

Filter resources by vendor (comma-separated values supported)

state
string | null

Filter resources by state (comma-separated values supported)

Example:

"ACTIVE,DELETED,IGNORED"

type
string | null

Filter resources by type (comma-separated values supported)

Example:

"branch,host,container,dependency,image,unknown"

Response

200
application/json
Successful Response
items
object[]
required

List of items returned in the response

Response model for returning resource details via an API endpoint.

next_cursor
string | null

Skip token to continue from the last item in the previous page

previous_cursor
string | null

Skip token to continue from the first item in the previous page