Skip to Content
CosmicAC Logo
API referenceApp node API

Resource routes

Compute resources available to teams.

/auth/list-things

GET
/auth/list-things

Requires team capability jobs.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

filter?string
offset?integer
limit?integer
overwrite_cache?boolean
fields?string

Header Parameters

x-team-id?string

Team to act on. Required only when the caller belongs to more than one team.

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/list-things' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/auth/list-racks

GET
/auth/list-racks

Requires team capability jobs.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

type?string
overwrite_cache?boolean

Header Parameters

x-team-id?string

Team to act on. Required only when the caller belongs to more than one team.

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/list-racks' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/auth/tail-log

GET
/auth/tail-log

Requires team capability jobs.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

key*string
type?string
tag?string
start?integer
end?integer
offset?integer
limit?integer
aggrFields?string
aggrTimes?string

Header Parameters

x-team-id?string

Team to act on. Required only when the caller belongs to more than one team.

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/tail-log?key=string' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/auth/servers

GET
/auth/servers

Requires team capability jobs.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

offset?integer
Range0 <= value
limit?integer
Range1 <= value
overwrite_cache?boolean

Header Parameters

x-team-id?string

Team to act on. Required only when the caller belongs to more than one team.

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/servers' \  -H 'ttr-token: <session-token>'
Example Response200
Empty