Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Message Queue
  • Access management
  • Pricing policy
  • Terraform reference
    • Overview
      • CreateQueue
      • DeleteQueue
      • GetQueueAttributes
      • GetQueueUrl
      • ListQueues
      • PurgeQueue
      • SetQueueAttributes
      • TagQueue
      • UntagQueue
      • ListQueueTags
    • Common errors
  • Monitoring metrics
  • Public materials
  • FAQ

In this article:

  • Request
  • Request parameters
  • Response
  • Successful response fields
  • TagQueue errors
  • Request example
  • Response example
  1. API reference
  2. Queue
  3. TagQueue

TagQueue

Written by
Yandex Cloud
Updated at April 11, 2025
  • Request
    • Request parameters
  • Response
    • Successful response fields
    • TagQueue errors
  • Request example
  • Response example

This is a method for setting queue labels. Updating labels can take up to 60 seconds.

A new label with a key identical to that of the existing label replaces the existing label.

RequestRequest

Request parametersRequest parameters

Parameter Type Required parameter Description
QueueUrl string Yes URL of a queue.
Tags.N.* List of labels Yes List of queue labels.

LabelsLabels

Queue labels. The labels are provided as a list. For more information about passing list parameters, see Using the API.

Tag.N.Key (label)
Tag.N.Value (label value)

ResponseResponse

Successful response fieldsSuccessful response fields

The response does not contain any fields.

TagQueue errorsTagQueue errors

For a list of errors common for all methods, see Common errors.

Request exampleRequest example

Action=TagQueue
&Version=2012-11-05
&QueueUrl=https://message-queue.api.cloud.yandex.net/b1g8ad42m6he********/dj6000000000********/sample-queue
&Tag.1.Key=environment
&Tag.1.Value=production

For more information about forming requests, see General API request format.

Response exampleResponse example

<TagQueueResponse>
    <ResponseMetadata>
        <RequestId>87acfbed-5254a88a-ef8d6306-e5fd93e-74626d14b02d992c99e5fa1b********</RequestId>
    </ResponseMetadata>
</TagQueueResponse>

Was the article helpful?

Previous
SetQueueAttributes
Next
UntagQueue
Yandex project
© 2025 Yandex.Cloud LLC