Game server SDK
Read the server's current state
GET
tokenheader
AuthorizationBearer <token>The contents of the file named by AQUILA_SDK_TOKEN_FILE.
The server
application/json- response
name*stringstate*stringStarting, Ready, Allocated, Reserved, Shutdown or Unhealthy in normal operation. Other values can appear while the platform starts or replaces the server.
address?stringThe 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?stringFormat
date-timecurl -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"}