Create Fleet Server host

POST /api/fleet/fleet_server_hosts

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/fleet_server_hosts

Refer to Spaces for more information.

application/json

Body

  • host_urls array[string] Required
  • id string
  • is_default boolean
  • is_internal boolean
  • name string Required
  • proxy_id string

    The ID of the proxy to use for this fleet server host. See the proxies API for more information.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • item object
      Hide item attributes Show item attributes object
      • host_urls array[string] Required
      • id string Required
      • is_default boolean Required
      • is_internal boolean
      • is_preconfigured boolean Required
      • name string
      • proxy_id string
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
POST /api/fleet/fleet_server_hosts
curl \
 --request POST 'http://localhost:5601/api/fleet/fleet_server_hosts' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"host_urls":["string"],"id":"string","is_default":true,"is_internal":true,"name":"string","proxy_id":"string"}'