Tags - List

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

GET https://management.azure.com/subscriptions/{subscriptionId}/tagNames?api-version=2017-05-10

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

The ID of the target subscription.

api-version
query True
  • string

The API version to use for this operation.

Responses

Name Type Description
200 OK

OK - Returns an array of tag names and values.

Definitions

TagCount

Tag count.

TagDetails

Tag details.

TagsListResult

List of subscription tags.

TagValue

Tag information.

TagCount

Tag count.

Name Type Description
type
  • string

Type of count.

value
  • integer

Value of count.

TagDetails

Tag details.

Name Type Description
count

The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0.

id
  • string

The tag ID.

tagName
  • string

The tag name.

values

Tag information.

TagsListResult

List of subscription tags.

Name Type Description
nextLink
  • string

The URL to use for getting the next set of results.

value

Tag details.

TagValue

Tag information.

Name Type Description
count

The tag value count.

id
  • string

The tag ID.

tagValue
  • string

The tag value.