Appendix B: WebAPI
WebAPI is a cloud function API allowing access to configuration and status information of xPico
Export Status Group
An HTTP POST request can be sent to the device to retrieve status information.
Protocol: HTTP
Method: Post
URL: http://<hostname>/export/status
Parameters:
optionalLine: Optional line index for line oriented XML groups
optionalGroupList: Optional list of XML groups separated by semicolon. If omitted, all status groups will be returned.
CURL example:
curl
Javascript example: myXmlhttprequest.open(
"POST",
"/export/status", true
);
request.send(
"optionalGroupList=Device"
);
Export Configuration Group
An HTTP POST request can be sent to the device to retrieve configuration information. Protocol: HTTP
Method: Post
URL: http://<hostname>/export/config
Parameters:
optionalLine: Optional line index for line oriented XML groups
optionalGroupList: Optional list of XML groups separated by semicolon. If omitted, all configuration groups will be returned.
xPico® | 100 |