Allocate a new game session in a specific region. Each session is to be identified by a unique identifier that is provided by the caller. It is recommended to use a UUID. In case a warm pool is configured for the specified region and image, an already spun up session will be taken from the pool instead and the given set of program arguments, environment variables and additional labels in the HTTP request will be ignored. Sessions managed by a warm pool will always use the same static set of program arguments and environment variables. The warm pool will then as soon as possible try to replenish itself. If the warm pool is exhausted, a cold allocation will occur as normal.
Request
- Base URL: https://api.sandbox-gameye.gameye.net
- URL: https://api.sandbox-gameye.gameye.net/session
- Auth: HTTP bearer
Request body
Example request
{
"id": "f7965a22-e327-4541-a30e-8262890d3a29",
"location": "europe",
"image": "my-very-special-game",
"env": {
"my-secret": "<my_secret_value"
},
"args": [
"--max-players=8"
],
"labels": {
"my-example-tag": "1",
"another-example-tag": "3"
},
"restart": false
}Response
A session is running on a machine in the provided region.
Example response
{
"id": "c5c7c507-f5de-443e-b772-af4b444cfc21",
"host": "a.b.c.d",
"ports": [
{
"type": "tcp",
"container": 80,
"host": 49159
},
{
"type": "tcp",
"container": 80,
"host": 49159
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.