Aquila
Fleets

CreateFleet

POST
/fleets.v1.FleetService/CreateFleet

CreateFleet starts a fleet in a zone. Returns FAILED_PRECONDITION while the organization is not approved.

Authorization

apiKey
headerAuthorizationBearer <token>

An organization API key, created in the console.

Request Body

application/json
  1. body
organizationId?organization_id
Formatuuid
zone?zone

The zone to run in, such as eu.

Length1 <= length <= 32
name?name

Lowercase letters, digits and dashes. Server names are derived from it.

Match^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Length1 <= length <= 40
template*

FleetTemplate is what every server of a fleet runs.

replicas?replicas

Servers to run. An autoscaler moves the count on its own.

Formatint32
Range0 <= value <= 1000
autoscaler?||||null

Response Body

Success

application/json
  1. response
fleet?
Example Request
curl -X POST 'https://api.aquilahosting.com/fleets.v1.FleetService/CreateFleet' \  -H 'Content-Type: application/json' \  -d '{  "template": {}}'
Example Response
{  "fleet": {    "fleetId": "string",    "organizationId": "string",    "name": "string",    "zone": "string",    "template": {      "image": "string",      "command": [        "string"      ],      "args": [        "string"      ],      "env": {        "property1": "string",        "property2": "string"      },      "ports": [        {          "name": "string",          "containerPort": 1,          "protocol": "PORT_PROTOCOL_UNSPECIFIED"        }      ],      "cpuMillicores": "string",      "memoryMib": "string",      "labels": {        "property1": "string",        "property2": "string"      },      "health": {        "disabled": true,        "periodSeconds": 0,        "failureThreshold": 0,        "initialDelaySeconds": 0      },      "withoutSdk": true,      "readiness": {        "initialDelaySeconds": 0,        "periodSeconds": 0,        "failureThreshold": 0,        "exec": {          "command": [            "string"          ]        }      },      "liveness": {        "initialDelaySeconds": 0,        "periodSeconds": 0,        "failureThreshold": 0,        "exec": {          "command": [            "string"          ]        }      },      "metrics": {        "port": 1,        "path": "string"      },      "players": {        "count": "string",        "capacity": "string"      },      "sdkProtocol": "SDK_PROTOCOL_UNSPECIFIED"    },    "replicas": 0,    "autoscaler": {      "minReplicas": 0,      "maxReplicas": 1,      "bufferCount": 1    },    "createdAt": "2023-01-15T01:30:15.01Z",    "updatedAt": "2023-01-15T01:30:15.01Z",    "status": {      "replicas": 0,      "readyReplicas": 0,      "allocatedReplicas": 0,      "reservedReplicas": 0,      "ready": true,      "quotaExceeded": true,      "degraded": true,      "scalingLimited": true,      "message": "string"    },    "charts": [      "string"    ],    "secrets": [      {        "name": "string",        "updatedAt": "2023-01-15T01:30:15.01Z"      }    ]  }}