Policy > Infra > Labels

Associated URIs:

API Description API Path

List labels for infra


Paginated list of all labels for infra.
GET /policy/api/v1/infra/labels
GET /policy/api/v1/global-infra/labels
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/labels

Delete PolicyLabel object


Delete PolicyLabel object
DELETE /policy/api/v1/infra/labels/{label-id}
DELETE /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/labels/{label-id}

Read lable


Read a label.
GET /policy/api/v1/infra/labels/{label-id}
GET /policy/api/v1/global-infra/labels/{label-id}
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/labels/{label-id}

Patch an existing label object


Create label if not exists, otherwise take the partial updates.
Note, once the label is created type attribute can not be changed.
PATCH /policy/api/v1/infra/labels/{label-id}
PATCH /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/labels/{label-id}

Create or replace label


Create label if not exists, otherwise replaces the existing label.
If label already exists then type attribute cannot be changed.
PUT /policy/api/v1/infra/labels/{label-id}
PUT /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/labels/{label-id}