Skip to content
Snippets Groups Projects
Commit d1ed951a authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Update Ponos endpoints

parent 522e5dfc
No related branches found
No related tags found
No related merge requests found
Pipeline #28183 passed
components:
securitySchemes:
agentAuth:
scheme: Agent
type: http
sessionAuth:
in: cookie
name: arkindex.auth
......@@ -6036,6 +6039,7 @@ paths:
- users
/ponos/v1/agent/:
post:
description: Register a Ponos agent
operationId: CreateAgent
parameters: []
requestBody:
......@@ -6050,6 +6054,7 @@ paths:
gpu_count:
type: integer
gpu_names:
nullable: true
type: string
hostname:
type: string
......@@ -6060,7 +6065,6 @@ paths:
- hostname
- cpu_cores
- cpu_frequency
- gpu_names
- gpu_count
x-name: body
responses:
......@@ -6076,6 +6080,7 @@ paths:
gpu_count:
type: integer
gpu_names:
nullable: true
type: string
hostname:
type: string
......@@ -6089,10 +6094,13 @@ paths:
- hostname
- cpu_cores
- cpu_frequency
- gpu_names
- gpu_count
security: []
tags:
- ponos
/ponos/v1/agent/actions/:
get:
description: Retrieve any actions the current agent should perform
operationId: RetrieveAgentActions
parameters: []
responses:
......@@ -6116,6 +6124,10 @@ paths:
type: array
required:
- actions
security:
- agentAuth: []
tags:
- ponos
/ponos/v1/task/{id}/:
get:
description: Retrieve a Ponos task status
......@@ -6143,9 +6155,11 @@ paths:
type: string
logs:
type: string
parent:
parents:
items:
type: string
readOnly: true
type: string
type: array
run:
readOnly: true
type: integer
......@@ -6213,9 +6227,11 @@ paths:
type: string
logs:
type: string
parent:
parents:
items:
type: string
readOnly: true
type: string
type: array
run:
readOnly: true
type: integer
......@@ -6237,6 +6253,10 @@ paths:
- state
- logs
- full_log
security:
- agentAuth: []
tags:
- ponos
put:
operationId: UpdateTask
parameters:
......@@ -6284,9 +6304,11 @@ paths:
type: string
logs:
type: string
parent:
parents:
items:
type: string
readOnly: true
type: string
type: array
run:
readOnly: true
type: integer
......@@ -6308,6 +6330,10 @@ paths:
- state
- logs
- full_log
security:
- agentAuth: []
tags:
- ponos
/ponos/v1/task/{id}/artifacts/:
get:
operationId: ListTaskArtifacts
......@@ -6334,9 +6360,13 @@ paths:
required:
- task_id
- s3_url
security:
- agentAuth: []
tags:
- ponos
/ponos/v1/task/{id}/definition/:
get:
operationId: RetrieveTask
operationId: RetrieveTaskDefinition
parameters:
- description: A UUID string identifying this task.
in: path
......@@ -6372,11 +6402,8 @@ paths:
- image
- command
- env
/ponos/v1/task/{id}/log/:
get:
description: Retrieve the full task log as plain text
operationId: RetrieveTaskLog
security: []
security:
- agentAuth: []
tags:
- ponos
/ponos/v1/workflow/{id}/:
......@@ -6419,9 +6446,11 @@ paths:
id:
readOnly: true
type: string
parent:
parents:
items:
type: string
readOnly: true
type: string
type: array
run:
readOnly: true
type: integer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment