Controller: Vault Management: GetFileservers
GetFileservers
Returns the fileservers from the logged in account
When returning billing info is on in the api, it will also return a section ‘BillingInfo’ for each fileserver. This returns if a fileserver is paid or not.
Authentication Methods
- With a username and password
- With AMS username and password
Input Parameter | Type | Description |
---|---|---|
Token* | String | Security token |
String | Only needed with AMS Security Token | |
FilterBy | Array | Vault Label or Name |
FilterValue | Array | Vault Label or NMSA |
Output Parameter | Type | Description |
---|---|---|
FileServers | FileServer[] | Array of fileservers accessible by the account |
*required
Examples
Example Without Filtering
curl 'https://example.com/ctrller/api.php?Token=rrc1d3ntb53tt6b2vhail6rdtrsxov3v&Task=GetFileservers'
Response:
<Response>
<Status>1</Status>
<Message></Message>
<Fileservers>
<Fileserver>
<Name>nmsa000002</Name>
<Label>fileserverlabel1</Label>
<InstallStatus>Installed</InstallStatus>
<SendUserList>true</SendUserList>
<Quota>1024</Quota>
<QuotaWarningLevel>512</QuotaWarningLevel>
<OwnerEmail>owner@example.com</OwnerEmail>
<AdminEmail>admin@example.com</AdminEmail>
<OpenEmail2Folder>true</OpenEmail2Folder>
<StorageApiUrl>https://example.com/storage/api.php</StorageApiUrl>
<WebDAVUrl>https://webdav.example.com</WebDAVUrl>
<Favorite>true</Favorite>
</Fileserver>
<Fileserver>
<Name>nmsa000004</Name>
<Label>fileserverlabel2</Label>
<InstallStatus>Installed</InstallStatus>
<SendUserList>true</SendUserList>
<Quota>1024</Quota>
<QuotaWarningLevel>512</QuotaWarningLevel>
<OwnerEmail>owner@nomadesk.com</OwnerEmail>
<OpenEmail2Folder>true</OpenEmail2Folder>
<StorageApiUrl>https://example.com/storage/api.php</StorageApiUrl>
<WebDAVUrl>https://webdav.example.com</WebDAVUrl>
</Fileserver>
</Fileservers>
</Response>
Example With Filtering
curl 'https://example.com/ctrller/api.php?Token=rrc1d3ntb53tt6b2vhail6rdtrsxov3v&Task=GetFileservers&FilterBy[]=Label&FilerValue=fileserverlabel1'
Response
<Response>
<Status>1</Status>
<Message></Message>
<Fileservers>
<Fileserver>
<Name>nmsa000002</Name>
<Label>fileserverlabel1</Label>
<InstallStatus>Installed</InstallStatus>
<SendUserList>true</SendUserList>
<Quota>1024</Quota>
<QuotaWarningLevel>512</QuotaWarningLevel>
<OwnerEmail>owner@example.com</OwnerEmail>
<AdminEmail>admin@example.com</AdminEmail>
<OpenEmail2Folder>true</OpenEmail2Folder>
<StorageApiUrl>https://example.com/storage/api.php</StorageApiUrl>
<WebDAVUrl>https://webdav.example.com</WebDAVUrl>
<Favorite>true</Favorite>
</Fileserver>
</Fileservers>
</Response>