get https://ioe.droplit.io/v0/api/zones//services
Details
List the service properties of all devices in a zone.
An account token, server token, or user token may be used to run this endpoint.
Parameters
path
- id (required): The ID of a zone.
Responses
200
{
"items": [
{
"id": "ZONE-ID",
"service": "SERVICE-NAME",
"index": "SERVICE-INDEX",
"property": "SERVICE-PROPERTY-NAME",
"value": "SERVICE-PROPERTY-VALUE",
"ecosystemId": "ECOSYSTEM-ID",
"modifiedAt": "YYYY-MM-DD HH:MM:SS ENCODED"
}
]
}
400
- Zone Invalid: The standard error structure defines this error as invalid parameters. In this context, it means that the ID given for a zone was not valid.
- No Query String Allowed: The standard error structure defines this error as invalid parameters, with additional parameters in the query string. In this context, it means that no query string is allowed at all when calling this endpoint.
404
- Zone Not Found: This error means that a zone with the given ID was not found, although it existed at some point.
Examples
HTTP
GET https://ioe.droplit.io/api/zones/ZONE-ID/services HTTP/1.1
authorization: TOKEN
Droplit Console
droplit zone get-all ZONE-ID
Droplit SDK
droplit.zones.getAllServiceProperties("ZONE-ID");