Retrieve agent notification rule
GET {{baseUrl}}/agents/notification-rules/:notificationRuleId?aid=1234
Returns details of an agent notification rule, including agents it is assigned to.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
aid | number | A 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
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact \u003e= 30 min))","notifyOnClear":true,"isDefault":false,"notifications":{"email":{"message":"This test is failing, check as soon as possible.","recipients":["user1@thousandeyes.com","user2@cisco.com"]},"thirdParty":[{"integrationId":"wb-78","integrationName":"integrationSlack1","integrationType":"slack","target":"https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ","authMethod":"Basic","authUser":"user123","authToken":"0VqDYEpidpHVAK397x8PBsmZ","channel":"#slackChannel"},{"integrationId":"wb-78","integrationName":"integrationSlack1","integrationType":"slack","target":"https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ","authMethod":"Basic","authUser":"user123","authToken":"0VqDYEpidpHVAK397x8PBsmZ","channel":"#slackChannel"}],"webhook":[{"integrationId":"wb-78","integrationName":"integrationSlack1","integrationType":"slack","target":"https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ","authMethod":"Basic","authUser":"user123","authToken":"0VqDYEpidpHVAK397x8PBsmZ","channel":"#slackChannel"},{"integrationId":"wb-78","integrationName":"integrationSlack1","integrationType":"slack","target":"https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ","authMethod":"Basic","authUser":"user123","authToken":"0VqDYEpidpHVAK397x8PBsmZ","channel":"#slackChannel"}]},"agents":[{"agentType":"enterprise-cluster","ipAddresses":["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],"publicIpAddresses":["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],"network":"AT\u0026T Services, Inc. (AS 7018)","agentId":"281474976710706","agentName":"thousandeyes-stg-va-254","location":"San Francisco Bay Area","countryId":"US","enabled":true,"prefix":"99.128.0.0/11","verifySslCertificates":true},{"agentType":"enterprise-cluster","ipAddresses":["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],"publicIpAddresses":["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],"network":"AT\u0026T Services, Inc. (AS 7018)","agentId":"281474976710706","agentName":"thousandeyes-stg-va-254","location":"San Francisco Bay Area","countryId":"US","enabled":true,"prefix":"99.128.0.0/11","verifySslCertificates":true}],"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":false,"type":"ea sed repre","deprecation":"officia sit minim","name":"pariatur esse amet","profile":"cillum dolor","title":"occaecat dolor","hreflang":"dolore velit consequat"}}}