v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132769111.5 KB
projects

Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.

post/v1/{+service}:alterLocation

Path parameters

servicestring required

Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.

Request body

resourceNamestring

Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}

locationUristring

Required. The new location URI for the metadata resource.

Response

Successful response