ListRevisions

Lists revisions and folders for a given path.

Authentication Methods


  1. With a username and password
  2. Using Kerberos
Input Parameter Type Description
Token String Security token
FileserverName String Fileserver name (NMSA)
Path String Path to a directory or file
Output Parameter Type Description
Success Status Returns status code
CURL EXAMPLE
curl -v 'https://storage.example.com/storage/api.php?Token=ms28lbbsql627i3ftmoq2j00q2&Task=ListRevisions&FileserverName=nmsa000002&Path=/directory/'
RESPONSE

When listing a folder:

<Response>
    <Status>1</Status>
    <Message></Message>
    <FileInfos> 
        <FileInfo>
            <Name>abc.txt</Name>
            <Path>/directory/</Path>
            <IsFolder>false</IsFolder> 
        </FileInfo>             
        <FileInfo>
            <Name>testdirectory</Name>
            <Path>/directory/</Path>
            <IsFolder>true</IsFolder>
            <LastModifiedDstamp>1247990719</LastModifiedDstamp>            
        </FileInfo>
    </FileInfos>
</Response>

When listing a file:

<Response>
    <Status>1</Status>
    <Message></Message>
    <FileInfos> 
        <FileInfo>
            <Name>abc.txt</Name>
            <Path>/directory/</Path>
            <IsFolder>false</IsFolder> 
            <Revisions>
                <Revision>
                    <Date>1266481211.337534</Date>
                  <LastModifiedDstamp>1265685685</LastModifiedDstamp>
                    <Size>345</Size>
                    <Comment>Daily Revision</Comment>
                    <AllowRemove>true</AllowRemove>
                </Revision>
            </Revisions>
        </FileInfo>
    </FileInfos>
</Response>