Mengubah lokasi resource metadata. Resource metadata dapat berupa database, tabel, atau partisi. Fungsi ini hanya memperbarui direktori induk untuk resource metadata masing-masing dan tidak mentransfer data yang ada ke lokasi baru.
Permintaan HTTP
POST https://metastore.googleapis.com/v1alpha/{service}:alterLocation
Parameter jalur
Parameter
service
string
Wajib. Nama resource relatif dari layanan metastore untuk mengubah metadata, dalam format berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-04 UTC."],[[["\u003cp\u003eThis endpoint allows for the modification of the parent directory location for a metadata resource, which can be a database, table, or partition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003ehttps://metastore.googleapis.com/v1alpha/{service}:alterLocation\u003c/code\u003e is used to initiate the alteration of the metadata resource location.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires the \u003ccode\u003eresourceName\u003c/code\u003e and the new \u003ccode\u003elocationUri\u003c/code\u003e of the metadata resource being altered to be defined.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to use this functionality requires the \u003ccode\u003emetastore.services.mutateMetadata\u003c/code\u003e IAM permission on the specified service and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the response will return an instance of \u003ccode\u003eOperation\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.services.alterLocation\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nAlter 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.\n\n### HTTP request\n\n`POST https://metastore.googleapis.com/v1alpha/{service}:alterLocation`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/dataproc-metastore/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]