Realtime Cloud Storage

updateTable

Updates the number of operations per second and how they're distributed between read and write operations of a given table. Take into account that, even though this operation completes, the table stays in a ‘updating’ state. While in this state, all operations done over this table will fail with a ResourceInUseException.

Sample

curl 'https://storage-backend-prd-useast1.realtime.co/updateTable' -H 'Content-Type: application/json; charset=UTF-8' -d '{ "applicationKey": "[YOUR_APP_KEY]", "authenticationToken": "[YOUR_TOKEN]", "table": "SampleUser", "provisionType": 1, "provisionLoad": 1 }'

Parameters

String applicationKey

Public key of the application's license.

String privateKey optional

Private key of the application's license. For administration use only.

String authenticationToken

Identification of the user using the application.

String table

The name of the table.

Number provisionType

Defines the table’s number of operations per second.

Number provisionLoad

Defines how the number of operations per second are distributed between the read and write operations on a table.

Throughput throughput optional

Specifies the values for the read and write throughput capacity of a table. Only mandatory when the provision type is ‘Custom’.

UpdateTableResponse callback

Function called when the operation completes.

Response

UpdateTableResponse(data, error)

Response of the updateTable operation.

Object data

Error error

The attribute that holds the results of the operation if an error occurred.