This API is used to query the predefined tag list.
GET /v1.0/predefine_tags
Name |
Mandatory |
Type |
Description |
---|---|---|---|
key |
No |
String |
Key Supports fuzzy search and is case insensitive. If this parameter value contains non-URL-safe characters, it must be URL encoded. |
value |
No |
String |
Value Supports fuzzy search and is case insensitive. If this parameter value contains non-URL-safe characters, it must be URL encoded. |
limit |
No |
Integer |
Specifies the number of query records. The value ranges from 1 to 1000. If no value is specified, the value is 10 by default. If the value is set to 0, the number of query records is not limited. |
marker |
No |
String |
Specifies the paging location identifier (index). The query starts from the next piece of data indexed by this parameter. NOTE:
When querying the data on the first page, you do not need to specify this parameter. When querying the data on subsequent pages, set this parameter to the value in the response body returned by querying data of the previous page. When the returned tags is an empty list, the last page has been queried. |
order_field |
No |
String |
Specifies the field for sorting. The parameter value is case sensitive and can be update_time, key, or value. Its default value is update_time. You can choose only one of the three values and based on the value of order_method to sort the remaining two default fields. For example:
|
order_method |
No |
String |
Specifies the sorting method of the order_field field. The value can be (case sensitive):
Only one of the preceding values can be selected. If this parameter is not transferred, the default value is desc. |
GET https://{TMS endpoint}/v1.0/predefine_tags?key=ENV&value=DEV&limit=10&marker=9&order_field=key&order_method=asc
Name |
Type |
Description |
---|---|---|
tags |
List<predefine_tag> |
Specifies the tag list. For details, see Table 3. |
total_count |
Integer |
Specifies the total number of tags that meet the filtering criteria, which is not affected by pagination. |
marker |
String |
Specifies the paging location identifier. It indicates the location of the last query record. |
Name |
Type |
Description |
---|---|---|
key |
String |
Specifies the key. It cannot be left blank and can contain a maximum of 36 Unicode characters. Can contain only digits, letters, hyphens (-), and underscores (_). |
value |
String |
Specifies the value. Each value contains a maximum of 43 Unicode characters and can be an empty string. Can contain only digits, letters, hyphens (-), and underscores (_). |
update_time |
String |
Specifies the update time, which must be the UTC time, for example, 2016-12-09T00:00:00Z. |
{ "marker": "12", "total_count": 13, "tags": [ { "key": "ENV1", "value": "DEV1", "update_time": "2017-04-12T14:22:34Z" }, { "key": "ENV2", "value": "DEV2", "update_time": "2017-04-12T14:22:34Z" } ] }
See Status Code.