Skip to content

Update services configuration for a cluster.

Request

Requires nodes::configure::services permissions.

Security
JWTAuthorizer
Path
clusterFQDNstringrequired

Cluster FQDN

Bodyapplication/jsonrequired

Config body

servicesArray of objects
Example:
[ { "description": "nginx", "enabled": true, "host": "127.0.0.1", "id": "1e1d36b2-63b6-46bb-8334-a80a828afb5f", "name": "nginx", "port": 80, "protocol": "tcp" } ]
curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/cluster/{clusterFQDN}/config/services' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "services": [
      {
        "description": "nginx",
        "enabled": true,
        "host": "127.0.0.1",
        "id": "1e1d36b2-63b6-46bb-8334-a80a828afb5f",
        "name": "nginx",
        "port": 80,
        "protocol": "tcp"
      }
    ]
  }'

Responses

OK

Response
No content