Retrieve label

GET {{baseUrl}}/endpoint/labels/:id?expand=filters&aid=1234

Returns a single label using its ID.

Request Params

KeyDatatypeRequiredDescription
expandstringThis parameter is optional and determines whether to include additional details in the response. To specify multiple expansions, you can either separate the values with commas or specify the parameter multiple times.
aidnumberA unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"id":"abc-123-def","name":"Head office meeting rooms","color":"#ff3333","matchType":"and","filters":[{"key":"vpn-client-network","values":["10.1.1.0/24","192.168.1.0/24"],"mode":"in"},{"key":"vpn-client-network","values":["10.1.1.0/24","192.168.1.0/24"],"mode":"in"}],"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"non aliqua consequat","deprecation":"eiusmod nulla","name":"minim ut adipisicing ea","profile":"proident laboris do","title":"mollit est ex dolor minim","hreflang":"deserunt sit amet anim"}}}