Speicherort der Metadatenressource ändern Die Metadatenressource kann eine Datenbank, Tabelle oder Partition sein. Dabei wird nur das übergeordnete Verzeichnis für die jeweilige Metadatenressource aktualisiert. Vorhandene Daten werden nicht an den neuen Speicherort übertragen.
HTTP-Anfrage
POST https://metastore.googleapis.com/v1/{service}:alterLocation
Pfadparameter
Parameter
service
string
Pflichtangabe. Der relative Ressourcenname des Metastore-Dienstes, für den Metadaten mutiert werden sollen, im folgenden Format:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-04 (UTC)."],[[["\u003cp\u003eThis webpage details how to alter the location of a metadata resource, such as a database, table, or partition, within a metastore service.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves sending a \u003ccode\u003ePOST\u003c/code\u003e request to the \u003ccode\u003ehttps://metastore.googleapis.com/v1/{service}:alterLocation\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eservice\u003c/code\u003e path parameter is required and specifies the metastore service's resource name, necessitating the \u003ccode\u003emetastore.services.mutateMetadata\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the \u003ccode\u003eresourceName\u003c/code\u003e (the specific metadata resource) and the new \u003ccode\u003elocationUri\u003c/code\u003e for the resource, both as strings.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution of the request will result in a response body that contains an \u003ccode\u003eOperation\u003c/code\u003e instance, signaling the commencement of the metadata relocation.\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/v1/{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/)."]]