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.
HTTP request
POST https://metastore.googleapis.com/v1alpha/{service}:alterLocation
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 |
---|
{ "resourceName": string, "locationUri": string } |
Fields | |
---|---|
resourceName |
Required. The relative metadata resource name in the following format.
|
locationUri |
Required. The new location URI for the metadata resource. |
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.