Reserve
Documentation for Reserve
Read time 1 minuteLast updated 2 months ago
Reserve a game server specified by
<serverid><machineid>https://api.multiplay.co.uk/cfp/v1/machine/<machineid>/reserve_server
| METHOD | CONTENT TYPE |
| GET | application/x-www-form-urlencoded |
Request parameters
| VARIABLE | DESCRIPTION | OPTIONAL |
| machineid | The | No |
| serverid | The | No |
Response fields
Field | Type | Description | Optional |
|---|---|---|---|
| profileid | integer | ID of the profile used by this server | No |
| uuid | string | ID of the allocation | No |
| regions | string | ID of regions this game server is in | No |
| created | string | Time at which the reservation was created | No |
| requested | string | Time at which the reservation was requested | No |
| fulfilled | string | Time at which the reservation was fulfilled | No |
| serverid | integer | ID of the server for this reservation | No |
| fleetid | string | ID of the fleet this server is in | No |
| regionid | string | ID of the region this server is in | No |
| machineid | integer | ID of the machine this server is on | No |
| ip | string | IP (version 4) address of this game server | No |
| ipv6 | string | IP (version 6) address of this game server (if supported by your fleet) | Yes |
| game_port | integer | Network port for this game server | No |
Example request
curl --location --request GET 'https://api.multiplay.co.uk/cfp/v1/machine/<machineid>/reserve_server?serverid=<serverid>' \ --header 'Authorization: Basic YOUR_AUTH_CREDENTIALS'\ --header 'Content-Type: application/x-www-form-urlencoded'
Example response
{ "success": <status>, "messages": [], "allocation": { "profileid": <profileid>, "uuid": <uuid>, "regions": <regions>, "created": <created>, "requested": <requested>, "fulfilled": <fufilled>, "serverid": <serverid>, "fleetid": <fleetid>, "regionid": <regionid>, "machineid": <machineid>, "ip": <ip>, "game_port": <port> } }