Query tags
get
/serviceapi/entityModel/uds/tags
Query all tags according to the given key and value.
Request
Supported Media Types
- application/json
Query Parameters
-
key(optional): string
the tag key to be looked up
-
limit(optional): integer(int32)
the number of entries in the result to be returend in one REST callDefault Value:
2000
-
offset(optional): integer(int32)
the offset into the result list when doing a query with limitDefault Value:
0
-
value(optional): string
the tag value
Response
Supported Media Types
- application/json
200 Response
successful operation
Root Schema : ItemListUdsTag
Type:
Show Source
object
-
count:
integer(int32)
The number of items in the list
-
hasMore:
boolean
Default Value:
false
Indicates if there are more items -
items:
array items
The items
-
nextLink(optional):
string
The link to get the next chunk of items (if paging)
-
previousLink(optional):
string
The link to the previous chunk of items (if paging)
-
totalCount(optional):
integer(int32)
The total number of items (if paging)
Nested Schema : items
Type:
array
The items
Show Source
-
Array of:
object UdsTag
Describes a tag. Tags are used to identify and query entities. Tags are managed using key/value pairs.
Nested Schema : UdsTag
Type:
object
Describes a tag. Tags are used to identify and query entities. Tags are managed using key/value pairs.
-
key:
string
the tag keyExample:
organization
-
value:
string
the tag valueExample:
dev
Examples
Get all Tags for key=loc:
curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/entityModel/uds/tags?key=loc"
The output looks like:
{ "count": 3, "items": [ { "key": "loc", "value": "bos" }, { "key": "loc", "value": "sfo" }, { "key": "loc", "value": "nyc" } ] }Back to Top