Skip to main content

Retrieve all labels for a project ID and region

Retrieves all labels for a specified project ID and region. Use this to view the labels associated with resources in the specified scope.

HTTP method and endpoint

GET /gcp/ha/metadata/tag-keys

Usage notes

Retrieves all labels in the specified project ID and region.

Parameters

Name Type In Required Description

region

string

query

False

projectId

string

query

False

Error

Status: Default, Default response
Name Type Required Description

key

string

True

values

array[string]

True

Example error response
{
  "key": "string",
  "values": [
    "string"
  ]
}