To extract account details from any StorageServer or MirrorServer using REST, just specify the right URL. Based on the login credentials you supply, the call will return either everything (for the admin account) or a subset of the data (for any mirror accounts). The details will also contain the mirror account which was used to mirror the data (MirrorUser field).
The result can be in CSV, XML,JSON or TXT format depending on how you specify the URL:
https://192.168.1.1:8443/api/storage/accounts.csv https://192.168.1.1:8443/api/storage/accounts.xml https://192.168.1.1:8443/api/storage/accounts.json https://192.168.1.1:8443/api/storage/accounts.txt
You can also narrow down the results based on one or several fields, e.g.
https://192.168.1.1:8443/api/storage/accounts.txt?MirrorUser=CompanyXYZ https://192.168.1.1:8443/api/storage/accounts.txt?AccountName=John.Smith&AccountGroup=Testgroup
Example TXT output
AccountGroup=Testgroup AccountGuid=0073026f-9dc2-4ae6-9378-156ccf901b53 AccountName=John.Smith AccountType=Backup Active=True BackupCount=23 ClientVersion=8.15.1106.12441 HomeSSId=43160a5b7c8 HSMExportedCount=0 HSMExportedSize=0 LastBackupDate=2015-12-09T00:00:04 Limit=10737418240 MirrorUser=admin OnDisk=220441606 ProtectedSizeAllBackups=12689789588 ProtectedSizeLastBackup=551729980 SelectedSize=551729152 SourceSSId=43160a4bb7c8
To get the results for a specific mirror account, you can either use the specific mirror account credentials to make the call, or use the admin credentials and filter on the MirrorUser field.
Comments
0 comments
Please sign in to leave a comment.