Description | Get device details of devices based on a particular device type. |
---|
Resource Path | /dashboard/devices-with-details |
---|
URL | /mdm-admin/dashboard/devices-with-details
|
---|
HTTP Method | GET |
---|
Request/Response Format | application/json |
---|
cURL command | Filter the device details using the query parameters given below: Code Block |
---|
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/dashboard/devices-with-details -d “pagination-?pagination-enabled=<TRUE/FALSE>”FALSE> |
Example: Code Block |
---|
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer c148a833a9c3d30bb5197788eaad5541" -k -v https://localhost:9443/mdm-admin/dashboard/devices-with-details -d “pagination?pagination-enabled=false”false |
|
---|
Sample output | Code Block |
---|
> GET /mdm-admin/dashboard/devices-with-details?pagination-enabled=false HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:9443
> Accept: */*
> Content-Type: application/json
> Authorization: Bearer 9a5212a2c170f71990e5be8f8a1a4430
>
< HTTP/1.1 200 OK
< Cache-Control: private
< Expires: Thu, 01 Jan 1970 05:30:00 IST
< Date: Mon, 09 May 2016 13:26:53 GMT
< Content-Type: application/json
< Content-Length: 496
* Server WSO2 Carbon Server is not blacklisted
< Server: WSO2 Carbon Server
<
* Connection #0 to host localhost left intact
[{"context":"filtered-devices-with-details","data":[{"deviceId":1,"platform":"android","ownershipType":"BYOD","connectivityStatus":"REMOVED"},{"deviceId":2,"platform":"android","ownershipType":"COPE","connectivityStatus":"ACTIVE"},{"deviceId":3,"platform":"android","ownershipType":"COPE","connectivityStatus":"ACTIVE"},{"deviceId":4,"platform":"ios","ownershipType":"BYOD","connectivityStatus":"ACTIVE"},{"deviceId":5,"platform":"windows","ownershipType":"BYOD","connectivityStatus":"ACTIVE"}]}] |
|
---|
Sample JSON Output Definition | Code Block |
---|
[
{
"context":"Filtered-devices-with-details",
"data":[
{
"deviceId":1,
"platform":"android",
"ownershipType":"BYOD",
"connectivityStatus":"REMOVED"
},
{
"deviceId":2,
"platform":"android",
"ownershipType":"COPE",
"connectivityStatus":"ACTIVE"
},
{
"deviceId":3,
"platform":"android",
"ownershipType":"COPE",
"connectivityStatus":"ACTIVE"
},
{
"deviceId":4,
"platform":"ios",
"ownershipType":"BYOD",
"connectivityStatus":"ACTIVE"
},
{
"deviceId":5,
"platform":"windows",
"ownershipType":"BYOD",
"connectivityStatus":"ACTIVE"
}
]
}
] |
Parameter | Definition |
---|
context | Defines the attribute to which the data is being populated. In this use case the context is Filtered-devices-with-details . | data | Defines the data received. In this use case, the data will be filtered and paginated (if pagination is enabled). | deviceId | The ID of the device. | platform | Defines the device platform of each device, such as iOS, Android or Windows. | ownershipType | Defines the the device ownership type, such as BYOD or COPE. | connectivityStatus | Defines the status of the device, such as if the device is active, inactive or disenrolled from WSO2 EMM. |
|
---|
|