Method: projects.locations.services.moveTableToDatabase

将表移至其他数据库。

HTTP 请求

POST https://metastore.googleapis.com/v1beta/{service}:moveTableToDatabase

路径参数

参数
service

string

必需。用于更改元数据的 Metastore 服务的相对资源名称,格式如下:

projects/{projectId}/locations/{locationId}/services/{serviceId}

必须对指定的资源 service 具有以下 IAM 权限才能进行授权:

  • metastore.services.mutateMetadata

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "tableName": string,
  "dbName": string,
  "destinationDbName": string
}
字段
tableName

string

必需。要移动的表的名称。

dbName

string

必需。表所在数据库的名称。

destinationDbName

string

必需。要将表移至其中的数据库的名称。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅身份验证概览