games.versions.getGameVersionById
Description
Returns a game version by its version ID.
Code Examples
Request Parameters
game_id
required path parameterversion_id
required path parameterResponse Body
versionobjectA full version.
version.version_idstringversion.create_tsstringRFC3339 timestamp
version.display_namestringRepresent a resource's readable display name.
version.configobjectCloud configuration for a given version.
version.config.scriptsunion of empty object and stringversion.config.engineobjectversion.config.engine.unityempty objectversion.config.engine.unrealobjectversion.config.engine.unreal.game_modulestringName of the Unreal module that holds the game code. This is usually the value of
$.Modules[0].Namein the fileMyProject.unproject. Configures Rivet CLI behavior. Has no effect on server behavior.
version.config.engine.godotempty objectversion.config.engine.html5empty objectversion.config.engine.customempty object
version.config.cdnobjectCDN configuration for a given version.
version.config.cdn.build_commandstringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.cdn.build_outputstringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.cdn.build_envunion of empty object and stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.cdn.site_idstringversion.config.cdn.routesarray of objectsMultiple CDN version routes.
version.config.cdn.routes.globstringversion.config.cdn.routes.prioritynumberUnsigned 32 bit integer.
version.config.cdn.routes.middlewaresarray of objectsMultiple CDN version middleware.
version.config.cdn.routes.middlewares.kindobjectversion.config.cdn.routes.middlewares.kind.custom_headersobjectversion.config.cdn.routes.middlewares.kind.custom_headers.headersarray of objectsversion.config.cdn.routes.middlewares.kind.custom_headers.headers.namestringversion.config.cdn.routes.middlewares.kind.custom_headers.headers.valuestring
version.config.matchmakerobjectMatchmaker configuration for a given version.
version.config.matchmaker.game_modesunion of empty object and objectA list of game modes.
version.config.matchmaker.game_modes.regionsunion of empty object and objectversion.config.matchmaker.game_modes.regions.tierstringversion.config.matchmaker.game_modes.regions.idle_lobbiesobjectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.game_modes.regions.idle_lobbies.minnumberversion.config.matchmaker.game_modes.regions.idle_lobbies.maxnumber
version.config.matchmaker.game_modes.max_playersnumberversion.config.matchmaker.game_modes.max_players_directnumberversion.config.matchmaker.game_modes.max_players_partynumberversion.config.matchmaker.game_modes.dockerobjectA game mode runtime running through Docker.
version.config.matchmaker.game_modes.docker.dockerfilestringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.build_argsunion of empty object and stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.imagestringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.image_idstringversion.config.matchmaker.game_modes.docker.argsarray of stringsversion.config.matchmaker.game_modes.docker.envunion of empty object and stringversion.config.matchmaker.game_modes.docker.network_modestringConfigures how the container's network is isolated from the host.
bridge(default) networking isolates the container's network from the host & other containers.hostnetworking removes isolation between the container and the host. Only available in Rivet Open Source & Enterprise. Read more about bridge vs host networking here.version.config.matchmaker.game_modes.docker.portsunion of empty object and objectversion.config.matchmaker.game_modes.docker.ports.portnumberThe port number to connect to.
Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind
version.config.matchmaker.game_modes.docker.ports.port_rangeobjectRange of ports that can be connected to. If configured,
network_modemust equalhost. Port ranges may overlap between containers, it is the responsibility of the developer to ensure ports are available before using. Read more about host networking here. Only available on Rivet Open Source & Enterprise.Related
- cloud.version.matchmaker.PortProtocol
- cloud.version.matchmaker.ProxyKind
version.config.matchmaker.game_modes.docker.ports.port_range.minnumberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.port_range.maxnumberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.protocolstringSignifies the protocol of the port. Note that when proxying through GameGuard (via
ProxyKind), the port number returned by/find,/join, and/createwill not be the same as the port number configured in the config:- With HTTP, the port will always be 80. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server.
- With HTTPS, the port will always be 443. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server.
- Using TCP/UDP, the port will be a random number between 26000 and 31999. This gets automatically routed to the correct port being used by the game server.
Related - cloud.version.matchmaker.GameModeRuntimeDockerPort - cloud.version.matchmaker.ProxyKind - /docs/dynamic-servers/concepts/game-guard - matchmaker.lobbies.find
version.config.matchmaker.game_modes.docker.ports.proxystringHow this port should be proxied. Defaults to 'game-guard`.
version.config.matchmaker.game_modes.docker.ports.dev_portnumberConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.ports.dev_port_rangeobjectConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.ports.dev_port_range.minnumberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.dev_port_range.maxnumberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.dev_protocolstringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.listablebooleanversion.config.matchmaker.game_modes.taggablebooleanversion.config.matchmaker.game_modes.allow_dynamic_max_playersbooleanversion.config.matchmaker.game_modes.actionsobjectConfiguration for the connection types allowed for a game mode.
version.config.matchmaker.game_modes.actions.findobjectConfigures the requirements and authentication for the /find endpoint. If this value is not set in the config, the /find endpoint is still enabled.
version.config.matchmaker.game_modes.actions.find.enabledbooleanSets whether or not the /find endpoint is enabled.
version.config.matchmaker.game_modes.actions.find.identity_requirementany valueversion.config.matchmaker.game_modes.actions.find.verificationobjectConfiguration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the
verification_dataproperty (given by the user in the find/join/create endpoint) to the given url along with the headers provided and some information about the requested lobby. The response of this request will determine if the user can join that lobby or not.version.config.matchmaker.game_modes.actions.find.verification.urlstringversion.config.matchmaker.game_modes.actions.find.verification.headersunion of empty object and string
version.config.matchmaker.game_modes.actions.joinobjectConfigures the requirements and authentication for the /join endpoint. If this value is not set in the config, the /join endpoint is still enabled.
version.config.matchmaker.game_modes.actions.join.enabledbooleanSets whether or not the /join endpoint is enabled.
version.config.matchmaker.game_modes.actions.join.identity_requirementany valueversion.config.matchmaker.game_modes.actions.join.verificationobjectConfiguration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the
verification_dataproperty (given by the user in the find/join/create endpoint) to the given url along with the headers provided and some information about the requested lobby. The response of this request will determine if the user can join that lobby or not.version.config.matchmaker.game_modes.actions.join.verification.urlstringversion.config.matchmaker.game_modes.actions.join.verification.headersunion of empty object and string
version.config.matchmaker.game_modes.actions.createobjectConfigures the requirements and authentication for the /create endpoint. If this value is not set in the config, the /create endpoint is NOT enabled.
version.config.matchmaker.game_modes.actions.create.enabledbooleanSets whether or not the /create endpoint is enabled.
version.config.matchmaker.game_modes.actions.create.identity_requirementany valueversion.config.matchmaker.game_modes.actions.create.verificationobjectConfiguration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the
verification_dataproperty (given by the user in the find/join/create endpoint) to the given url along with the headers provided and some information about the requested lobby. The response of this request will determine if the user can join that lobby or not.version.config.matchmaker.game_modes.actions.create.verification.urlstringversion.config.matchmaker.game_modes.actions.create.verification.headersunion of empty object and string
version.config.matchmaker.game_modes.actions.create.enable_publicbooleanDefaults to false when unset.
version.config.matchmaker.game_modes.actions.create.enable_privatebooleanDefaults to true when unset.
version.config.matchmaker.game_modes.actions.create.max_lobbies_per_identityany value
version.config.matchmaker.game_modes.tierstringversion.config.matchmaker.game_modes.idle_lobbiesobjectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.game_modes.idle_lobbies.minnumberversion.config.matchmaker.game_modes.idle_lobbies.maxnumber
version.config.matchmaker.captchaobjectMatchmaker captcha configuration.
version.config.matchmaker.captcha.requests_before_reverifynumberDenotes how many requests a connection can make before it is required to reverify a captcha.
version.config.matchmaker.captcha.verification_ttlnumberDenotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds).
version.config.matchmaker.captcha.hcaptchaobjecthCpatcha configuration.
version.config.matchmaker.captcha.hcaptcha.levelany valueversion.config.matchmaker.captcha.hcaptcha.site_keystringSite key for your hCaptcha application. Must be set.
version.config.matchmaker.captcha.hcaptcha.secret_keystringSecret key for your hCaptcha application. Must be set.
version.config.matchmaker.captcha.turnstileobjectTurnstile captcha configuration.
version.config.matchmaker.captcha.turnstile.site_keystringversion.config.matchmaker.captcha.turnstile.secret_keystring
version.config.matchmaker.dev_hostnamestringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.regionsunion of empty object and objectversion.config.matchmaker.regions.tierstringversion.config.matchmaker.regions.idle_lobbiesobjectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.regions.idle_lobbies.minnumberversion.config.matchmaker.regions.idle_lobbies.maxnumber
version.config.matchmaker.max_playersnumberversion.config.matchmaker.max_players_directnumberversion.config.matchmaker.max_players_partynumberversion.config.matchmaker.dockerobjectA game mode runtime running through Docker.
version.config.matchmaker.docker.dockerfilestringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.build_argsunion of empty object and stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.imagestringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.image_idstringversion.config.matchmaker.docker.argsarray of stringsversion.config.matchmaker.docker.envunion of empty object and stringversion.config.matchmaker.docker.network_modestringConfigures how the container's network is isolated from the host.
bridge(default) networking isolates the container's network from the host & other containers.hostnetworking removes isolation between the container and the host. Only available in Rivet Open Source & Enterprise. Read more about bridge vs host networking here.version.config.matchmaker.docker.portsunion of empty object and objectversion.config.matchmaker.docker.ports.portnumberThe port number to connect to.
Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind
version.config.matchmaker.docker.ports.port_rangeobjectRange of ports that can be connected to. If configured,
network_modemust equalhost. Port ranges may overlap between containers, it is the responsibility of the developer to ensure ports are available before using. Read more about host networking here. Only available on Rivet Open Source & Enterprise.Related
- cloud.version.matchmaker.PortProtocol
- cloud.version.matchmaker.ProxyKind
version.config.matchmaker.docker.ports.port_range.minnumberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.port_range.maxnumberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.protocolstringSignifies the protocol of the port. Note that when proxying through GameGuard (via
ProxyKind), the port number returned by/find,/join, and/createwill not be the same as the port number configured in the config:- With HTTP, the port will always be 80. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server.
- With HTTPS, the port will always be 443. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server.
- Using TCP/UDP, the port will be a random number between 26000 and 31999. This gets automatically routed to the correct port being used by the game server.
Related - cloud.version.matchmaker.GameModeRuntimeDockerPort - cloud.version.matchmaker.ProxyKind - /docs/dynamic-servers/concepts/game-guard - matchmaker.lobbies.find
version.config.matchmaker.docker.ports.proxystringHow this port should be proxied. Defaults to 'game-guard`.
version.config.matchmaker.docker.ports.dev_portnumberConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.ports.dev_port_rangeobjectConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.ports.dev_port_range.minnumberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.dev_port_range.maxnumberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.dev_protocolstringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.tierstringversion.config.matchmaker.idle_lobbiesobjectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.idle_lobbies.minnumberversion.config.matchmaker.idle_lobbies.maxnumber
version.config.matchmaker.lobby_groupsany value
version.config.kvempty objectKV configuration for a given version.
version.config.identityany value