GET /v1/file_lists/application_blocking
Description
Returns a list of application blocking file lists. You can filter this list by name.
Query Parameters
Name | Type | Example Values | Description |
---|---|---|---|
name[] |
String | Sample Application Blocking List | |
limit |
Integer | 10, 3 | |
offset |
Integer | 2 |
Name | Type | Description |
---|---|---|
version | String | |
metadata.links.self | String | |
metadata.links.prev | String | |
metadata.links.next | String | |
metadata.results.total | Integer | |
metadata.results.current_item_count | Integer | |
metadata.results.index | Integer | |
metadata.results.items_per_page | Integer | |
data | Array | |
data[].name | String | |
data[].guid | GUID | |
data[].type | String | |
data[].links.file_list | String |
Examples
- Fetch list of application_blocking file_lists
- Fetch list of application_blocking file_lists filtered by name
Fetch list of application_blocking file_lists
Request
Requires AuthorizationGET /v1/file_lists/application_blocking?limit=3&offset=2
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.amp.cisco.com/v1/file_lists/application_blocking?limit=3&offset=2'
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.amp.cisco.com/v1/file_lists/application_blocking?limit=3&offset=2'
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: 2805 x-permitted-cross-domain-policies: none x-download-options: noopen etag: W/"78e48bdc9dc8167f986de2edda330ea1" x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2022-03-18T11:55:11Z
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/file_lists/application_blocking?limit=3&offset=2",
"prev": "https://api.amp.cisco.com/v1/file_lists/application_blocking?limit=3&offset=0",
"next": "https://api.amp.cisco.com/v1/file_lists/application_blocking?limit=3&offset=5"
},
"results": {
"total": 6,
"current_item_count": 3,
"index": 2,
"items_per_page": 3
}
},
"data": [
{
"name": "Sample Application Blocking List 2",
"guid": "e4984c9b-651a-499e-a6fe-9ee938dab661",
"type": "application_blocking",
"links": {
"file_list": "https://api.amp.cisco.com/v1/file_lists/e4984c9b-651a-499e-a6fe-9ee938dab661"
}
},
{
"name": "Sample Application Blocking List 3",
"guid": "0fda9022-9491-4982-9066-adc4f65007bc",
"type": "application_blocking",
"links": {
"file_list": "https://api.amp.cisco.com/v1/file_lists/0fda9022-9491-4982-9066-adc4f65007bc"
}
}
]
}
Fetch list of application_blocking file_lists filtered by name
Request
Requires AuthorizationGET /v1/file_lists/application_blocking?name%5B%5D=Sample%20Application%20Blocking%20List&limit=10
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.amp.cisco.com/v1/file_lists/application_blocking?name%5B%5D=Sample%20Application%20Blocking%20List&limit=10'
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.amp.cisco.com/v1/file_lists/application_blocking?name%5B%5D=Sample%20Application%20Blocking%20List&limit=10'
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: 2804 x-permitted-cross-domain-policies: none x-download-options: noopen etag: W/"d985849b29f1534f919e9a3909529f98" x-frame-options: SAMEORIGIN x-ratelimit-resetdate: 2022-03-18T11:55:11Z
{
"version": "v1.2.0",
"metadata": {
"links": {
"self": "https://api.amp.cisco.com/v1/file_lists/application_blocking?name%5B%5D=Sample%20Application%20Blocking%20List&limit=10"
},
"results": {
"total": 6,
"current_item_count": 6,
"index": 0,
"items_per_page": 10
}
},
"data": [
{
"name": "Sample Application Blocking List",
"guid": "e773a9eb-296c-40df-98d8-bed46322589d",
"type": "application_blocking",
"links": {
"file_list": "https://api.amp.cisco.com/v1/file_lists/e773a9eb-296c-40df-98d8-bed46322589d"
}
},
{
"name": "Sample Application Blocking List 1",
"guid": "c37aeaa4-0010-486a-961f-d0b34390bcd0",
"type": "application_blocking",
"links": {
"file_list": "https://api.amp.cisco.com/v1/file_lists/c37aeaa4-0010-486a-961f-d0b34390bcd0"
}
}
]
}