Skip to main content
POST
/
v1
/
edge
/
register-cloud
Self-register a cloud edge replica (idempotent by hostname)
curl --request POST \
  --url http://0.0.0.0:3000/v1/edge/register-cloud \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hostname": "edge-cloud-1",
  "name": "edge-cloud-1",
  "capabilities": {
    "region": "us-east-1"
  }
}
'
{
  "edge": {},
  "mqtt": {
    "username": "<string>",
    "password": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
hostname
string
required

Identificador único da réplica (ex: hostname do container)

name
string

Nome amigável; default = hostname

capabilities
object

Capacidades da réplica (cpu, mem, etc)

Response

Edge registered; same response on subsequent calls

edge
object
mqtt
object