Querying Tags of a Specified Stream
Function
This API is used to query tags of a specified stream.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/stream/{stream_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
stream_id |
Yes |
String |
Stream ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
tags |
Array of Tag objects |
Tags |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Tag key.
Minimum: 1 Maximum: 36 |
value |
String |
Value.
Minimum: 0 Maximum: 43 |
Example Requests
Querying Tags of a Specified Stream
GET https://{Endpoint}/v2/{project_id}/stream/{stream_id}/tags
Example Responses
Status code: 200
Response body of the stream tag information.
{ "tags" : [ { "key" : "key1", "value" : "value1" }, { "key" : "key2", "value" : "value3" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body of the stream tag information. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot