GoDoxy

Create a new agent

POST
/agent/create

Create a new agent and return the docker compose file, encrypted CA and client PEMs The returned PEMs are encrypted with a random key and will be used for verification when adding a new agent

Request Body

Request

application/json
  1. body
container_runtime?string
Default"docker"
Value in"docker""podman"
host*string
name*string
nightly?boolean
port*integer
Range1 <= value <= 65535
type*string
Value in"docker""system"

Response Body

OK

application/json
  1. response
ca?
client?
compose?string
Example Request
curl -X POST 'https://example.com/api/v1/agent/create' \  -H 'Content-Type: application/json' \  -d '{  "host": "string",  "name": "string",  "port": 1,  "type": "docker"}'
Example Response
{  "ca": {    "cert": "string",    "key": "string"  },  "client": {    "cert": "string",    "key": "string"  },  "compose": "string"}