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

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.

TagDetails

Tag details.

TagsListResult
TagValue

Tag information.

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.

Name Type Description
type
  • string

Type of count.

value
  • integer

Value of count.

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

The list of tag values.

Name Type Description
nextLink
  • string

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

value

An array of tags.

Tag information.

Name Type Description
count

The tag value count.

id
  • string

The tag ID.

tagValue
  • string

The tag value.