Aquila
Game server SDK

Read the server's current state

GET
/v1/gameserver

Authorization

token
headerAuthorizationBearer <token>

The contents of the file named by AQUILA_SDK_TOKEN_FILE.

Response Body

The server

application/json
  1. response
name*string
state*string

Starting, Ready, Allocated, Reserved, Shutdown or Unhealthy in normal operation. Other values can appear while the platform starts or replaces the server.

address?string

The address players connect to.

ports?array<>
labels?
annotations?

Only the annotations under sdk.aquilahosting.com/, which includes the match annotation the matchmaker writes.

players?
reservedUntil?string
Formatdate-time
Example Request
curl -X GET 'http://gs-operator-sdk.gs-operator-system.svc:9450/v1/gameserver'
Example Response
{  "name": "string",  "state": "string",  "address": "string",  "ports": [    {      "name": "string",      "port": 0,      "protocol": "TCP"    }  ],  "labels": {    "property1": "string",    "property2": "string"  },  "annotations": {    "property1": "string",    "property2": "string"  },  "players": {    "count": 0,    "capacity": 0  },  "reservedUntil": "2019-08-24T14:15:22Z"}