create
Description
Create a new dynamic server.
Code Examples
Request Parameters
game_id
required path parameter
environment_id
required path parameter
Request Body
datacenter
stringtags
any valueruntime
objectruntime.build
stringruntime.arguments
array of stringsruntime.environment
union of empty object and string
network
objectnetwork.mode
stringnetwork.ports
union of empty object and objectnetwork.ports.protocol
stringnetwork.ports.internal_port
numbernetwork.ports.routing
objectnetwork.ports.routing.game_guard
empty objectnetwork.ports.routing.host
empty object
resources
objectresources.cpu
numberThe number of CPU cores in millicores, or 1/1000 of a core. For example, 1/8 of a core would be 125 millicores, and 1 core would be 1000 millicores.
resources.memory
numberThe amount of memory in megabytes
lifecycle
objectlifecycle.kill_timeout
numberThe duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed.
Response Body
server
objectThe server that was created
server.id
stringserver.environment
stringserver.datacenter
stringserver.tags
any valueserver.runtime
objectserver.runtime.build
stringserver.runtime.arguments
array of stringsserver.runtime.environment
union of empty object and string
server.network
objectserver.network.mode
stringserver.network.ports
union of empty object and objectserver.network.ports.protocol
stringserver.network.ports.internal_port
numberserver.network.ports.public_hostname
stringserver.network.ports.public_port
numberserver.network.ports.routing
objectserver.network.ports.routing.game_guard
empty objectserver.network.ports.routing.host
empty object
server.resources
objectserver.resources.cpu
numberThe number of CPU cores in millicores, or 1/1000 of a core. For example, 1/8 of a core would be 125 millicores, and 1 core would be 1000 millicores.
server.resources.memory
numberThe amount of memory in megabytes
server.lifecycle
objectserver.lifecycle.kill_timeout
numberThe duration to wait for in milliseconds before killing the server. This should be set to a safe default, and can be overridden during a DELETE request if needed.
server.created_at
numberserver.started_at
numberserver.destroyed_at
number