Retrieves the table schema and configuration information of a specified instance.
Operation description
Operation description
This operation queries the table schema and configuration information of a Tair Serverless KV table instance.
You must specify the InstanceId parameter. Set this parameter to the instance ID of the instance that you want to query.
The BackupId parameter specifies the backup set of the table to query.
The response packet includes the time-to-live (TTL) specifications and detailed table schema definition.
To invoke this operation, see the request parameters below.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeTairSkvDdbTableSchema |
get |
*DBInstance
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance to query. |
tt-bp1zxszhcgatnx\\*\\*\\*\\* |
| BackupId |
string |
No |
The ID of the backup file. |
78241**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. For more information, see common parameters. |
A1604E1B-6825-1577-BBDA-2A64E8D5F126 |
| Schema |
string |
The table schema information in JSON format. |
{"attributeDefinitions":[{"attributeType":"S","attributeName":"pk"},{"attributeType":"S","attributeName":"sk"}],"keySchema":[{"attributeName":"pk","keyType":"HASH"},{"attributeName":"sk","keyType":"RANGE"}]} |
| TtlSpec |
string |
The TTL property. The parameter settings toggle in JSON format. |
{"attributeName":"Expiretime","enabled":true} |
{
"TtlSpec":"{\"attributeName\":\"Expiretime\",\"enabled\":true}",
"RequestId":"A1604E1B-6825-1577-BBDA-2A64E8D5F126",
"Schema":"{\"attributeDefinitions\":[{\"attributeType\":\"S\",\"attributeName\":\"pk\"},{\"attributeType\":\"S\",\"attributeName\":\"sk\"}],\"keySchema\":[{\"attributeName\":\"pk\",\"keyType\":\"HASH\"},{\"attributeName\":\"sk\",\"keyType\":\"RANGE\"}]}"
}
Examples
Success response
JSON format
{
"RequestId": "A1604E1B-6825-1577-BBDA-2A64E8D5F126",
"Schema": "{\"attributeDefinitions\":[{\"attributeType\":\"S\",\"attributeName\":\"pk\"},{\"attributeType\":\"S\",\"attributeName\":\"sk\"}],\"keySchema\":[{\"attributeName\":\"pk\",\"keyType\":\"HASH\"},{\"attributeName\":\"sk\",\"keyType\":\"RANGE\"}]}",
"TtlSpec": "{\"attributeName\":\"Expiretime\",\"enabled\":true}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.