Retrieve Sources

DESCRIPTION

To retrieve all source definitions.

The default Anodot sources are also shown.

DEFINITION

GET https://api.anodot.com/api/v1/user-events/sources?token=<api token>

HEADERS

Content-type=application/json

EXAMPLE REQUEST

curl \
-X GET \
-H "Content-Type: application/json" \
'https://api.anodot.com/api/v1/user-events/sources?token=<API TOKEN>'

 EXAMPLE RESPONSE

[
   {
      "id":"0",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-anodot.png",
      "name":"anodot",
      "owner":"anodot"
   },
   {
      "id":"1",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-chef.png",
      "name":"chef",
      "owner":"anodot"
   },
   {
      "id":"2",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-jenkins.png",
      "name":"jenkins",
      "owner":"anodot"
   },
   {
      "id":"3",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-slack.png",
      "name":"slack",
      "owner":"anodot"
   },
   {
      "id":"4",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-other.png",
      "name":"other",
      "owner":"anodot"
   },
   {
      "id":"55196c3c-d1ff-4e1b-8d7b-1c7aff605cce",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-zabbix.png",
      "name":"zabbix",
      "owner":"user"
   }
]

Note: For more details about example responses, see Success and Errors

 

Was this article helpful?
0 out of 0 found this helpful