Skip to main content
GET
/
resources
/
{name}
Gets a resource
curl --request GET \
  --url https://use.hoop.dev/api/resources/{name}
{
  "agent_id": "1837453e-01fc-46f3-9e4c-dcf22d395393",
  "created_at": "2024-07-25T15:56:35.317601Z",
  "env_vars": {},
  "id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
  "name": "my-resource",
  "type": "mysql",
  "updated_at": "2024-07-25T15:56:35.317601Z"
}

Path Parameters

name
string
required

The resource name

Response

OK

agent_id
string<uuid>
required

The agent associated with this resource

Example:

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

created_at
string

The time the resource was created

Example:

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

env_vars
object

The resource environment variables

id
string<uuid>

The resource ID

Example:

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

name
string

The resource name

Example:

"my-resource"

type
string

The resource type

Example:

"mysql"

updated_at
string

The time the resource was updated

Example:

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