Payload Local API (0.0.1)
Download OpenAPI specification:Download
The Payload Local API available in your running payloads. It provides an interface between your game server and the IMS zeuz orchestration service.
The Payload Local API is starting up at the same time as your game server, and may not be initially available. Use a retry mechanism to ensure the request is successful.
The Payload local API is using the OpenAPI standard, it is advised to use an OpenAPI client generator for the language your game server uses. See a list of OpenAPI client generators.
The Payload Local API address can be obtained using an environment variable: http://${ORCHESTRATION_PAYLOAD_API}
.
As the Payload Local API is only accessible from within the payload, it does not require authentication.
Get Payload details
Retrieve details of the current payload, including metadata and status
Responses
Response samples
- 200
- 500
{- "result": {
- "id": "string",
- "cluster_id": "string",
- "allocation_id": "string",
- "status": {
- "state": "Unknown",
- "details": "string",
- "address": "string",
- "ports": [
- {
- "name": "string",
- "port": 0
}
], - "last_reserved": "2019-08-24T14:15:22Z",
- "started": "2019-08-24T14:15:22Z"
}, - "created": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Add Payload Annotation
Add an Annotation to the current Payload
Request Body schema: application/json
key required | string A valid annotation key:
|
value required | string Annotation value. Can have arbitrary data. Can be used to e.g. pass custom data to a matchmaker. |
Responses
Request samples
- Payload
{- "key": "string",
- "value": "string"
}
Response samples
- 500
{- "message": "string",
- "request_id": "string"
}
Add Payload Label
Add a Label to the current Payload
Request Body schema: application/json
key required | string A valid label key:
|
value required | string A valid label value:
|
Responses
Request samples
- Payload
{- "key": "string",
- "value": "string"
}
Response samples
- 500
{- "message": "string",
- "request_id": "string"
}