[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-04。"],[[["\u003cp\u003eThis operation restores a metastore service from a specified backup, accessible via a \u003ccode\u003ePOST\u003c/code\u003e request to the given URL.\u003c/p\u003e\n"],["\u003cp\u003eYou must provide the \u003ccode\u003eservice\u003c/code\u003e path parameter, specifying the service to restore using the project ID, location ID, and service ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires either a \u003ccode\u003ebackup\u003c/code\u003e field with a backup resource name or a \u003ccode\u003ebackupLocation\u003c/code\u003e field with a Cloud Storage URI, but not both.\u003c/p\u003e\n"],["\u003cp\u003eOptional fields such as \u003ccode\u003erestoreType\u003c/code\u003e to specify the restore type and \u003ccode\u003erequestId\u003c/code\u003e to prevent duplicate operations can be provided in the request body.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an Operation instance in the response body, and the request requires OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.services.restore\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\nRestores a service from a backup.\n\n### HTTP request\n\n`POST https://metastore.googleapis.com/v1/{service}:restore`\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/)."]]