ListRevisions

Lists revisions and folders for a given path.

Authentication Methods


  • With a username and password
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

EXAMPLES

curl '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>
                    <VersionID>1645016309.004288</VersionID>
                </Revision>
            </Revisions>
        </FileInfo>
    </FileInfos>
</Response>