Create a new agent
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
application/json
Request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/agent/create" \ -H "Content-Type: application/json" \ -d '{ "host": "string", "name": "string", "port": 1, "type": "docker" }'{ "ca": { "cert": "string", "key": "string" }, "client": { "cert": "string", "key": "string" }, "compose": "string"}