GetProjectTags
Query all tags of a resource type in a specified project.
GET /v2/{project_id}/{resource_type}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
resource_type |
Yes |
String |
Resource type The value can be the following: smn_topic: topic |
None
GET https://{SMN_Endpoint}/v2/{project_id}/{resource_type}/tags
Parameter |
Type |
Description |
---|---|---|
tags |
Tags structure array |
Tag list. For details, see Table 1. |
Parameter |
Mandatory |
Type |
Description |
Constraint |
---|---|---|---|---|
key |
Yes |
String |
Tag key |
A key contains 127 Unicode characters and cannot be blank. |
values |
Yes |
String list |
Value list |
Each value contains a maximum of 255 Unicode characters. If the value starts with an asterisk (*), the character string following the asterisk is fuzzy-matched. The values field cannot be missing, but can be an empty list. If it is empty, any value will be matched. The values are in OR relationship. |
{ "tags": [ { "key": "key1", "values": ["value1""value2"] }, { "key": "key2", "values": ["value1","value2"] } ] }
See section Returned Value.
See section Error Code.