Create a new agent
POST
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
application/json- body
container_runtime?stringDefault
"docker"Value in
"docker""podman"host*stringname*stringnightly?booleanport*integerRange
1 <= value <= 65535type*stringValue in
"docker""system"OK
application/json- response
ca?client?compose?stringcurl -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"}