GET /v1/file_lists/{:file_list_guid}
Description
Returns a particular file list for application blocking or simple custom detection. You need to provide a file_list_guid to retrieve information about a particular file_list.
Name | Type | Description |
---|---|---|
version | String | |
metadata.links.self | String | |
data.name | String | |
data.guid | GUID | |
data.type | String | |
data.links.details | String |
Examples
- Fetch application_blocking file list with given file_list_guid
- Fetch simple_custom_detection file list with given file_list_guid
Fetch application_blocking file list with given file_list_guid
Request
Requires AuthorizationGET /v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
authorization: Basic FILTERED
cURL Edit, then copy and paste on your terminal
curl -X GET \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'accept-encoding: identity' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-u YOUR_API_CLIENT_ID \
'https://api.consumer.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d'
Response
cURL Edit, then copy and paste on your terminal
curl -X GET \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'accept-encoding: identity' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -u YOUR_API_CLIENT_ID \ 'https://api.consumer.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d'
Shortened for readability
content-type: application/json transfer-encoding: chunked status: 200 OK x-ratelimit-limit: 3000 x-ratelimit-reset: 876 strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000 referrer-policy: strict-origin-when-cross-origin x-ratelimit-remaining: 2803 x-permitted-cross-domain-policies: none x-download-options: noopen etag: W/"f49f20b8cdea040f43f0159aafcfae98" x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2022-03-18T11:55:11Z
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.consumer.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d"
}
},
"data": {
"name": "Sample Application Blocking List",
"guid": "e773a9eb-296c-40df-98d8-bed46322589d",
"type": "application_blocking",
"links": {
"details": "https://api.consumer.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d/files"
}
}
}
Fetch simple_custom_detection file list with given file_list_guid
Request
Requires AuthorizationGET /v1/file_lists/03097bae-53f9-44b1-a0e5-d23b1f33a94a
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
authorization: Basic FILTERED
cURL Edit, then copy and paste on your terminal
curl -X GET \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'accept-encoding: identity' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-u YOUR_API_CLIENT_ID \
'https://api.consumer.amp.cisco.com/v1/file_lists/03097bae-53f9-44b1-a0e5-d23b1f33a94a'
Response
cURL Edit, then copy and paste on your terminal
curl -X GET \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -H 'accept-encoding: identity' \ --compressed -H 'Accept-Encoding: gzip, deflate' \ -u YOUR_API_CLIENT_ID \ 'https://api.consumer.amp.cisco.com/v1/file_lists/03097bae-53f9-44b1-a0e5-d23b1f33a94a'
Shortened for readability
content-type: application/json transfer-encoding: chunked status: 200 OK x-ratelimit-limit: 3000 x-ratelimit-reset: 875 strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000 referrer-policy: strict-origin-when-cross-origin x-ratelimit-remaining: 2800 x-permitted-cross-domain-policies: none x-download-options: noopen etag: W/"22aa0968b99ac7891f18bd9783452dd0" x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2022-03-18T11:55:11Z
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.consumer.amp.cisco.com/v1/file_lists/03097bae-53f9-44b1-a0e5-d23b1f33a94a"
}
},
"data": {
"name": "Quick SCD",
"guid": "03097bae-53f9-44b1-a0e5-d23b1f33a94a",
"type": "simple_custom_detections",
"links": {
"details": "https://api.consumer.amp.cisco.com/v1/file_lists/03097bae-53f9-44b1-a0e5-d23b1f33a94a/files"
}
}
}