Erforderlich. Die übergeordnete Ressource, in der diese Datenbank erstellt wird. Format: projects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}
Abfrageparameter
Parameter
databaseId
string
Erforderlich. Die für die Datenbank zu verwendende ID, die als letzte Komponente des Ressourcennamens der Datenbank verwendet wird.
Anfragetext
Der Anfragetext enthält eine Instanz von Database.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von Database.
[[["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: 2024-05-23 (UTC)."],[[["\u003cp\u003eThis webpage outlines how to create a new database using the BigLake API, specifically using a POST request to a designated URL.\u003c/p\u003e\n"],["\u003cp\u003eThe process requires a \u003ccode\u003eparent\u003c/code\u003e path parameter indicating the project, location, and catalog for the new database.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003edatabaseId\u003c/code\u003e query parameter is necessary to specify the unique ID of the database being created.\u003c/p\u003e\n"],["\u003cp\u003eThe request and response bodies are both instances of the \u003ccode\u003eDatabase\u003c/code\u003e resource type.\u003c/p\u003e\n"],["\u003cp\u003eThe request needs specific authorization scopes or IAM permissions, including \u003ccode\u003ebiglake.databases.create\u003c/code\u003e on the \u003ccode\u003eparent\u003c/code\u003e resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.catalogs.databases.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_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 database.\n\n### HTTP request\n\n`POST https://biglake.googleapis.com/v1/{parent=projects/*/locations/*/catalogs/*}/databases`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Database](/bigquery/docs/reference/biglake/rest/v1/projects.locations.catalogs.databases#Database).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Database](/bigquery/docs/reference/biglake/rest/v1/projects.locations.catalogs.databases#Database).\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.databases.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]