Skip to main content
GET
Get Resource by ID

Authorizations

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

Path Parameters

resource_id
string<uuid>
required

Query Parameters

use_pool
boolean
default:true

Response

Successful Response

Response model for returning resource details via an API endpoint.

id
string<uuid>
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,
REPOSITORY,
UNKNOWN
state
enum<string>
required

State of the resource

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

The source vendor of the resource

vendor_attributes
ResourceVendorAttributes · object
required

Vendor-specific attributes like IDs

tags
ResourceTag · object[] | null

List of arbitrary tags/metadata for the resource

groups
ResourceGroup · object[] | null

Groups associated with the resource

data
ResourceContainer · object

ORM model representing a container in a resource.

cloud_metadata
ResourceCloudMetadata · object | null

Cloud metadata for the resource

url
string | null

URL associated with the resource

first_seen
string<date-time> | null

Timestamp when the resource was first seen

last_seen
string<date-time> | null

Timestamp when the resource was last seen