Robot Web Services
3HAC050973-001 Revision:K, Application Manual - Robot Web Services
Get File Service Resources

Returns a list of File System root resources.

The Root of the File System consists of devices in the File System such as C , D etc. drive on VC and /hda0, /bd:02 etc. on RC.

The Root also supports environment variables:

The following environment variables are supported:

  • Home
  • Release
  • System
  • Temp
  • Options
  • Backup
  • Internal
  • Syspar

    Within the URI, the environment variables are specified in all small case and preceded with the dollar $ character e.g. $home, $temp etc The list contains a list of all devices in file system, their type, available free space and total capacity of each device.

URL

/fileservice

Method

GET

URL Params

None

See Common URL parameters

Data Params

None

Success Response

HTTP_OK(200)

Example Response

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>File Service</title> 
        <base href="http://localhost/fileservice/" />     
    </head>
    <body>
        <div class="state">   
           <a href="" rel="self"></a>      
           <ul>
               <li class="fs-device" title="C%3a">        
                   <a href="" rel="parent"></a>
                   <a href="C%3a" rel="self"></a>   
                   <span class="fs-device-type">fixed</span>
                   <span class="fs-free-space">4284162048</span>
                   <span class="fs-total-space">128033222656</span>
                   <span class="fs-enabled">true</span>
                   <span class="fs-readonly">false</span>
               </li>
               <li class="fs-device" title="T%3a">        
                   <a href="" rel="parent"></a>
                   <a href="T%3a" rel="self"></a>   
                   <span class="fs-device-type">fixed</span>
                   <span class="fs-free-space">1819648000</span>
                   <span class="fs-total-space">118099013632</span> 
                   <span class="fs-enabled">true</span>
                   <span class="fs-readonly">false</span>
               </li>
               <li class="fs-device" title="V%3a">        
                   <a href="" rel="parent"></a>
                   <a href="V%3a" rel="self"></a>   
                   <span class="fs-device-type">fixed</span>
                   <span class="fs-free-space">1819648000</span>
                   <span class="fs-total-space">118099013632</span> 
                   <span class="fs-enabled">true</span>
                   <span class="fs-readonly">false</span>
               </li>
               <li class="fs-device" title="Z%3a">        
                   <a href="" rel="parent"></a>
                   <a href="Z%3a" rel="self"></a>   
                   <span class="fs-device-type">fixed</span>
                   <span class="fs-free-space">1244702355456</span>
                   <span class="fs-total-space">3583720714240</span>
                   <span class="fs-enabled">true</span>
                   <span class="fs-readonly">false</span>
               </li>
           </ul>
        </div>
    </body>
</html>

Resources

  • fs-device
    • fs-device-type One of fixed, removable, ramdisk, remote or unknown.
    • fs-total-space Total capacity of the media in bytes
    • fs-free-space Available free space on the media in bytes.
    • fs-enabled If the device is accessible, typically if you add a device before you set it as enabled
    • fs-readonly TRUE if read only else FALSE

Error Response

UNAUTHORIZED(401),NOT_FOUND(404)

See Robot controller return codes

Sample Call

Get a list of root resources

curl --digest -u "Default User":robotics "http://localhost/fileservice"

Notes

  • Though root supports environment variables these are not listed in the returned response.
  • Environment variables are only allowed directly under the root URI i.e. /fileservice/$home
  • Supported in bootserver mode