Skip to main content
POST
Creates a resource

Body

*/*

The request body resource

env_vars
object
required

The resource environment variables

name
string
required

The resource name

Example:

"my-resource"

subtype
string
required

The resource subtype

Example:

"mysql"

type
string
required

The resource type

Example:

"database"

agent_id
string<uuid>

The agent associated with this resource

Example:

"1837453e-01fc-46f3-9e4c-dcf22d395393"

roles
object[]

The roles associated with this resource

Response

Created

agent_id
string<uuid>
required

The agent associated with this resource

Example:

"1837453e-01fc-46f3-9e4c-dcf22d395393"

created_at
string
read-only

The time the resource was created

Example:

"2024-07-25T15:56:35.317601Z"

env_vars
object

The resource environment variables

id
string<uuid>
read-only

The resource ID

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

name
string

The resource name

Example:

"my-resource"

subtype
string

The resource subtype

Example:

"mysql"

type
string

The resource type

Example:

"database"

updated_at
string
read-only

The time the resource was updated

Example:

"2024-07-25T15:56:35.317601Z"