PATCH /v1/event_streams/{:id}
Description
Updates an active event stream resource
Name | Type | Description |
---|---|---|
version | String | |
metadata.links.self | String | |
data.id | Integer | |
data.name | String | |
data.amqp_credentials.user_name | String | |
data.amqp_credentials.password | String | |
data.amqp_credentials.queue_name | String | |
data.amqp_credentials.host | String | |
data.amqp_credentials.port | String | |
data.amqp_credentials.proto | String |
Examples
- Updates event stream to a given event_type
- Updates event stream to a given list of event_types
- Updates event stream to a given group
- Updates event_stream to a given list of groups
- Updates event_stream to a given name
Updates event stream to a given event_type
Request
Requires AuthorizationPATCH /v1/event_streams/26392
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
content-length: 27
cURL Edit, then copy and paste on your terminal
curl -X PATCH \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'content-length: 27' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"event_type":[1090519054]}' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/event_streams/26392'
Body
{"event_type":[1090519054]}
Response
cURL Edit, then copy and paste on your terminal
curl -X PATCH \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'content-length: 27' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -d '{"event_type":[1090519054]}' \ -u YOUR_API_CLIENT_ID \ 'https://api.amp.cisco.com/v1/event_streams/26392'
Shortened for readability
strict-transport-security: max-age=31536000 content-type: application/json; charset=utf-8 status: 202 Accepted x-ratelimit-limit: 3000 x-ratelimit-reset: 3566 x-ratelimit-remaining: 2950 x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2020-02-20T19:42:33Z transfer-encoding: chunked
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/event_streams/26392"
}
},
"data": {
"id": 26392,
"name": "IAcHMChr",
"group_guids": [
"5cdf70dd-1b14-46a0-be90-e08da14172d8"
],
"event_types": [
1090519054
],
"amqp_credentials": {
"user_name": "26392-16db5cf986eec6f44422",
"queue_name": "event_stream_26392",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
}
}
Updates event stream to a given list of event_types
Request
Requires AuthorizationPATCH /v1/event_streams/26392
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
content-length: 37
cURL Edit, then copy and paste on your terminal
curl -X PATCH \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'content-length: 37' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"event_type":[1090519054,554696714]}' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/event_streams/26392'
Body
{"event_type":[1090519054,554696714]}
Response
cURL Edit, then copy and paste on your terminal
curl -X PATCH \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'content-length: 37' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -d '{"event_type":[1090519054,554696714]}' \ -u YOUR_API_CLIENT_ID \ 'https://api.amp.cisco.com/v1/event_streams/26392'
Shortened for readability
strict-transport-security: max-age=31536000 content-type: application/json; charset=utf-8 status: 202 Accepted x-ratelimit-limit: 3000 x-ratelimit-reset: 3566 x-ratelimit-remaining: 2949 x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2020-02-20T19:42:33Z transfer-encoding: chunked
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/event_streams/26392"
}
},
"data": {
"id": 26392,
"name": "IAcHMChr",
"group_guids": [
"5cdf70dd-1b14-46a0-be90-e08da14172d8"
],
"event_types": [
1090519054,
554696714
],
"amqp_credentials": {
"user_name": "26392-16db5cf986eec6f44422",
"queue_name": "event_stream_26392",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
}
}
Updates event stream to a given group
Request
Requires AuthorizationPATCH /v1/event_streams/26392
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
content-length: 55
cURL Edit, then copy and paste on your terminal
curl -X PATCH \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'content-length: 55' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"group_guid":["5cdf70dd-1b14-46a0-be90-e08da14172d8"]}' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/event_streams/26392'
Body
{"group_guid":["5cdf70dd-1b14-46a0-be90-e08da14172d8"]}
Response
cURL Edit, then copy and paste on your terminal
curl -X PATCH \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'content-length: 55' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -d '{"group_guid":["5cdf70dd-1b14-46a0-be90-e08da14172d8"]}' \ -u YOUR_API_CLIENT_ID \ 'https://api.amp.cisco.com/v1/event_streams/26392'
Shortened for readability
strict-transport-security: max-age=31536000 content-type: application/json; charset=utf-8 status: 202 Accepted x-ratelimit-limit: 3000 x-ratelimit-reset: 3564 x-ratelimit-remaining: 2948 x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2020-02-20T19:42:33Z transfer-encoding: chunked
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/event_streams/26392"
}
},
"data": {
"id": 26392,
"name": "IAcHMChr",
"group_guids": [
"5cdf70dd-1b14-46a0-be90-e08da14172d8"
],
"event_types": [
1090519054,
554696714
],
"amqp_credentials": {
"user_name": "26392-16db5cf986eec6f44422",
"queue_name": "event_stream_26392",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
}
}
Updates event_stream to a given list of groups
Request
Requires AuthorizationPATCH /v1/event_streams/26392
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
content-length: 94
cURL Edit, then copy and paste on your terminal
curl -X PATCH \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'content-length: 94' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"group_guid":["5cdf70dd-1b14-46a0-be90-e08da14172d8","0b04e696-e460-4ca1-8ce4-b239ff53fbe4"]}' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/event_streams/26392'
Body
{"group_guid":["5cdf70dd-1b14-46a0-be90-e08da14172d8","0b04e696-e460-4ca1-8ce4-b239ff53fbe4"]}
Response
cURL Edit, then copy and paste on your terminal
curl -X PATCH \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'content-length: 94' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -d '{"group_guid":["5cdf70dd-1b14-46a0-be90-e08da14172d8","0b04e696-e460-4ca1-8ce4-b239ff53fbe4"]}' \ -u YOUR_API_CLIENT_ID \ 'https://api.amp.cisco.com/v1/event_streams/26392'
Shortened for readability
strict-transport-security: max-age=31536000 content-type: application/json; charset=utf-8 status: 202 Accepted x-ratelimit-limit: 3000 x-ratelimit-reset: 3563 x-ratelimit-remaining: 2947 x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2020-02-20T19:42:33Z transfer-encoding: chunked
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/event_streams/26392"
}
},
"data": {
"id": 26392,
"name": "IAcHMChr",
"group_guids": [
"5cdf70dd-1b14-46a0-be90-e08da14172d8",
"0b04e696-e460-4ca1-8ce4-b239ff53fbe4"
],
"event_types": [
1090519054,
554696714
],
"amqp_credentials": {
"user_name": "26392-16db5cf986eec6f44422",
"queue_name": "event_stream_26392",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
}
}
Updates event_stream to a given name
Request
Requires AuthorizationPATCH /v1/event_streams/26392
Headers
accept: application/json
content-type: application/json
authorization: Basic FILTERED
content-length: 19
cURL Edit, then copy and paste on your terminal
curl -X PATCH \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'content-length: 19' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"name":"wcnDLpQV"}' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/event_streams/26392'
Body
{"name":"wcnDLpQV"}
Response
cURL Edit, then copy and paste on your terminal
curl -X PATCH \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'content-length: 19' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -d '{"name":"wcnDLpQV"}' \ -u YOUR_API_CLIENT_ID \ 'https://api.amp.cisco.com/v1/event_streams/26392'
Shortened for readability
strict-transport-security: max-age=31536000 content-type: application/json; charset=utf-8 status: 202 Accepted x-ratelimit-limit: 3000 x-ratelimit-reset: 3562 x-ratelimit-remaining: 2946 x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2020-02-20T19:42:33Z transfer-encoding: chunked
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/event_streams/26392"
}
},
"data": {
"id": 26392,
"name": "wcnDLpQV",
"group_guids": [
"5cdf70dd-1b14-46a0-be90-e08da14172d8",
"0b04e696-e460-4ca1-8ce4-b239ff53fbe4"
],
"event_types": [
1090519054,
554696714
],
"amqp_credentials": {
"user_name": "26392-16db5cf986eec6f44422",
"queue_name": "event_stream_26392",
"host": "export-streaming-lb-int.qa1.immunet.com",
"port": "443",
"proto": "https"
}
}
}