Cisco AMP for Endpoints API

PATCH /v1/event_streams/{:id}

Description

Updates an active event stream resource

Show Response Fields

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
Write
Preview

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 Authorization
PATCH /v1/event_streams/28855
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
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 'accept-encoding: identity' \
-H 'content-length: 27' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"event_type":[1090519054]}' \
-u YOUR_API_CLIENT_ID \
'https://api.eu.amp.cisco.com/v1/event_streams/28855'
Body
{"event_type":[1090519054]}
      

Response

Shortened for readability

content-type: application/json; charset=utf-8
transfer-encoding: chunked
status: 202 Accepted
x-ratelimit-limit: 3000
x-ratelimit-reset: 1981
referrer-policy: strict-origin-when-cross-origin
x-ratelimit-remaining: 2838
x-permitted-cross-domain-policies: none
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2021-05-05T23:55:49Z
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/event_streams/28855"
    }
  },
  "data": {
    "id": 28855,
    "name": "RYyOhiFm",
    "group_guids": [
      "a4a983ef-91df-428f-9b08-1e88ec5357df"
    ],
    "event_types": [
      1090519054
    ],
    "amqp_credentials": {
      "user_name": "28855-16db5cf986eec6f44422",
      "queue_name": "event_stream_28855",
      "host": "export-streaming-lb-int.qa1.immunet.com",
      "port": "443",
      "proto": "amqps"
    }
  }
}

Updates event stream to a given list of event_types

Request

Requires Authorization
PATCH /v1/event_streams/28855
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
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 'accept-encoding: identity' \
-H 'content-length: 37' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"event_type":[1090519054,554696714]}' \
-u YOUR_API_CLIENT_ID \
'https://api.eu.amp.cisco.com/v1/event_streams/28855'
Body
{"event_type":[1090519054,554696714]}
      

Response

Shortened for readability

content-type: application/json; charset=utf-8
transfer-encoding: chunked
status: 202 Accepted
x-ratelimit-limit: 3000
x-ratelimit-reset: 1980
referrer-policy: strict-origin-when-cross-origin
x-ratelimit-remaining: 2837
x-permitted-cross-domain-policies: none
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2021-05-05T23:55:49Z
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/event_streams/28855"
    }
  },
  "data": {
    "id": 28855,
    "name": "RYyOhiFm",
    "group_guids": [
      "a4a983ef-91df-428f-9b08-1e88ec5357df"
    ],
    "event_types": [
      1090519054,
      554696714
    ],
    "amqp_credentials": {
      "user_name": "28855-16db5cf986eec6f44422",
      "queue_name": "event_stream_28855",
      "host": "export-streaming-lb-int.qa1.immunet.com",
      "port": "443",
      "proto": "amqps"
    }
  }
}

Updates event stream to a given group

Request

Requires Authorization
PATCH /v1/event_streams/28855
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
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 'accept-encoding: identity' \
-H 'content-length: 55' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"group_guid":["a4a983ef-91df-428f-9b08-1e88ec5357df"]}' \
-u YOUR_API_CLIENT_ID \
'https://api.eu.amp.cisco.com/v1/event_streams/28855'
Body
{"group_guid":["a4a983ef-91df-428f-9b08-1e88ec5357df"]}
      

Response

Shortened for readability

content-type: application/json; charset=utf-8
transfer-encoding: chunked
status: 202 Accepted
x-ratelimit-limit: 3000
x-ratelimit-reset: 1979
referrer-policy: strict-origin-when-cross-origin
x-ratelimit-remaining: 2836
x-permitted-cross-domain-policies: none
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2021-05-05T23:55:49Z
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/event_streams/28855"
    }
  },
  "data": {
    "id": 28855,
    "name": "RYyOhiFm",
    "group_guids": [
      "a4a983ef-91df-428f-9b08-1e88ec5357df"
    ],
    "event_types": [
      554696714,
      1090519054
    ],
    "amqp_credentials": {
      "user_name": "28855-16db5cf986eec6f44422",
      "queue_name": "event_stream_28855",
      "host": "export-streaming-lb-int.qa1.immunet.com",
      "port": "443",
      "proto": "amqps"
    }
  }
}

Updates event_stream to a given list of groups

Request

Requires Authorization
PATCH /v1/event_streams/28855
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
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 'accept-encoding: identity' \
-H 'content-length: 94' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"group_guid":["a4a983ef-91df-428f-9b08-1e88ec5357df","f1fd5996-1009-45dd-9da6-cc3a9dfd893e"]}' \
-u YOUR_API_CLIENT_ID \
'https://api.eu.amp.cisco.com/v1/event_streams/28855'
Body
{"group_guid":["a4a983ef-91df-428f-9b08-1e88ec5357df","f1fd5996-1009-45dd-9da6-cc3a9dfd893e"]}
      

Response

Shortened for readability

content-type: application/json; charset=utf-8
transfer-encoding: chunked
status: 202 Accepted
x-ratelimit-limit: 3000
x-ratelimit-reset: 1978
referrer-policy: strict-origin-when-cross-origin
x-ratelimit-remaining: 2835
x-permitted-cross-domain-policies: none
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2021-05-05T23:55:49Z
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/event_streams/28855"
    }
  },
  "data": {
    "id": 28855,
    "name": "RYyOhiFm",
    "group_guids": [
      "a4a983ef-91df-428f-9b08-1e88ec5357df",
      "f1fd5996-1009-45dd-9da6-cc3a9dfd893e"
    ],
    "event_types": [
      554696714,
      1090519054
    ],
    "amqp_credentials": {
      "user_name": "28855-16db5cf986eec6f44422",
      "queue_name": "event_stream_28855",
      "host": "export-streaming-lb-int.qa1.immunet.com",
      "port": "443",
      "proto": "amqps"
    }
  }
}

Updates event_stream to a given name

Request

Requires Authorization
PATCH /v1/event_streams/28855
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
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 'accept-encoding: identity' \
-H 'content-length: 19' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"name":"VwlsWXkJ"}' \
-u YOUR_API_CLIENT_ID \
'https://api.eu.amp.cisco.com/v1/event_streams/28855'
Body
{"name":"VwlsWXkJ"}
      

Response

Shortened for readability

content-type: application/json; charset=utf-8
transfer-encoding: chunked
status: 202 Accepted
x-ratelimit-limit: 3000
x-ratelimit-reset: 1977
referrer-policy: strict-origin-when-cross-origin
x-ratelimit-remaining: 2834
x-permitted-cross-domain-policies: none
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2021-05-05T23:55:49Z
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/event_streams/28855"
    }
  },
  "data": {
    "id": 28855,
    "name": "VwlsWXkJ",
    "group_guids": [
      "f1fd5996-1009-45dd-9da6-cc3a9dfd893e",
      "a4a983ef-91df-428f-9b08-1e88ec5357df"
    ],
    "event_types": [
      554696714,
      1090519054
    ],
    "amqp_credentials": {
      "user_name": "28855-16db5cf986eec6f44422",
      "queue_name": "event_stream_28855",
      "host": "export-streaming-lb-int.qa1.immunet.com",
      "port": "443",
      "proto": "amqps"
    }
  }
}