GET /v1/computers/user_activity
Description
Query Parameters
Name | Type | Example Values | Description |
---|---|---|---|
q |
String | johndoe | |
limit |
Integer | 5 | |
offset |
Integer | 0 |
Name | Type | Description |
---|---|---|
version | String | |
metadata.links.self | String | |
metadata.results.total | Integer | |
metadata.results.current_item_count | Integer | |
metadata.results.index | Integer | |
metadata.results.items_per_page | Integer | |
data | Array |
Examples
Fetch list of computers that have observed activity by given user name
Request
Requires AuthorizationGET /v1/computers/user_activity?q=johndoe&limit=5&offset=0
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/computers/user_activity?q=johndoe&limit=5&offset=0'
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/computers/user_activity?q=johndoe&limit=5&offset=0'
Actual Response
content-type: application/json transfer-encoding: chunked status: 200 OK x-ratelimit-limit: 3000 x-ratelimit-reset: 901 strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000 referrer-policy: strict-origin-when-cross-origin x-ratelimit-remaining: 2863 x-permitted-cross-domain-policies: none x-download-options: noopen etag: W/"024daee07e1357aa63405bd24835c593" 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/computers/user_activity?q=johndoe&limit=5&offset=0"
},
"results": {
"total": 0,
"current_item_count": 0,
"index": 0,
"items_per_page": 5
}
},
"data": [
]
}