Fleets
CreateFleet
POST
CreateFleet starts a fleet in a zone. Returns FAILED_PRECONDITION while the organization is not approved.
apiKeyheader
AuthorizationBearer <token>An organization API key, created in the console.
application/json- body
organizationId?organization_idFormat
uuidzone?zoneThe zone to run in, such as eu.
Length
1 <= length <= 32name?nameLowercase letters, digits and dashes. Server names are derived from it.
Match
^[a-z0-9]([-a-z0-9]*[a-z0-9])?$Length
1 <= length <= 40template*FleetTemplate is what every server of a fleet runs.
replicas?replicasServers to run. An autoscaler moves the count on its own.
Format
int32Range
0 <= value <= 1000autoscaler?||||nullSuccess
application/json- response
fleet?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" } ] }}