Get Device Accounts
Get a list of device accounts.
Parameters
Parameter | Description |
---|---|
Filter | A JSON filter expression specifying the items to return. |
Limit | Maximum number of items to return (1–1000). |
Offset | Zero based offset to start from. |
Return All Pages | Automatically fetch all resources, page by page. |
Sort | Sort ordering for returned items (default "-id"). |
Example Output
{
"_links": {
"self": {
"href": "https://clearpass-host/api/device?calculate_count=false&offset=0&limit=25&sort=-id&filter=%7B%7D"
},
"first": {
"href": "https://clearpass-host/api/device?calculate_count=false&offset=0&limit=25&sort=-id&filter=%7B%7D"
}
},
"_embedded": {
"items": [
{
"id": "3001",
"username": "00-1A-2B-3C-4D-5E",
"start_time": 1696929372,
"expire_time": 1728465372,
"sponsor_name": "admin",
"sponsor_profile": "1",
"enabled": true,
"current_state": "active",
"notes": "",
"role_name": "[Guest]",
"role_id": 2,
"mac": "00-1A-2B-3C-4D-5E",
"mac_auth": true,
"source": "mac_create",
"do_expire": "1",
"no_portal": "1",
"create_time": 1696929372,
"no_password": "1",
"remote_addr": "85.64.17.207",
"visitor_name": "John's Laptop",
"airgroup_enable": "1",
"airgroup_shared": "",
"expire_postlogin": "0",
"simultaneous_use": "1",
"airgroup_shared_role": "",
"airgroup_shared_time": "",
"airgroup_shared_user": "admin",
"sponsor_profile_name": "Super Administrator",
"airgroup_shared_group": "",
"expired_notify_status": "1",
"airgroup_shared_location": "",
"_links": {
"self": {
"href": "https://clearpass-host/api/device/3001"
}
}
}
]
}
}
Workflow Library Example
Get Device Accounts with Clearpass and Send Results Via Email
Preview this Workflow on desktop