List all endpoints for a group
The list all endpoint for a group request allows the client applications to retrieve a list of all registered and deregistered device serial numbers by specifying the startOffset and endOffset values. It also allows the client application to retrieve the count of all devices by setting the startOffset and endOffset values to 0.
If fetchAll parameter is set to true, the application retrieves all the devices (registered, deregistered and unregistered). By default, fetchAll parameter is set to false. If it is left unchanged, the application retrieves the device serial numbers that are attached to a particular group.
To use this API, the user must have access to the devices of the specified group.
List all endpoints for a group describes the API structure for List Endpoints requests.
Title | List all endpoints for a group |
---|---|
URL |
http://<impact_url>/m2m/endpoints?startOffset=<>&endOffset=<>&groupName=<>&fetchAll=true |
Method | GET |
Content-Type | application/json |
URL Params |
The URL parameters are:
|
Data Params |
None |
Success Code |
Response Code: 200 |
Error Code |
401 : Unauthorized 403 : Forbidden 404 : Not Found |
Sample Call | Curl command for fetchAll is
true Response
Body: Curl
command for fetchAll is false
|
Notes |
With this request, client applications can also retrieve the total number of devices present in a group by setting the startOffset and endOffset parameters to 0. In this case, IMPACT IoT does not return any device serial number. Example:
|