projects

POST /v1/projects/{projectsId}/locations/{locationsId}/taxonomies/{taxonomiesId}:replace

Replaces (updates) a taxonomy and all its policy tags. The taxonomy and its entire hierarchy of policy tags must be represented literally by SerializedTaxonomy and the nested SerializedPolicyTag messages. This operation automatically does the following: - Deletes the existing policy tags that are missing from the SerializedPolicyTag. - Creates policy tags that don't have resource names. They are considered new. - Updates policy tags with valid resources names accordingly.

Request

Path parameters

projectsIdstring required
locationsIdstring required
taxonomiesIdstring required

Request body

Response

Successful response

activatedPolicyTypesstring[]

Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.

descriptionstring

Optional. Description of this taxonomy. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns, and page breaks, and be at most 2000 bytes long when encoded in UTF-8.

displayNamestring

Required. User-defined name of this taxonomy. The name can't start or end with spaces, must contain only Unicode letters, numbers, underscores, dashes, and spaces, and be at most 200 bytes long when encoded in UTF-8. The taxonomy display name must be unique within an organization.

namestring

Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs.

policyTagCountinteger

Output only. Number of policy tags in this taxonomy.

Changes

No recorded changes to this operation across all 5 revisions of this API.