GET /v1/event_streams
Description
Returns a list of event stream resources
Name | Type | Description |
---|---|---|
version | String | |
metadata.links.self | String | |
metadata.results.total | Integer | |
data | Array | |
data[].id | Integer | |
data[].name | String | |
data[].amqp_credentials.user_name | String | |
data[].amqp_credentials.queue_name | String | |
data[].amqp_credentials.host | String | |
data[].amqp_credentials.port | String | |
data[].amqp_credentials.proto | String |
Examples
Fetch list of event streams
Request
Requires AuthorizationGET /v1/event_streams
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
cURL Edit, then copy and paste on your terminal
curl -X GET \
-H 'accept: application/json' \
-H 'content-type: application/json' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/event_streams'
Response
cURL Edit, then copy and paste on your terminal
curl -X GET \ -H 'accept: application/json' \ -H 'content-type: application/json' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -u YOUR_API_CLIENT_ID \ 'https://api.amp.cisco.com/v1/event_streams'
Shortened for readability
strict-transport-security: max-age=31536000 content-type: application/json; charset=utf-8 status: 200 OK x-ratelimit-limit: 3000 x-ratelimit-reset: 1843 x-ratelimit-remaining: 2881 x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2019-01-09T17:44:06Z transfer-encoding: chunked
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/event_streams"
},
"results": {
"total": 2
}
},
"data": [
{
"id": 25398,
"name": "bjSrmCei",
"group_guids": [
"67b5e432-1d8c-4a1c-9208-17d2c797e318"
],
"event_types": [
1090519054
],
"amqp_credentials": {
"user_name": "25398-16db5cf986eec6f44422",
"queue_name": "event_stream_25398",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
},
{
"id": 25399,
"name": "UPqibRzB",
"group_guids": [
"67b5e432-1d8c-4a1c-9208-17d2c797e318"
],
"event_types": [
1090519054
],
"amqp_credentials": {
"user_name": "25399-16db5cf986eec6f44422",
"queue_name": "event_stream_25399",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
}
]
}