Move a table to another database.
HTTP request
POST https://metastore.googleapis.com/v1/{service}:moveTableToDatabase
Path parameters
Parameters | |
---|---|
service |
Required. The relative resource name of the metastore service to mutate metadata, in the following format:
Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "tableName": string, "dbName": string, "destinationDbName": string } |
Fields | |
---|---|
tableName |
Required. The name of the table to be moved. |
dbName |
Required. The name of the database where the table resides. |
destinationDbName |
Required. The name of the database where the table should be moved. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.