All error codes

host_not_supported

HTTP 422 This server type does not let you choose a host

What happened

This server type does not let you choose the host, or does not name its hosts at all. Choosing a host is a property of the type, not of your project: on most types the platform decides where a server goes. The same code answers the host list of such a type.

What to do

Create the server without the host field - the platform places it. To see whether a type names its hosts, read GET /v1/server-types/{id}/hosts: it answers with the hosts and host_selection when the type has them, and with this code when it does not.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/host_not_supported",
    "title": "This server type does not let you choose a host",
    "status": 422,
    "code": "host_not_supported",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.