This API is used to check the name of the table to be restored.
For details, see Calling APIs.
POST /v1/{project_id}/snapshots/{snapshot_id}/table-restore-check
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Definition Project ID. To obtain the value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
snapshot_id |
Yes |
String |
Definition Snapshot ID. Constraints N/A Range N/A Default Value N/A |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
case_sensitive |
Yes |
Boolean |
Definition Whether the name is case sensitive. Range N/A |
database |
Yes |
String |
Definition Database name. Range N/A |
restore_table_list |
Yes |
Array of TableDetail objects |
Definition Source table information. Range N/A |
target_table_list |
Yes |
Array of TableDetail objects |
Definition Destination table information. Range N/A |
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
check_table_name_result |
CheckTableNameResult object |
Definition Check result. Range N/A |
Parameter |
Type |
Description |
|---|---|---|
database |
String |
Definition Database name. Range N/A |
restore_table_list |
Array of strings |
Definition Information about the source tables in a restoration. Range N/A |
target_table_list |
Array of strings |
Definition Information about the destination tables in a restoration. Range N/A |
POST https://{Endpoint}/v2/0536cdee2200d5912f7cc00b877980f1/snapshots/c719b1a7-c85c-4cb5-a721-7694908c2c11/table-restore-check
{
"case_sensitive" : true,
"database" : "postgres",
"restore_table_list" : [ {
"schema_name" : "postgres",
"table_name" : "public"
} ],
"target_table_list" : [ {
"schema_name" : "postgres",
"table_name" : "public"
} ]
}
Status code: 200
The name of the table to be restored is checked.
{
"check_table_name_result" : {
"database" : "postgres",
"restore_table_list" : null,
"target_table_list" : null
}
}
Status Code |
Description |
|---|---|
200 |
The name of the table to be restored is checked. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
You do not have required permissions. |
500 |
Internal server error. |
503 |
Service unavailable. |