GET /v1/computers/user_activity
Description
Query Parameters
Name | Type | Example Values | Description |
---|---|---|---|
q |
String | johndoe | |
limit |
Integer | 3 |
Name | Type | Description |
---|---|---|
version | String | |
metadata.links.self | 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[].connector_guid | GUID | |
data[].hostname | String | |
data[].active | Boolean | |
data[].links.computer | String | |
data[].links.trajectory | String | |
data[].links.group | String |
Examples
- Fetch a specific computer's trajectory with given connector_guid and filter for events with user ...
Fetch a specific computer's trajectory with given connector_guid and filter for events with user name activity
Request
Requires AuthorizationGET /v1/computers/user_activity?q=johndoe&limit=3
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/computers/user_activity?q=johndoe&limit=3'
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/computers/user_activity?q=johndoe&limit=3'
Shortened for readability
content-type: application/json transfer-encoding: chunked status: 200 OK x-ratelimit-limit: 3000 x-ratelimit-reset: 894 strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000 referrer-policy: strict-origin-when-cross-origin x-ratelimit-remaining: 2844 x-permitted-cross-domain-policies: none x-download-options: noopen etag: W/"05ce71ae23927a59db2e8349b5d797ab" 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/computers/user_activity?q=johndoe&limit=3",
"next": "https://api.amp.cisco.com/v1/computers/user_activity?q=johndoe&limit=3&offset=3"
},
"results": {
"total": 7,
"current_item_count": 3,
"index": 0,
"items_per_page": 3
}
},
"data": [
{
"connector_guid": "52a44022-2549-4f20-b7e3-d18070607eeb",
"hostname": "Demo_Qakbot_3",
"active": true,
"links": {
"computer": "https://api.amp.cisco.com/v1/computers/52a44022-2549-4f20-b7e3-d18070607eeb",
"trajectory": "https://api.amp.cisco.com/v1/computers/52a44022-2549-4f20-b7e3-d18070607eeb/user_trajectory?q=johndoe",
"group": "https://api.amp.cisco.com/v1/groups/b077d6bc-bbdf-42f7-8838-a06053fbd98a"
}
},
{
"connector_guid": "a2c57f20-3d31-4b91-b5f0-2228662de5b0",
"hostname": "Demo_Qakbot_1",
"active": true,
"links": {
"computer": "https://api.amp.cisco.com/v1/computers/a2c57f20-3d31-4b91-b5f0-2228662de5b0",
"trajectory": "https://api.amp.cisco.com/v1/computers/a2c57f20-3d31-4b91-b5f0-2228662de5b0/user_trajectory?q=johndoe",
"group": "https://api.amp.cisco.com/v1/groups/b077d6bc-bbdf-42f7-8838-a06053fbd98a"
}
}
]
}