Image Update Create URL parameters

AWS S3

s3://<username>:<password>@<bucket>/<folder>/?<parameters>

Authentication

Username = AWS Access Key

Password = AWS SecretAccess Key

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html

Optional Query Parameters

NameDescriptionDefault
handlersSpecifies the number of handlers used to sync the bucket10
regionIdentifies the AWS region in which the bucket is located.eu-west-1
requesttimeoutSpecifies how long until the request fetching the image will wait before timeout.2m (2 minutes)

Steamcmd

steam://<username>:<password>@install/<appid>/

Authentication

Username = Steam username (can be 'anonymous')

Password = Steam password (can be blank if user is 'anonymous')

Steam Guard Code = Refer to Optional Query Parameters for guardcode usage

https://help.steampowered.com/en/faqs/view/06B0-26E6-2CF8-254C

Optional Query Parameters

NameDescriptionDefault
platformtypeconvar @sSteamCmdForcePlatformType - Valid options are windows, linux, and macos.The Platform Type of your buildbox.
Often there a misconfiguration of your steam repo if:
  • Your buildbox matches the expected Platform
  • And, you are still forcing this option.
In this case check your app is correctly assigned to your depot.
platformbitnessconvar @sSteamCmdForcePlatformBitness - Valid options are 32 and 64.The Platform Bitness of your buildbox. (generally 64 bit nowadays)
guardcodeSteam guard code passed to the login commandN/a
betabeta passed to the app_update command -beta parameterN/a
betapasswordpassword passed to the app_update command -betapassword parameterN/a
appmodmod passed to the app_set_config command mod parameterN/a

Google Cloud Storage

gs://<bucket>/<folder>?credentials=<creds>

Authentication

?credentials - Credentials which grants permission to the bucket. Must be URL Encoded Google Service Account JSON credentials.

https://cloud.google.com/iam/docs/keys-create-delete

Optional Query Parameters

NameDescriptionDefault
handlersSpecifies the number of handlers used to sync the bucket.10
requesttimeoutThe timeout value used in the request.2m (Two Minutes)

Tencent Cloud Object Storage

cos://<username>:<password>@<bucket>/<folder>

Authentication

Username = COS SecretId

Password = COS SecretKey

https://www.tencentcloud.com/document/product/436/45241?lang=en

Optional Query Parameters

NameDescriptionDefault
handlersSpecifies the number of handlers used to sync the bucket.10
regionIdentifies the Tencent Cloud region in which the bucket is located.ap-shanghai
requesttimeoutThe timeout that the request will use.2m (Two Minutes)

URL Encoding Caveats

You should URL encode username and password credentials if they contain any special characters before encoding complete URL (with the encoded credentials) separately - this is the same for every available URL type and must be done when making an API call with the url parameter. (Encoding does not need to be done when using the Clanforge WebPanel)

AWS S3 URL Encoding example

The following example explains how you would use the AWS S3 url parameter with your Image Create Update API call and perform encoding.

For example, you might have the following S3 URL: s3://my%user:my%password\@bucket/key

Here, the username is my%user and the password is my%password.

After URL encoding the credentails user becomes my%25user and password becomes my%25password.

Now we build the S3 URL with the encoded credentials like so: s3://my%25user:my%25password@bucket/key

But this isnt quite ready yet.

Next we must encode the entire URL (including the pre-encoded credentials) before using the bucket URL in an API request.

After encoding, the entire bucket URL is s3%3A%2F%2Fmy%25user%3Amy%25password%40bucket%2Fkey .

Finally, after performing the two-step encoding process, you can use the S3 bucket URL in an API request:

https://api.multiplay.co.uk/cfp/v1/imageupdate/create?imageid=1249&machineid=95394&accountserviceid=1337&desc=alpha-build&url=s3%3A%2F%2Fmy%25user%3Amy%25password%40bucket%2Fkey.`