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 group
Updates event_stream to a given name

Updates event stream to a given event_type

Request

Requires Authorization
PATCH /v1/event_streams/25398
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.apjc.amp.cisco.com/v1/event_streams/25398'
Body
{"event_type":[1090519054]}
      

Response

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: 1842
x-ratelimit-remaining: 2877
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2019-01-09T17:44:06Z
transfer-encoding: chunked
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.apjc.amp.cisco.com/v1/event_streams/25398"
    }
  },
  "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"
    }
  }
}

Updates event stream to a given group

Request

Requires Authorization
PATCH /v1/event_streams/25398
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":["67b5e432-1d8c-4a1c-9208-17d2c797e318"]}' \
-u YOUR_API_CLIENT_ID \
'https://api.apjc.amp.cisco.com/v1/event_streams/25398'
Body
{"group_guid":["67b5e432-1d8c-4a1c-9208-17d2c797e318"]}
      

Response

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: 1842
x-ratelimit-remaining: 2874
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2019-01-09T17:44:06Z
transfer-encoding: chunked
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.apjc.amp.cisco.com/v1/event_streams/25398"
    }
  },
  "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"
    }
  }
}

Updates event_stream to a given name

Request

Requires Authorization
PATCH /v1/event_streams/25398
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":"FVLesPiH"}' \
-u YOUR_API_CLIENT_ID \
'https://api.apjc.amp.cisco.com/v1/event_streams/25398'
Body
{"name":"FVLesPiH"}
      

Response

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: 1841
x-ratelimit-remaining: 2872
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2019-01-09T17:44:06Z
transfer-encoding: chunked
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.apjc.amp.cisco.com/v1/event_streams/25398"
    }
  },
  "data": {
    "id": 25398,
    "name": "FVLesPiH",
    "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"
    }
  }
}