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>"
  }
}

Authorizations

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

Path Parameters

resource_id
string
required

Response

200
application/json
Successful Response

Response model for returning resource details via an API endpoint.

id
string
required

Leen's UUID for the resource

name
string
required

Resource name

type
enum<string>
required

Type of the resource

Available options:
BRANCH,
HOST,
CONTAINER,
DEPENDENCY,
IMAGE,
UNKNOWN
state
enum<string>
required

State of the resource

Available options:
ACTIVE,
IGNORED,
DELETED,
INACTIVE
vendor
string
required

The source vendor of the resource

vendor_attributes
object
required

Vendor-specific attributes like IDs

tags
object[] | null

List of arbitrary tags/metadata for the resource

groups
object[] | null

Groups associated with the resource

ORM model representing a groups in a resource.

data
object | null

Additional data or properties about the resource

cloud_metadata
object | null

Cloud metadata for the resource

url
string | null

URL associated with the resource

first_seen
string | null

Timestamp when the resource was first seen

last_seen
string | null

Timestamp when the resource was last seen