Skip to main content

create serverGroup

POST 

/projects/:projectId/zones/:zoneName/servergroups

Create a Server Group.

Request

Path Parameters

    projectId stringrequired

    Project Identifier

    zoneName stringrequired

    Zone name

Header Parameters

    X-API-Key string

    Your SIU token if you use this API through Orange Developer.

    Authorization string

    Bearer access token authentication if you use this API through Orange Developer or Orange Developer Inside.

    X-Requester-Id string

    Your SIU Id if you use this API through Orange Developer Inside.

Body

required

Attributes to create a Server Group.

    name stringrequired

    Possible values: <= 40 characters, Value must match regular expression [A-Za-z0-9-]

    Unique resource name. This attribute can not be updated.

    description string

    Resource description

    tags

    object

    Tags associated with the resource

    property name* string
    policy ServerGroupPolicyEnum (string)required

    Possible values: [affinity, anti-affinity, soft-anti-affinity, soft-affinity]

    Affinity policy of the server group. It defines how the compute is selected.

    • affinity: places instances on the same host.
    • anti-affinity: place instances on separate hosts.
    • soft-anti-affinity: place instances on separate hosts if possible.
    • soft-affinity: place instances on the same host if possible.

Responses

Created

Response Headers

  • X-Job-Href

    string

    Href of the asynchronous job that will process the request, in order to track its status.

  • X-Retry-After

    integer

    The number of seconds to wait before checking the status of the job.

Schema

    id uuidrequired

    Resource identifier.

    hRef urirequired

    Hypertext reference of the resource.

Loading...