Check file upload

Use this API call to check the available storage on the host before uploading apps.

HTTP method

GET

HOST URL

https://instance-name

API call URL

/fmws/Secure/DatabaseFilename

HTTP header
  • x-fms-command: The command for the API call. For this header, "checkfileupload" is the only value allowed.
  • x-fms-session-key (string): The session key returned from the Authentication API call.
Body Empty
Parameters None
Response

The available storage on the remote containers folder and the database folder, and the API call result code.

For example:

Copy
{
  "data" : {
    "bytesFreeOnRCFolder" : 7086528102,
    "bytesFreeOnVolume" : 7086528102
  },
  "result" : 0
}
Response header

Check the response header for any error codes.

For example:

Copy
"x-FMS-Result" : 9
"x-FMS-Error" : (9): Access was denied