POST: /metadata/tag-value-suggest

Search for tag values.

application/json

Structure
Field Type Purpose
key  <string> Key for where to search for tag values.
filter  Filter Filter to apply
range  QueryDateRange The time range for which to get suggestions.
limit  <number> The time range for which to get suggestions.

Example Request


          {
  "key": "role",
  "filter": ["=", "site", "lone"],
  "limit": 10
}

      

Example Curl


          $ curl -XPOST -H "Content-Type: application/json" http://localhost:8080/metadata/tag-value-suggest \
          -d '{ "key": "role", "filter": ["=", "site", "lone"], "limit": 10 }'
      

Example 200 Response

Status: 200, Content-Type: application/json

Structure
Field Type Purpose
errors  [RequestError, ...] Errors that occured during the request.
values  required [<string>, ...] Values of the given tag.
limited  required <boolean> If the result is limited or not.

          {
  "errors": [],
  "values": [
    "heroic-api",
    "heroic-consumer"
  ],
  "limited": false
}