- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- SplitPoints
- Key
- Try it!
Adds split points to specified tables, indexes of a database.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
database |
Required. The database on whose tables and indexes split points are to be added. Values are of the form Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"splitPoints": [
{
object ( |
Fields | |
---|---|
splitPoints[] |
Required. The split points to add. |
initiator |
Optional. A user-supplied tag associated with the split points. For example, "initial_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified. The length of the tag must not exceed 50 characters, or else it is trimmed. Only valid UTF8 characters are allowed. |
Response body
If successful, the response body is empty.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/spanner.admin
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
SplitPoints
The split points of a table or an index.
JSON representation |
---|
{
"table": string,
"index": string,
"keys": [
{
object ( |
Fields | |
---|---|
table |
The table to split. |
index |
The index to split. If specified, the |
keys[] |
Required. The list of split keys. In essence, the split boundaries. |
expireTime |
Optional. The expiration timestamp of the split points. A timestamp in the past means immediate expiration. The maximum value can be 30 days in the future. Defaults to 10 days in the future if not specified. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Key
A split key.
JSON representation |
---|
{ "keyParts": array } |
Fields | |
---|---|
keyParts |
Required. The column values making up the split key. |