Method: projects.locations.taxonomies.import

Imports all taxonomies and their policy tags to a project as new taxonomies.

This method provides a bulk taxonomy / policy tag creation using nested proto structure.

HTTP request

POST https://datacatalog.googleapis.com/v1beta1/{parent}/taxonomies:import

Path parameters

Parameters
parent

string

Required. Resource name of project that the imported taxonomies will belong to. It takes the form projects/{project_id}/locations/{location_id}.

Authorization requires the following IAM permission on the specified resource parent:

  • datacatalog.taxonomies.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "inlineSource": {
    object (InlineSource)
  }
}
Fields
inlineSource

object (InlineSource)

Inline source used for taxonomies 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 (Taxonomy)
    }
  ]
}
Fields
taxonomies[]

object (Taxonomy)

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 used for taxonomies import.

JSON representation
{
  "taxonomies": [
    {
      object (SerializedTaxonomy)
    }
  ]
}
Fields
taxonomies[]

object (SerializedTaxonomy)

Required. Taxonomies to be imported.

Try it!