Cisco AMP for Endpoints API

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

Description

Returns a list of items for a particular file_list. You need to provide file_list_guid to retrieve these items.

Query Parameters

Name Type Example Values Description
limit Integer 3
offset Integer 2

Show Response Fields

Name Type Description
version String
metadata.links.self String
metadata.links.prev String
metadata.results.total Integer
metadata.results.current_item_count Integer
metadata.results.index Integer
metadata.results.items_per_page Integer
data.name String
data.guid GUID
data.policies Array
data.policies[].name String
data.policies[].guid GUID
data.policies[].links.policy String
data.items Array
Write
Preview

Examples

Fetch file list items associated with a specific file list with given file_list_guid

Fetch file list items associated with a specific file list with given file_list_guid

Request

Requires Authorization
GET /v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files?limit=3&offset=2
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?limit=3&offset=2'

Response

Shortened for readability

x-ratelimit-limit: 3000
x-ratelimit-reset: 3318
x-ratelimit-remaining: 2868
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2017-08-18T03:52:38Z
strict-transport-security: max-age=31536000
status: 200 OK
transfer-encoding: chunked
content-type: application/json; charset=utf-8
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files?limit=3&offset=2",
      "prev": "https://api.eu.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files?limit=3&offset=0"
    },
    "results": {
      "total": 1,
      "current_item_count": 0,
      "index": 2,
      "items_per_page": 3
    }
  },
  "data": {
    "name": "Sample Application Blocking List",
    "guid": "e773a9eb-296c-40df-98d8-bed46322589d",
    "policies": [
      {
        "name": "Audit Policy",
        "guid": "89912c9e-8dbd-4c2b-a1d8-dee8a0c2bb29",
        "links": {
          "policy": "https://api.eu.amp.cisco.com/v1/policies/89912c9e-8dbd-4c2b-a1d8-dee8a0c2bb29"
        }
      },
      {
        "name": "Audit Policy for FireAMP Linux",
        "guid": "f55db9c4-51a0-4e3b-8a3a-6532f06fc0c8",
        "links": {
          "policy": "https://api.eu.amp.cisco.com/v1/policies/f55db9c4-51a0-4e3b-8a3a-6532f06fc0c8"
        }
      }
    ],
    "items": [

    ]
  }
}