Deploy a game server
edgegap_deployStart a dedicated game server for a multiplayer match from an application version, placed near specified players. Returns a request_id; follow with edgegap_wait_for_deployment to get the connection address.
Instructions
Start one authoritative dedicated game server from an application version, placed near the players you specify. This is the recommended way to host a multiplayer match: the server owns the game state, so no player hosts it. Returns immediately with a request_id; the server is still starting and has no connection details yet. Follow this call with edgegap_wait_for_deployment to get the address players connect to. Always stop deployments you started for testing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables for this deployment only. | |
| tags | No | Tags for filtering later, e.g. ["agent-test"]. Recommended. | |
| users | Yes | Where the players are. Exactly one of these two is required. | |
| version | Yes | Version name within the application. | |
| cpu_units | No | Override the version CPU. | |
| memory_mb | No | Override the version memory. | |
| application | Yes | Application name. |