- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- InlineSource
- CrossRegionalSource
- Try it!
Creates new taxonomies (including their policy tags) by importing from inlined source or cross-regional source. New taxonomies will be created in a given parent project.
If using the cross-regional source, a new taxonomy is created by copying from a source in another region.
If using the inlined source, this method provides a way to bulk create taxonomies and policy tags using nested proto structure.
HTTP request
POST https://datacatalog.googleapis.com/v1/{parent}/taxonomies:import
Path parameters
Parameters | |
---|---|
parent |
Required. Resource name of project that the imported taxonomies will belong to. It takes the form Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field source . Source taxonomies to be imported. source can be only one of the following: |
||
inlineSource |
Inline source used for taxonomies import. |
|
crossRegionalSource |
Cross-regional source taxonomy to be imported. |
Response body
If successful, the response body contains data with the following structure:
Response message for taxonomies.import
.
JSON representation | |
---|---|
{
"taxonomies": [
{
object ( |
Fields | |
---|---|
taxonomies[] |
Taxonomies that were imported. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
InlineSource
Inline source containing taxonomies to import.
JSON representation | |
---|---|
{
"taxonomies": [
{
object ( |
Fields | |
---|---|
taxonomies[] |
Required. Taxonomies to be imported. |
CrossRegionalSource
Cross-regional source used to import an existing taxonomy into a different region.
JSON representation | |
---|---|
{ "taxonomy": string } |
Fields | |
---|---|
taxonomy |
Required. The resource name of the source taxonomy to be imported. |