SysUpdateRoomServerImage
Updates the Docker image for the specified room server configuration. Automatically increments the server config version.
| Service | Operation |
|---|---|
| roomServer | SYS_UPDATE_ROOM_SERVER_IMAGE |
Method Parameters
| Parameter | Description |
|---|---|
| serverName | The name of the room server config to update, as defined in App > Design > Servers > My Servers. |
| dockerRepository | The new Docker repository string (e.g. 'myorg/my-game-server:v1.2.3'). |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var serverName = "my-server-type";
var dockerRepository = "myorg/my-game-server:v1.2.3";
var roomServerProxy = bridge.getRoomServerServiceProxy();
var postResult = roomServerProxy.sysUpdateRoomServerImage(serverName, dockerRepository);
{
"service":"roomServer",
"operation":"SYS_UPDATE_ROOM_SERVER_IMAGE",
"data":{
"serverName":"my-server-type",
"dockerRepository":"myorg/my-game-server:v1.2.3"
}
}
JSON Response
{
"data": {
"dockerRepository": "braincloud/warstone-server:4.5.0",
"serverName": "RoomServer",
"version": 3
},
"status": 200
}