games.versions.getGameVersionById
Description
Returns a game version by its version ID.
Code Examples
Request Parameters
game_id
required path parameter
version_id
required path parameter
Response Body
version
objectA full version.
version.version_id
stringversion.create_ts
stringRFC3339 timestamp
version.display_name
stringRepresent a resource's readable display name.
version.config
objectCloud configuration for a given version.
version.config.scripts
union of empty object and stringversion.config.engine
objectversion.config.engine.unity
empty objectversion.config.engine.unreal
objectversion.config.engine.unreal.game_module
stringName of the Unreal module that holds the game code. This is usually the value of
$.Modules[0].Name
in the fileMyProject.unproject
. Configures Rivet CLI behavior. Has no effect on server behavior.
version.config.engine.godot
empty objectversion.config.engine.html5
empty objectversion.config.engine.custom
empty object
version.config.cdn
objectCDN configuration for a given version.
version.config.cdn.build_command
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.cdn.build_output
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.cdn.build_env
union of empty object and stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.cdn.site_id
stringversion.config.cdn.routes
array of objectsMultiple CDN version routes.
version.config.cdn.routes.glob
stringversion.config.cdn.routes.priority
numberUnsigned 32 bit integer.
version.config.cdn.routes.middlewares
array of objectsMultiple CDN version middleware.
version.config.cdn.routes.middlewares.kind
objectversion.config.cdn.routes.middlewares.kind.custom_headers
objectversion.config.cdn.routes.middlewares.kind.custom_headers.headers
array of objectsversion.config.cdn.routes.middlewares.kind.custom_headers.headers.name
stringversion.config.cdn.routes.middlewares.kind.custom_headers.headers.value
string
version.config.matchmaker
objectMatchmaker configuration for a given version.
version.config.matchmaker.game_modes
union of empty object and objectA list of game modes.
version.config.matchmaker.game_modes.regions
union of empty object and objectversion.config.matchmaker.game_modes.regions.tier
stringversion.config.matchmaker.game_modes.regions.idle_lobbies
objectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.game_modes.regions.idle_lobbies.min
numberversion.config.matchmaker.game_modes.regions.idle_lobbies.max
number
version.config.matchmaker.game_modes.max_players
numberversion.config.matchmaker.game_modes.max_players_direct
numberversion.config.matchmaker.game_modes.max_players_party
numberversion.config.matchmaker.game_modes.docker
objectA game mode runtime running through Docker.
version.config.matchmaker.game_modes.docker.dockerfile
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.build_args
union of empty object and stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.image
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.image_id
stringversion.config.matchmaker.game_modes.docker.args
array of stringsversion.config.matchmaker.game_modes.docker.env
union of empty object and stringversion.config.matchmaker.game_modes.docker.network_mode
stringConfigures how the container's network is isolated from the host.
bridge
(default) networking isolates the container's network from the host & other containers.host
networking 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.ports
union of empty object and objectversion.config.matchmaker.game_modes.docker.ports.port
numberThe port number to connect to.
Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind
version.config.matchmaker.game_modes.docker.ports.port_range
objectRange of ports that can be connected to. If configured,
network_mode
must 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.min
numberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.port_range.max
numberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.protocol
stringSignifies the protocol of the port. Note that when proxying through GameGuard (via
ProxyKind
), the port number returned by/find
,/join
, and/create
will 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.proxy
stringHow this port should be proxied. Defaults to 'game-guard`.
version.config.matchmaker.game_modes.docker.ports.dev_port
numberConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.ports.dev_port_range
objectConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.docker.ports.dev_port_range.min
numberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.dev_port_range.max
numberUnsigned 32 bit integer.
version.config.matchmaker.game_modes.docker.ports.dev_protocol
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.game_modes.listable
booleanversion.config.matchmaker.game_modes.taggable
booleanversion.config.matchmaker.game_modes.allow_dynamic_max_players
booleanversion.config.matchmaker.game_modes.actions
objectConfiguration for the connection types allowed for a game mode.
version.config.matchmaker.game_modes.actions.find
objectConfigures 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.enabled
booleanSets whether or not the /find endpoint is enabled.
version.config.matchmaker.game_modes.actions.find.identity_requirement
any valueversion.config.matchmaker.game_modes.actions.find.verification
objectConfiguration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the
verification_data
property (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.url
stringversion.config.matchmaker.game_modes.actions.find.verification.headers
union of empty object and string
version.config.matchmaker.game_modes.actions.join
objectConfigures 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.enabled
booleanSets whether or not the /join endpoint is enabled.
version.config.matchmaker.game_modes.actions.join.identity_requirement
any valueversion.config.matchmaker.game_modes.actions.join.verification
objectConfiguration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the
verification_data
property (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.url
stringversion.config.matchmaker.game_modes.actions.join.verification.headers
union of empty object and string
version.config.matchmaker.game_modes.actions.create
objectConfigures 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.enabled
booleanSets whether or not the /create endpoint is enabled.
version.config.matchmaker.game_modes.actions.create.identity_requirement
any valueversion.config.matchmaker.game_modes.actions.create.verification
objectConfiguration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the
verification_data
property (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.url
stringversion.config.matchmaker.game_modes.actions.create.verification.headers
union of empty object and string
version.config.matchmaker.game_modes.actions.create.enable_public
booleanDefaults to false when unset.
version.config.matchmaker.game_modes.actions.create.enable_private
booleanDefaults to true when unset.
version.config.matchmaker.game_modes.actions.create.max_lobbies_per_identity
any value
version.config.matchmaker.game_modes.tier
stringversion.config.matchmaker.game_modes.idle_lobbies
objectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.game_modes.idle_lobbies.min
numberversion.config.matchmaker.game_modes.idle_lobbies.max
number
version.config.matchmaker.captcha
objectMatchmaker captcha configuration.
version.config.matchmaker.captcha.requests_before_reverify
numberDenotes how many requests a connection can make before it is required to reverify a captcha.
version.config.matchmaker.captcha.verification_ttl
numberDenotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds).
version.config.matchmaker.captcha.hcaptcha
objecthCpatcha configuration.
version.config.matchmaker.captcha.hcaptcha.level
any valueversion.config.matchmaker.captcha.hcaptcha.site_key
stringSite key for your hCaptcha application. Must be set.
version.config.matchmaker.captcha.hcaptcha.secret_key
stringSecret key for your hCaptcha application. Must be set.
version.config.matchmaker.captcha.turnstile
objectTurnstile captcha configuration.
version.config.matchmaker.captcha.turnstile.site_key
stringversion.config.matchmaker.captcha.turnstile.secret_key
string
version.config.matchmaker.dev_hostname
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.regions
union of empty object and objectversion.config.matchmaker.regions.tier
stringversion.config.matchmaker.regions.idle_lobbies
objectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.regions.idle_lobbies.min
numberversion.config.matchmaker.regions.idle_lobbies.max
number
version.config.matchmaker.max_players
numberversion.config.matchmaker.max_players_direct
numberversion.config.matchmaker.max_players_party
numberversion.config.matchmaker.docker
objectA game mode runtime running through Docker.
version.config.matchmaker.docker.dockerfile
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.build_args
union of empty object and stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.image
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.image_id
stringversion.config.matchmaker.docker.args
array of stringsversion.config.matchmaker.docker.env
union of empty object and stringversion.config.matchmaker.docker.network_mode
stringConfigures how the container's network is isolated from the host.
bridge
(default) networking isolates the container's network from the host & other containers.host
networking 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.ports
union of empty object and objectversion.config.matchmaker.docker.ports.port
numberThe port number to connect to.
Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind
version.config.matchmaker.docker.ports.port_range
objectRange of ports that can be connected to. If configured,
network_mode
must 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.min
numberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.port_range.max
numberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.protocol
stringSignifies the protocol of the port. Note that when proxying through GameGuard (via
ProxyKind
), the port number returned by/find
,/join
, and/create
will 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.proxy
stringHow this port should be proxied. Defaults to 'game-guard`.
version.config.matchmaker.docker.ports.dev_port
numberConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.ports.dev_port_range
objectConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.docker.ports.dev_port_range.min
numberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.dev_port_range.max
numberUnsigned 32 bit integer.
version.config.matchmaker.docker.ports.dev_protocol
stringConfigures Rivet CLI behavior. Has no effect on server behavior.
version.config.matchmaker.tier
stringversion.config.matchmaker.idle_lobbies
objectConfiguration for how many idle lobbies a game version should have.
version.config.matchmaker.idle_lobbies.min
numberversion.config.matchmaker.idle_lobbies.max
number
version.config.matchmaker.lobby_groups
any value
version.config.kv
empty objectKV configuration for a given version.
version.config.identity
any value