Agent
This endpoint is used to create, update, search or delete job agents for a Terrakube organization.
Entity fields:
Path
Type
Description
data.type
string
Should be "agent"
data.attributes.name
string
Agent pool name
data.attributes.description
string
agent pool description
data.attributes.url
string
Example:
POST {{terrakubeApi}}/api/v1/organization/{{organizationId}}/agent
{
"data": {
"type": "agent",
"attributes": {
"name": "sample-agent",
"url": "http://localhost:8090",
"description": "This is a sample agent"
}
}
}
Workspace Operations:
Update workspace to use specific agent.
PATCH {{terrakubeApi}}/api/v1/organization/{{organizationId}}/workspace/{{workspaceId}}/relationships/agent
{
"data": {
"type": "agent",
"id": "f0ddb2e5-c390-4451-bd7f-fe84e74010de"
}
}
Remove agent from workspace
PATCH {{terrakubeApi}}/api/v1/organization/{{organizationId}}/workspace/{{workspaceId}}/relationships/agent
{
"data": null
}
Last updated
Was this helpful?