Skip to main content

List All Tags

Endpoint: GET /api/metadata/tags

Retrieves all tags defined in the cluster. Tags are returned as key-value pairs.

Response

Returns a JSON array of tag objects. Each object includes:

  • key (string): The tag key.
  • value (string): The tag value.

Examples

Get all tags

Request

curl -X 'GET' \
'https://<YOUR-SERVER-URL>/api/metadata/tags' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>'

Response

Returns an array of all tags in the cluster.

[
{
"key": "team",
"value": "blog"
},
{
"key": "team",
"value": "docs"
}
]