Membuat kebijakan data baru di bagian project dengan dataPolicyId yang ditentukan (digunakan sebagai nama tampilan), tag kebijakan, dan jenis kebijakan data.
Permintaan HTTP
POST https://bigquerydatapolicy.googleapis.com/v1beta1/{parent=projects/*/locations/*}/dataPolicies
[[["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."],[[["This page details the process of creating a new data policy within a project, specifying its `dataPolicyId`, policy tag, and data policy type."],["The HTTP request to create a data policy is a POST request to the specified URL, utilizing gRPC Transcoding syntax."],["The request requires a `parent` parameter, which is a string representing the project resource name, in the format `projects/{projectNumber}/locations/{locationId}`."],["The request body should contain an instance of `DataPolicy`, and a successful response will include the newly created `DataPolicy` instance."],["Creating a data policy requires specific OAuth scopes and IAM permissions, including `datacatalog.taxonomies.get` and `bigquery.dataPolicies.create`."]]],[]]