Allocation
Allocate
POST
Allocate returns RESOURCE_EXHAUSTED when the fleet has no Ready server matching the selectors. It never waits for one. NOT_FOUND means the org has no fleet of that name in this zone.
apiKeyheader
AuthorizationBearer <token>An organization API key with the allocate scope.
application/json- body
fleet?fleetThe name of the fleet to allocate from.
Length
1 <= length <= 63selectors?Only servers whose labels match all of these. SDK-set labels carry the sdk.aquilahosting.com/ prefix.
Properties
properties <= 16labels?Labels set on the allocated server, under sdk.aquilahosting.com/.
Properties
properties <= 16annotations?Annotations set on the allocated server, under sdk.aquilahosting.com/. The game reads them through the SDK.
Properties
properties <= 16Success
application/json- response
gameServer?game_serverThe allocated server's name.
address?addressPlayers connect to this address on the ports below.
ports?array<>zone?zoneThe zone the server runs in.
curl -X POST 'https://allocate-eu.aquilahosting.com/allocation.v1.AllocationService/Allocate' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "gameServer": "string", "address": "string", "ports": [ { "name": "string", "port": 0, "protocol": "string" } ], "zone": "string"}