DeleteTable¶
- DELETE v1/data/{project_id}/tables/{table_name}¶
Request Syntax¶
This operation does not require a request body
Response Syntax¶
{
"table_description": {
"attribute_definitions": [
{
"attribute_name": "string",
"attribute_type": "string"
}
],
"creation_datetime": "number",
"item_count": "number",
"key_schema": [
{
"attribute_name": "string",
"key_type": "string"
}
],
"local_secondary_indexes": [
{
"index_name": "string",
"index_size_bytes": "number",
"item_count": "number",
"key_schema": [
{
"attribute_name": "string",
"key_type": "string"
}
],
"projection": {
"non_key_attributes": [
"string"
],
"projection_type": "string"
}
}
],
"links": [
{
"href": "url",
"rel": "self"
}
],
"table_size_bytes": "number",
"table_status": "string"
}
}
Response Elements¶
- table_description
Represents the properties of a table.Type: table_description object
Errors¶
BackendInteractionExceptionClusterIsNotConnectedExceptionResourceInUseExceptionTableNotExistsExceptionValidationError
Sample Response¶
{
"table_description": {
"attribute_definitions": [
{
"attribute_name": "Subject",
"attribute_type": "S"
},
{
"attribute_name": "LastPostDateTime",
"attribute_type": "S"
},
{
"attribute_name": "ForumName",
"attribute_type": "S"
}
],
"creation_date_time": 0,
"item_count": 0,
"key_schema": [
{
"attribute_name": "ForumName",
"key_type": "HASH"
},
{
"attribute_name": "Subject",
"key_type": "RANGE"
}
],
"local_secondary_indexes": [
{
"index_name": "LastPostIndex",
"index_size_bytes": 0,
"item_count": 0,
"key_schema": [
{
"attribute_name": "ForumName",
"key_type": "HASH"
},
{
"attribute_name": "LastPostDateTime",
"key_type": "RANGE"
}
],
"projection": {
"projection_type": "ALL"
}
}
],
"table_name": "Thread",
"table_size_bytes": 0,
"table_status": "DELETING",
"links": [
{
"href": "http://localhost:8480/v1/fake_project_id/data/tables/Thread",
"rel": "self"
},
{
"href": "http://localhost:8480/v1/fake_project_id/data/tables/Thread",
"rel": "bookmark"
}
]
}
}