---
title: "GET /subscriptions/{subscriptionId}/tagNames"
method: GET
path: "/subscriptions/{subscriptionId}/tagNames"
tags: ["Tags"]
---

# GET /subscriptions/{subscriptionId}/tagNames

`GET /subscriptions/{subscriptionId}/tagNames`

Gets the names and values of all resource tags that are defined in a subscription.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK - Returns an array of tag names and values.

- TagsListResult — List of subscription tags.
  - `value` TagDetails[] — An array of tags.
    - `id` string — The tag ID.
    - `tagName` string — The tag name.
    - `count` TagCount — Tag count.
      - `type` string — Type of count.
      - `value` integer — Value of count.
    - `values` TagValue[] — The list of tag values.
      - `id` string — The tag ID.
      - `tagValue` string — The tag value.
      - `count` TagCount — Tag count.
        - `type` string — Type of count.
        - `value` integer — Value of count.
  - `nextLink` string — The URL to use for getting the next set of results.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/resourcemanagementclient.md) · [All operations](https://skmtc.dev/azure/apis/resourcemanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/resourcemanagementclient/revisions/917e67faecf0/schema)
