Erstellt eine neue Datenrichtlinie unter einem Projekt mit der angegebenen dataPolicyId (als Anzeigenamen verwendet), dem Richtlinien-Tag und dem Datenrichtlinientyp.
HTTP-Anfrage
POST https://bigquerydatapolicy.googleapis.com/v1/{parent=projects/*/locations/*}/dataPolicies
Erforderlich. Ressourcenname des Projekts, zu dem die Datenrichtlinie gehören soll. Das Format dafür ist projects/{projectNumber}/locations/{locationId}.
Anfragetext
Der Anfragetext enthält eine Instanz von DataPolicy.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von DataPolicy.
[[["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)."],[[["This endpoint creates a new data policy within a specified project, identified by a unique `dataPolicyId`, along with a policy tag and type."],["The HTTP request is a POST operation to the provided URL structure, using gRPC Transcoding syntax, and requires a parent resource name as a path parameter."],["The request body must contain the details of the new `DataPolicy`, while the response body will return the newly created `DataPolicy` instance upon successful execution."],["Authorization requires one of two specific OAuth scopes, `https://www.googleapis.com/auth/bigquery` or `https://www.googleapis.com/auth/cloud-platform`."],["Creating a new data policy also requires `bigquery.dataPolicies.create` permission on the specified parent, `datacatalog.taxonomies.get` on the `taxonomy` resource, and `bigquery.routines.get` on the `routine` resource."]]],[]]