Skip to content
Scripts that cover the basics of interacting with the AMP for Endpoints API
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
01_authentication.py Align code with submission requirements Feb 22, 2019
02a_get_computers_list.py Align code with submission requirements Feb 22, 2019
02b_get_computer_details.py Align code with submission requirements Feb 22, 2019
02c_get_computer_trajectory.py Align code with submission requirements Feb 22, 2019
02d_get_computer_user_trajectory.py
02e_get_user_activity.py Align code with submission requirements Feb 22, 2019
02f_search_environment_for_indicator.py Align code with submission requirements Feb 22, 2019
02g_move_computer_to_group.py Align code with submission requirements Feb 22, 2019
02h_delete_computer.py Align code with submission requirements Feb 22, 2019
03_get_event_types.py Align code with submission requirements Feb 22, 2019
04_get_events.py Align code with submission requirements Feb 22, 2019
05a_get_groups_list.py
05b_get_group_details.py Align code with submission requirements Feb 22, 2019
05c_create_new_group.py
05d_set_policy_for_group.py Align code with submission requirements Feb 22, 2019
05e_make_group_a_child_of_another_group.py Align code with submission requirements Feb 22, 2019
05f_make_a_child_group_a_parent.py
06a_get_policies_list.py Align code with submission requirements Feb 22, 2019
06b_get_policy_details.py
06c_get_policy_guid_xml.py
07a_get_simple_custom_dection_lists.py Align code with submission requirements Feb 22, 2019
07b_get_application_blocking_lists.py Align code with submission requirements Feb 22, 2019
07c_get_file_list_details.py Align code with submission requirements Feb 22, 2019
07d_get_list_of_SHA256s_on_a_file_list.py Align code with submission requirements Feb 22, 2019
07e_get_info_about_a_SHA256_on_a_file_list.py
07f_add_SHA256_to_file_list.py Align code with submission requirements Feb 22, 2019
07g_delete_SHA256_from_file_list.py Align code with submission requirements Feb 22, 2019
08a_get_event_streams_list.py Align code with submission requirements Feb 22, 2019
08b_get_event_stream_details.py Align code with submission requirements Feb 22, 2019
08c_create_event_stream.py Align code with submission requirements Feb 22, 2019
08d_update_event_stream.py Align code with submission requirements Feb 22, 2019
08e_delete_event_stream.py
README.md Align code with submission requirements Feb 22, 2019

README.md

Gitter chat

AMP for Endpoint API Basics:

This collection of scripts cover the basics of interacting with the AMP for Endpoints API. Each script covers one API endpoint. These are intented to show the bare minimum required to interact with the API endpoint.

Before using you must update the following:

  • amp_client_id
  • amp_api_key

Additional variables where present:

  • computer_guid
  • user
  • query
  • group_guid
  • parent_group_guid
  • policy_guid
  • file_lists_guid
  • sha256
  • stream_id

When an additional variable is present in a script an example with the appropriate format is provided as a comment. These variables are noted with a < (less-than-sign) and > (greater-than-sign).

# EXAMPLE:
# computer_guid = 'd7fbcdb6-0a14-4e39-867e-02f5e1649497'
computer_guid = '<COMPUTER_GUID>'

Usage:

python 01_authentication.py

Example script output:

{'version': 'v1.2.0', 'metadata': {'links': {'self': 'https://api.amp.cisco.com/v1/version'}}, 'data': {}}
You can’t perform that action at this time.