Wajib. Resource induk tempat kunci ini akan dibuat. Format: projects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}/databases/{databaseId}
[[["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 2024-04-19 UTC."],[[["\u003cp\u003eThis page documents the process of creating a new lock via a \u003ccode\u003ePOST\u003c/code\u003e request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is a required string, defining the resource location in the format: \u003ccode\u003eprojects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}/databases/{databaseId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of the \u003ccode\u003eLock\u003c/code\u003e resource, and the successful response will contain a newly created \u003ccode\u003eLock\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eCreating a lock requires one of the following OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe operation needs the \u003ccode\u003ebiglake.locks.create\u003c/code\u003e IAM permission on the \u003ccode\u003eparent\u003c/code\u003e resource to be executed.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.catalogs.databases.locks.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nCreates a new lock.\n\n### HTTP request\n\n`POST https://biglake.googleapis.com/v1alpha1/{parent=projects/*/locations/*/catalogs/*/databases/*}/locks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [Lock](/bigquery/docs/reference/biglake/rest/v1alpha1/projects.locations.catalogs.databases.locks#Lock).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Lock](/bigquery/docs/reference/biglake/rest/v1alpha1/projects.locations.catalogs.databases.locks#Lock).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/bigquery`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `biglake.locks.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]