create
Description
Create a new dynamic server.
Code Examples
Request Parameters
game_id
required path parameterenvironment_id
required path parameterRequest Body
datacenterstringtagsany valueruntimeobjectruntime.buildstringruntime.argumentsarray of stringsruntime.environmentunion of empty object and string
networkobjectnetwork.modestringnetwork.portsunion of empty object and objectnetwork.ports.protocolstringnetwork.ports.internal_portnumbernetwork.ports.routingobjectnetwork.ports.routing.game_guardempty objectnetwork.ports.routing.hostempty object
resourcesobjectresources.cpunumberThe 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.memorynumberThe amount of memory in megabytes
lifecycleobjectlifecycle.kill_timeoutnumberThe 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
serverobjectThe server that was created
server.idstringserver.environmentstringserver.datacenterstringserver.tagsany valueserver.runtimeobjectserver.runtime.buildstringserver.runtime.argumentsarray of stringsserver.runtime.environmentunion of empty object and string
server.networkobjectserver.network.modestringserver.network.portsunion of empty object and objectserver.network.ports.protocolstringserver.network.ports.internal_portnumberserver.network.ports.public_hostnamestringserver.network.ports.public_portnumberserver.network.ports.routingobjectserver.network.ports.routing.game_guardempty objectserver.network.ports.routing.hostempty object
server.resourcesobjectserver.resources.cpunumberThe 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.memorynumberThe amount of memory in megabytes
server.lifecycleobjectserver.lifecycle.kill_timeoutnumberThe 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_atnumberserver.started_atnumberserver.destroyed_atnumber