Image version create
Warning: The API documentation here is for Clanforge. If you’re using Multiplay Hosting, refer to the Multiplay Hosting API documentation.
Create a new image version for the image identified by the specified image difference <diffid>
.
If the image difference analysis has no changes, it will create a full image instead of a partial image.
It's best practice to create a full image every so often by setting the full
variable to 1
to prevent your images from becoming excessively large, which can lead to slow deployment times when scaling into the cloud. Refer to image roll-up frequency.
https://api.multiplay.co.uk/cfp/v1/imageversion/create
METHOD |
GET |
Request parameters
VARIABLE | DESCRIPTION | OPTIONAL |
diffid | The <diffid> parameter accepts the ID of a completed image difference analysis. | No |
restart | The <restart> parameter accepts a boolean value that specifies whether to restart all the game servers that use the updated game image after the update is complete.If set to If set to | No |
accountserviceid | The <accountserviceid> is the account service ID (ASID) associated with the specified resource. The credentials in the request header must have access to the ASID to perform the request. | No |
full | The <full> parameter is anIf set to If omitted or set to You must set If you try to create a full install when the previous install was a full install and the | Yes |
game_build | The <game_build> parameter is an option parameter that accepts a string value that identifies the game's internal build. This was previously the game_version .If given then on successful completion the | Yes |
force | The <force> parameter is a boolean value that specifies whether to force the image version creation even if there are active allocations.If set to If set to By default, if there are active allocations when you make this request, it will fail. To bypass this behavior and force the image version creation, set | Yes |
install_at | The <install_at> parameter is unix timestamp representing the time at which the job is expected to start. | Yes |
disable_timeout | The <disable_timeout> parameter is is used in conjunction with <disable_percentage> in order to start failing machines earlier than the default 4 hour timeout.This value is an integer value representing minutes. Example: a value of | Yes |
disable_percentage | The <disable_percentage> parameter is is used in conjunction with <disable_timeout> in order to start failing machines earlier than the default 4 hour timeout.This value is a decimal value between 0.00 and 100.00. Example: with a | Yes |
Response fields
Field | Type | Description | Optional |
---|---|---|---|
imageversionid | integer | ID of the image | No |
jobcreated | integer | Unix timestamp of when the job was created | No |
joberror | string | Message indicating the job error | Yes |
jobeta | integer | Unix timestamp representing the time at which the job is expected to complete | Yes |
jobfailed | integer | Numeric flag indicating whether the job has failed | No |
jobprogress | integer | Percentage between 0 and 100 indicating job progress | No |
jobstart | string | Unix timestamp of when the job was started | Yes |
jobstateid | integer | Job state ID indicating the state of the job | Yes |
jobstatename | string | Name of the job state | No |
jobupdated | integer | Unix timestamp of when the job was last updated | No |
success | boolean | Flag indicating whether this request was a success | No |
Example request
curl --location --request GET 'https://api.multiplay.co.uk/cfp/v1/imageversion/create?diffid=<diff_id>&restart=<restart>&accountserviceid=<accountserviceid>&install_at=<timestamp>&full=<full>&game_build=<game_build>' \
--header 'Authorization: Basic YOUR_AUTH_CREDENTIALS'
Example response
{
"imageversionid": <imageversionid>,
"jobcreated": <jobcreated>,
"joberror": <joberror>,
"jobeta": <jobeta>,
"jobfailed": <jobfailed>,
"jobprogress": <jobprogress>,
"jobstart": <jobstart>,
"jobstateid": <jobstateid>,
"jobstatename": <jobstatename>,
"jobupdated": <jobupdated>
}