Cisco AMP for Endpoints API

GET /v1/file_lists/{:file_list_guid}/files/{:sha256}

Description

Returns a particular item for a given file_list. You need to provide a SHA-256 and file_list_guid to get an item.

Show Response Fields

Name Type Description
version String
metadata.links.self String
data.sha256 String
data.source String
data.links.file_list String
Write
Preview

Examples

Fetch file list item with a given SHA-256 and associated with file list for given file_list_guid

Fetch file list item with a given SHA-256 and associated with file list for given file_list_guid

Request

Requires Authorization
GET /v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/462036ca17f013d59b09e469411fb4a322d6e9dad4ab4e3ca559f6fc78628141
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.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/462036ca17f013d59b09e469411fb4a322d6e9dad4ab4e3ca559f6fc78628141'

Response

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: 1832
x-ratelimit-remaining: 2840
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2019-01-09T17:44:06Z
transfer-encoding: chunked
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files/462036ca17f013d59b09e469411fb4a322d6e9dad4ab4e3ca559f6fc78628141"
    }
  },
  "data": {
    "sha256": "462036ca17f013d59b09e469411fb4a322d6e9dad4ab4e3ca559f6fc78628141",
    "source": "Created by entering SHA-256 via Public api.",
    "links": {
      "file_list": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d"
    }
  }
}