Parameters doesn't work with REST API

I am trying to get the folder completion status of a device using the REST API. The below command works but the output is of no use as it doesn’t contain any device or folder information.

curl -X GET -H "X-API-Key: " http://127.0.0.1:8384/rest/db/completion {“completion”:0,“globalBytes”:0,“needBytes”:0,“needDeletes”:0}

I tried using the device & folder parameter, but every time I get a message that curl: No match.

curl -X GET -H "X-API-Key: " http://127.0.0.1:8384/rest/db/completion?device=deviceID&folder=foldername

What am I doing wrong here? or is there any other better way to get the folder completion status of a device.

Appreciate your help.

Thanks

You need to quote the url as & is a special character in the shell to send it to the background.

Potentially also the question mark as it may be interpreted as a glob pattern by your shell.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.