Cbs Api v9
Cbs Api v9
API Guide
Version 9
16 April 2024
The use and copying of this product is subject to a license agreement. Any other use is prohibited. No part of this publication may be reproduced,
transmitted, transcribed, stored in a retrieval system or translated into any language in any form by any means without prior written consent of
Ahsay Systems Corporation Limited. Information in this manual is subject to change without notice and does not represent a co mmitment on the
part of the vendor, Ahsay Systems Corporation Limited does not warrant that this document is error free. If you find any erro rs in this document,
please report to Ahsay Systems Corporation Limited in writing.
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
Trademarks
Ahsay, Ahsay Cloud Backup Suite, Ahsay Online Backup Suite, Ahsay Offsite Backup Server, Ahsay Online Backup Manager, Ahsay A -Click Backup,
Ahsay Replication Server, Ahsay BackupBox Firmware, Ahsay Universal Backup System and Ahsay NAS Client Utility, Ahsay Mobile are trademar ks
of Ahsay Systems Corporation Limited.
Amazon S3 is a registered trademark of Amazon Web Services, Inc., or its affiliates.
Apple and Mac OS X, macOS, and iOS are registered trademarks of Apple Computer, Inc.
Dropbox is a registered trademark of Dropbox Inc.
Google Cloud Storage, Google Drive, Google Authenticator, and Android are registered trademarks of Google Inc.
Wasabi Hot Cloud Storage is a registered trademark of Wasabi Technologies Inc.
Backblaze B2 Cloud Storage is a registered trademark of Backblaze Inc.
MariaDB is a registered trademark of MariaDB Corporation AB.
Lotus, Domino, and Notes are registered trademark of IBM Corporation.
Microsoft Windows, Microsoft Exchange Server, Microsoft SQL Server, Microsoft Hyper-V, Microsoft Azure, OneDrive, OneDrive for Business,
Microsoft Authenticator, and Microsoft Office 365 are registered trademarks of Microsoft Corporation.
Oracle, Oracle Database, Java and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
OpenJDK is a registered trademark of Oracle America, Inc.
Rackspace and OpenStack are registered trademarks of Rackspace US, Inc.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo and JBoss are registered trademarks of Red Hat, Inc. www.redhat.com in the U.S. and
other countries.
Linux is a registered trademark of Linus Torvalds in the U.S. and other countries.
Ubuntu is a registered trademark of Canonical Ltd.
Debian is a registered trademark of Software in the Public Interest, Inc.
Rocky is a registered trademark of Rocky Brands.
ShadowProtect is a registered trademark of StorageCraft Technology Corporation.
VMware ESXi, vCenter, and vSAN are registered trademarks of VMware, Inc.
Tibero is a registered trademark of TmaxData Co., Ltd.
All other product names are registered trademarks of their respective owners.
Disclaimer
Ahsay Systems Corporation Limited will not have or accept any liability, obligation or responsibility whatsoever for any loss , destruction or
damage (including without limitation consequential loss, destruction or damage) however arising from or in respect of any use or misuse of
reliance on this document. By reading and following the instructions in this document, you agree to accept unconditionally th e terms of this
Disclaimer and as they may be revised and/or amended from time to time by Ahsay Systems Corporation Limited without prior notice to you.
www.ahsay.com
Revision History
Date Description Version
05 September 2023 ▪ Added Return Values for Deduplication (DedupeEnabled, 9.7
DedupeOriginalSize, DedupeSaving) to
GetBackupJobReport and GetBackupJobReportSummary
API.
▪ Added TotalStatistics JSON Object to GetUser API
▪ Added RecycleBinSettingsList JSON Object (Preempted
Value, table) to ListPolicyGroups API
▪ Added RecycleBinSettings JSON Object table to
UpdateBackupSet API
▪ Added ModuleUsage JSON Object table to GetBackupSet
API
▪ Added ModuleUsage JSON Object table to GetUser API
▪ Added ModuleUsage JSON Object table to ListBackupSets
API
▪ Added ModuleUsage JSON Object table to ListUsers API
16 April 2024 ▪ Added new Parameters for Linux Bare Metal support to 9.9
AddBackupSet, AddUser, UpdateSystemSetting, and
UpdateUser APIs
▪ Added new APIs GetRestoreDrillJobReportSummary and
ListRestoreDrillJobs under Report section
▪ Added application keys for Dropbox for Business to
ListPolicyGroups and UpdatePolicyGroup APIs
▪ Added new Parameters for Tibero Database Server support
to AddBackupSet, AddUser, GetBackupSet,
GetSystemSetting, ListUsers, RunBackup,
UpdateBackupSet, UpdateSystemSetting, and UpdateUser
APIs
▪ Added parameters and new section tables to
ListPolicyGroups and UpdatePolicyGroup for Tibero
Database Server support
▪ Updated ReportSettingsBean section for GetSystemSetting
and UpdateConfig APIs
www.ahsay.com
TABLE OF CONTENTS
1 INTRODUCTION ............................................................................................................................................... 1
1.1 OVERVIEW........................................................................................................................................... 2
1.2 LIMITATIONS AND RECOMMENDATIONS............................................................................................. 3
1.3 API ACCESS ACCOUNT TYPES ............................................................................................................... 4
READ-ONLY API USER .......................................................................................................................... 4
1.4 2FA ONE-TIME PASSCODE PARAMETER ............................................................................................... 6
1.5 IP RESTRICTIONS.................................................................................................................................. 7
1.6 TROUBLESHOOTING ............................................................................................................................ 9
ERRONEOUS CHARACTERS (TRAILING SPACES) .................................................................................... 9
SYNTAX ERRORS .................................................................................................................................. 9
PARAMETER NAMES TYPO ERRORS ................................................................................................... 11
EXTRA KEY INPUTS ............................................................................................................................. 11
ESCAPE CHARACTER ERRORS ............................................................................................................. 12
INCORRECT API URL PATH ................................................................................................................. 12
2 SYSTEM API ................................................................................................................................................... 14
2.1 SYSTEM ............................................................................................................................................. 15
GETBUILDINGSTATUS ........................................................................................................................ 15
GETDATAMIGRATIONPROGRESS........................................................................................................ 18
GETREPLICATIONSTATUS ................................................................................................................... 20
GETSYSTEMSTATUS ........................................................................................................................... 25
2.2 SYSTEM CONFIG ................................................................................................................................ 33
UPDATESERVERCONFIG (V1), UPDATESYSTEMSETTINGS (V2) – BACKUP SERVER ............................... 33
UPDATECONFIG – BACKUP SERVER .................................................................................................... 39
GETSYSTEMSETTING (V1, V2) – BACKUP SERVER ............................................................................... 45
UPDATEREPLICATIONCONFIG ............................................................................................................ 53
UPDATELICENSE ................................................................................................................................ 57
GETLICENSE (v1, v2) ........................................................................................................................... 59
GETREPLICATIONMODE ..................................................................................................................... 65
ADDPREDEFINEDDESTINATION .......................................................................................................... 67
2.3 SYSTEM USER .................................................................................................................................... 82
ADDSYSUSER ..................................................................................................................................... 82
UPDATESYSUSER ............................................................................................................................... 86
www.ahsay.com
REMOVESYSUSER .............................................................................................................................. 90
AUTHSYSTEMUSER ............................................................................................................................ 92
LISTSYSTEMUSERS ............................................................................................................................. 94
2.4 GROUP POLICY .................................................................................................................................. 97
ADDUSERGROUP ............................................................................................................................... 97
DELETEPOLICYGROUP ...................................................................................................................... 100
DELETEPOLICYGROUPFROMUSERGROUP ........................................................................................ 101
DELETEUSERFROMUSERGROUP ....................................................................................................... 103
DELETEUSERGROUP ......................................................................................................................... 105
LISTPOLICYGROUPS (V1, V2) ............................................................................................................ 107
LISTUSERGROUPS ............................................................................................................................ 150
MODIFYUSERGROUP ....................................................................................................................... 153
UPDATEPOLICYGROUP (V1, V2) ....................................................................................................... 155
ADDPOLICYGROUP .......................................................................................................................... 185
ADDPOLICYGROUPTOUSERGROUP .................................................................................................. 189
3 USER API...................................................................................................................................................... 193
3.1 USER ............................................................................................................................................... 193
LISTUSERS (V1, V2) .......................................................................................................................... 193
AUTHUSER ....................................................................................................................................... 202
RUNSINGLEUSERREBUILD ................................................................................................................ 204
GETSINGLEUSERREBUILDSTATUS ..................................................................................................... 206
GETUSERSTORAGESTAT ................................................................................................................... 208
UPDATEUSERPROFILE (V1), UPDATEUSER (V2) ................................................................................ 213
ADDCONTACT .................................................................................................................................. 227
ADDUSER (v1, v2) ............................................................................................................................ 229
GETUSER (V1, V2) ............................................................................................................................ 236
MODIFYUSERSTATUS ....................................................................................................................... 254
REMOVEUSER .................................................................................................................................. 256
SENDFORGOTPWDEMAIL ................................................................................................................ 257
GETUSERSTATUS ............................................................................................................................. 259
GETSERVERRUNJOBSTATUS ............................................................................................................. 266
UPDATEAUA .................................................................................................................................... 268
3.2 BACKUP SET .................................................................................................................................... 271
UPDATEBACKUPSET (V1, V2) ........................................................................................................... 271
www.ahsay.com
ADDSELECTSRC ................................................................................................................................ 303
REMOVESELECTSRC ......................................................................................................................... 306
ADDDESELECTSRC ............................................................................................................................ 308
REMOVEDESELECTSRC ..................................................................................................................... 311
ADDSCHEDULE (V1,V2) .................................................................................................................... 313
UPDATESCHEDULE (V1, V2) ............................................................................................................. 320
REMOVESCHEDULE.......................................................................................................................... 326
ADDFILTER ....................................................................................................................................... 328
UPDATEFILTER ................................................................................................................................. 330
REMOVEFILTER ................................................................................................................................ 333
REMOVEBANDWIDTHCONTROL ....................................................................................................... 335
ADDBACKUPSET............................................................................................................................... 337
ADDALLOWEDIP .............................................................................................................................. 345
REMOVEALLOWEDIP ....................................................................................................................... 347
DELETEBACKUPDATA ....................................................................................................................... 349
DELETEBACKUPFILE ......................................................................................................................... 350
DELETEBACKUPSET .......................................................................................................................... 351
GETBACKUPJOBPROGRESS .............................................................................................................. 354
GETBACKUPSET (V1, V2) .................................................................................................................. 357
LISTBACKUPFILES ............................................................................................................................. 372
LISTBACKUPJOBMODE ..................................................................................................................... 375
LISTBACKUPJOBS ............................................................................................................................. 377
LISTBACKUPJOBSTATUS ................................................................................................................... 379
LISTBACKUPSETS.............................................................................................................................. 382
RUNBACKUP .................................................................................................................................... 386
ADDPRECOMMAND ......................................................................................................................... 389
UPDATEPRECOMMAND ................................................................................................................... 391
REMOVEPRECOMMAND .................................................................................................................. 394
ADDPOSTCOMMAND ...................................................................................................................... 396
UPDATEPOSTCOMMAND ................................................................................................................. 398
REMOVEPOSTCOMMAND................................................................................................................ 401
LISTRESTOREJOBS ............................................................................................................................ 402
LISTRESTOREJOBSTATUS .................................................................................................................. 404
LISTRESTOREDRILLJOBS ................................................................................................................... 407
www.ahsay.com
3.3 REPORT ........................................................................................................................................... 409
GETBACKUPJOBREPORT................................................................................................................... 409
GETBACKUPJOBREPORTSUMMARY.................................................................................................. 415
GETRESTOREJOBREPORT ................................................................................................................. 418
GETRESTOREDRILLJOBREPORTSUMMARY........................................................................................ 422
4 RPS API ........................................................................................................................................................ 426
4.1 RPS RECEIVER .................................................................................................................................. 426
LISTRECEIVER ................................................................................................................................... 426
UPDATERECEIVERS .......................................................................................................................... 431
REMOVERECEIVER ........................................................................................................................... 436
5 RDR API ....................................................................................................................................................... 438
5.1 RDR LICENSE .................................................................................................................................... 438
UPDATELICENSE .............................................................................................................................. 438
5.2 SERVER CONFIG ............................................................................................................................... 440
UPDATESERVERCONFIG ................................................................................................................... 440
CONTACT AHSAY .................................................................................................................................................. 443
SUPPORT ..................................................................................................................................................... 443
DOCUMENTATION ....................................................................................................................................... 443
APPENDIX – OVERVIEW ....................................................................................................................................... 444
CONVENTIONS ............................................................................................................................................. 444
DEFINITIONS, ACRONYMS, AND ABBREVIATIONS ......................................................................................... 445
SUPPORTED LANGUAGE CODE ..................................................................................................................... 446
SUPPORTED TIMEZONES .............................................................................................................................. 447
www.ahsay.com
1 INTRODUCTION
AhsayCBS contains a set of APIs (Application Programming Interface), which allows you to
integrate your own or external applications (e.g. billing system or automated registration
system) with AhsayCBS.
This guide will mainly discuss how to invoke API requests with sample Inputs and Outputs for
the specific API being discussed.
API URLs
API Parameters
Return Values
JSON Objects
NOTE
All examples as shown for the discussed APIs in future chapters are all based on the latest API versions (V2).
{
“SysUser”:”APluser”,
“SysPwd”:”my_password”,
“Hostname”:”mybackup.com”,
…
:
:
:
}
NOTE
For further reference on the JSON syntax or documentation, please refer to:
JSON - Introduction
What is JSON?
More examples are available in the following API sections.
New features introduced in AhsayCBS version 9 will not be supported by APIs written and based
on Ahsay version 6 XML formatting. Continued use of the XML API may yield unexpected
results.
If you run multiple AhsayCBS servers with varying AhsayCBS versions (i.e. CBS v7.17, v8.5, and
v9.1 in your environment), when developing your own application that calls Ahsay API requests,
we suggest you use API to check the AhsayCBS version, then call the corresponding API request
for that AhsayCBS version.
With some API methods, there may be two versions: “v1” and “v2”. For features related to
Quota Management, v2 was produced to handle these features initially introduced in AhsayCBS
v7.15.6.38. If your AhsayCBS is higher than this version, you should already be using V2 API. If
your application is requesting data from AhsayCBS v7.15.6.38 or earlier, then continue to use
V1 API.
There may be other enhancements which have deprecated other API, for example
“GetLicense.do” in AhsayCBS v8.3.
When testing your API, ensure that you have all parameters and / or settings setup on
your AhsayCBS.
Please arrange your test case in a logical sequence, such as creating a backup set before
attempting to Modify / Delete a backup set with API.
NOTE
This Ahsay v9 API Guide has removed the “v1” API methods deprecated by v7.15.6.38. For details regarding
“v1” API, please request older API Guide(s) from Ahsay Support.
For all APIs outlined in this guide with parameters, “SysUser” and “SysPwd”, they are the
username and password of any of the following types of “System User”:
Admin
API User
For some APIs, as listed in the following chapter in this guide, API with parameters
“SysUser” and “SysPwd,” are the username and password of the following type of
“System User”:
NOTE
Sub-Admin account types are not permitted to make any API request.
System API
API API Methods
System GetBuildingStatus GetReplicationStatus
GetDataMigrationProgress GetSystemStatus
NOTE
For more information on each API and API Method, you may jump ahead to Chapters 2, 3, and 4
respectively.
Parameter Description
OnetimePasscode One-time passcode generated from an authenticator app. Required if 2FA is
enabled for SysUser or if destination to be added is immutable.
The one-time passcode to be used for the Parameter is the same passcode as shown on the
registered authenticator app. As these codes expire and change every few seconds, the code
input in the “OnetimePasscode” parameter also changes.
TO MAKE USE OF THIS SPECIAL PARAMETER, SEE API CALL SAMPLE BELOW :
By default, AhsayCBS accepts and handles API requests from all IP addresses. To avoid being
exploited by hackers from an unauthorized network, you will need to setup IP filters.
%CBS_HOME%\webapps\cbs\WEB-INF\web.xml
%CBS_HOME%\webapps\rps\WEB-INF\web.xml
%CBS_HOME%\webapps\rdr\WEB-INF\web.xml
%CBS_HOME%\webapps\obs\WEB-INF\web.xml
NOTE
%CBS_HOME%\webapps\obs\WEB-INF\web.xml (“/obs/api/json/” API)
Cannot be fully restricted because it is used by the OBM and ACB Client agent
Can have restrictions if you include the range for all your user’s IP subnets
<filter>
<filter-name>ApiAccess</filter-name>
<filter-class>com.ahsay.obs.www.IPFilter</filter-class>
<init-param>
<param-name>Range1</param-name>
<param-value>localhost</param-value>
</init-param>
<init-param>
<param-name>Range2</param-name>
<param-value>0.0.0.0-255.255.255.255</param-value>
</init-param>
</filter>
<filter>
<filter-name>ApiAccess</filter-name>
<filter-class>com.ahsay.obs.www.IPFilter</filter-class>
<init-param>
<param-name>Range1</param-name>
<param-value>localhost</param-value>
</init-param>
<init-param>
<param-name>Range2</param-name>
<param-value>192.168.1.1-192.168.1.255</param-value>
</init-param>
</filter>
Please note that you can configure more than two IP ranges by adding additional init
parameters (i.e. “Range3”, “Range4”, and so on) to the filter XML tag. For example:
<filter>
<filter-name>ApiAccess</filter-name>
<filter-class>com.ahsay.obs.www.IPFilter</filter-class>
<init-param>
<param-name>Range1</param-name>
<param-value>localhost</param-value>
</init-param>
<init-param>
<param-name>Range2</param-name>
<param-value>192.168.1.1-192.168.1.255</param-value>
</init-param>
<init-param>
<param-name>Range3</param-name>
<param-value>192.168.2.1-192.168.2.255</param-value>
</init-param>
</filter>
Reason for the below error is the trailing space following “GetLicense.do “
“https://CBS.EXAMPLE.COM/obs/api/json/2/GetLicense.do ””
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY12456!@#$%”
}
Output
404 NOT FOUND
SYNTAX ERRORS
SAMPLE 1
SAMPLE 2
The input data type for AdminContacts is an array. Arrays must be set in square brackets “[ ]”.
Correct input
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“SendBccReports”:true,
“AdminContacts”:[{“Name”:”New1”,”Email”:[email protected]}]
}
Output
{
“Status:”OK”
}
Parameter names are case sensitive. Ensure that all parameter names are in the correct case, as
outlined in this document.
Correct input
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
Output
{
“Status”:”OK”
}
Output
{
“Status”:”Error”,
“Message”:”[Error] JSON Input Syntax is incorrect!”,
“ExptType”:”java.lang.Exception”
}
Make sure your values are specific for JAVA characters (e.g. “\\” for escape)
AddSelectSrc.do API Input – Character Backlash ( \ ) not escaped ( \\ )
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“LoginName”:”opendirect”,
“BackupSetID”:”1497925931498”,
“NewSelectedSrc”:{“Src”:”C:\\SelectSrcTestOBM”}
}
Output
{
“Status”:”OK”
}
Incorrect https://CBS.EXAMPLE.COM/obs/api/json/UpdateConfig.do
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
Make sure you point to the correct API URL path. For “UpdateConfig.do”, it is under /cbs/api.
Correct https://CBS.EXAMPLE.COM/cbs/api/json/UpdateConfig.do
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
Output
{
“Status”:”OK”
}
ADDITIONAL INFORMATION
If the error message returned by the API call does not provide sufficient information, please login to the
AhsayCBS console for further details:
Dashboard > To Dos > API Errors
You can contact the Ahsay support team for further assistance.
There are four subcategories under System API, with these being:
SUBCATEGORIES
SYSTEM
GetBuildingStatus GetDataMigrationProgress
GetReplicationStatus GetSystemStatus
SYSTEM CONFIG
UpdateServerConfig (V1), UpdateSystemSettings UpdateConfig (Backup Server)
(V2) (Backup Server)
GetSystemSettings (V1, V2) (Backup Server) UpdateReplicationConfig
UpdateLicense GetLicense (V1, V2)
GetReplicationMode AddPredefinedDestination
SYSTEM USER
AddSysUser UpdateSysUser
RemoveSysUser AuthSystemUser
ListSystemUsers
GROUP POLICY
AddUserGroup DeletePolicyGroup
DeletePolicyGroupFromUserGroup DeleteUserFromUserGroup
DeleteUserGroup ListPolicyGroups (V1, V2)
ListUserGroups ModifyUserGroup
UpdatePolicyGroup (V1, V2) AddPolicyGroup
This subcategory focuses on retrieving the base statuses and progress of AhsayCBS, featuring
four APIs that gives information to the user regarding AhsayCBS builds, progress on Data
Migration, status of any Replication and the overall system status of AhsayCBS.
GETBUILDINGSTATUS
This API can be used to get Build Installer status of either AhsayCBS build or Client’s build. The
related settings can be found on the AhsayCBS web console:
System Settings > Basic > Administrative Access > %system_user% > Rebrand Web
Console > Build Installers
System Settings > Basic > Administrative Access > %system_user% > Rebrand Clients >
Build Installers
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetBuildingStatus.do?product=%product%
https://CBS.EXAMPLE.COM/cbs/api/json/GetBuildingStatus.do?product=%product%&mode=single
https://CBS.EXAMPLE.COM/cbs/api/json/GetBuildingStatus.do?product=%product%&mode=all
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API, or
Read-Only API role.
SysPwd String Password matching SysUser.
QUERY PARAMETERS
product String Either CBS or OBC
mode String (optional) all or single
JSON OBJECTS
ARRAY:BUILDSTATUS
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
OUTPUT
{
“Status”:”OK”,
“lastUpdatedTime”:”2023-05-05 07:40:57”,
“message”:””,
“status”:”waiting”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
OUTPUT
{
“Status”:”OK”
“buildStatus”: [
{
“lastUpdatedTime”:”2021-06-03 12:20:10”,
“id”:”0”,
“message”:””,
“status”:”waiting”
}
]
}
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetDataMigrationProgress.do
AVAILABLE SINCE VERSION:
7.7
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API, or
Read-Only API role.
SysPwd String Password matching SysUser.
EXAMPLE
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
OUTPUT
{
“Status”:”OK”,
“MigratingFilePath”:”C:\\ProgramFiles\AhsayCBS\users\user\files\
15544253452756\Current\0x14\0x45\0x12\0x00\5252334”,
“MigratedFileCount”: 15
}
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetReplicationStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API, or
Read-Only API role.
SysPwd String Password matching SysUser.
Type String Either: replicate or receive.
RETURN VALUES
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“Type”:”receive”
}
OUTPUT
{
“Status”:”OK”,
“ReloadReceiveStatus”:”true”,
“RecStatus”:[
{
“ReplicatedFile”:””,
“Progress”:0,
“inactive”:true,
“EstimatedTimeLeft”:”—“,
“Mode”:”REPLAY”,
“StartTime”:”10:03:29”,
“Receiver”:”rcvr”,
“ID”:”3495085”
}
]
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“Type”:”replicate”
}
OUTPUT
{
“ReloadReplicateStatus”:”true”,
“Status”:”OK”,
“RepStatus”:[
{
“BackupSetName”:”v6 File Backup”,
“LoginName”:”obm”,
“Owner”:””,
“ClientType”:”OBM”,
“Progress”:100,
“Mode”:”SLEEP”,
“StartTime”:”10:05:15”,
“BackupSetID”:”1687750405259”,
“isSysFiles”:false,
“ReplicatedFile”:””,
“Type”:”FILE”,
“UserId”:”109818”,
“Alias”:”obm”,
“EstimatedTimeLeft”:”—“,
“ID”:”1687750405259”,
“UserType”:”PAID”
},
{
“BackupSetName”:”default-backup-set-name-1”,
“LoginName”:”obm”,
“Owner”:””,
“ClientType”:”OBM”,
“Progress”:100,
“Mode”:”SLEEP”,
“StartTime”:”06/29/2023 10:48:25”,
“BackupSetID”:”1687755057644”,
“isSysFiles”:false,
“ReplicatedFile”:””,
“Type”:”FILE”,
“UserId”:”109818”,
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetSystemStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API, or
Read-Only API role.
SysPwd String Password matching SysUser.
Type String (optional) Values: memory, cpuUsage, or thread
When Type or StartDate is not input, overall result is
returned.
When Type and Startdate is input, history of the type is
returned.
StartDate String Date in yyyy-MM-dd format
MEMPOOL
GARBAGECOLLECTOR
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
OUTPUT
{
“Status”:”OK”
“totalswapSpace”:”9.25 G”,
“heapUsed”: “126.27 M”,
“daemonThreads”:41,
“freeSwapSpace”:”5.44 G”,
“peakThreads”:47,
“nonHeapMemPoolList”:[
{
“servletWrapper”:{},
“usedPercentage”:15,
“max”:251658240,
“formattedMax”:”240 M”,
“used”:39791424,
“formattedPoolName”:”CodeCache”,
“formattedUsed”:”37.95 M”,
“poolName”:”CodeCache”
}
{
“servletWrapper”:{},
“usedPercentage”:36,
“max”:268435456,
“formattedMax”:”256 M”,
“used”:98743520,
“formattedPoolName”:”Metaspace”,
“formattedUsed”:”94.17 M”,
“poolName”:”Metaspace”
}
{
“servletWrapper”:{},
“usedPercentage”:3,
“max”:260046848,
“formattedMax”:”248 M”,
“used”:9740424,
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“Type”:”memory”,
“StartDate”:”
}
OUTPUT
{
“Status”:”OK”,
“sysStatusList”:[
{
“timeStamp”:1683216012284,
“heapUsage”:144.28317”
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“Type”:”thread”
“SartDate”:”2023-05-05”
}
OUTPUT
{
“Status”:”OK”,
“sysStatusList”:[
{
“timeStamp”:1683216012284,
“liveThreads”:41
},
{
“timeStamp”:1683216072391,
“liveThreads”:41
}
]
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“Type”:”cpuUsage”,
“StartDate”:”2023-05-05”
}
OUTPUT
{
“Status”:”OK”,
“sysStatusList”:[
{
“timeStamp”:1683216012284,
“processCpuLoad”:0.01,
“systemCpuLoad”:1.25
},
{
“timeStamp”:1683216072391,
“processCpuLoad”:0.39,
“systemCpuLoad”:0.64
}
]
}
Backup / Restore > Basic > User Home or Free Trial Options
V1 UPDATESERVERCONFIG.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateServerConfig.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 UPDATESYSTEMSETTING.DO
A TrialQuotaList JSON Object (list of quota for multiple backup destinations for free trial users)
was introduced to replace the single BackupQuotaSize parameter (v1 API).
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/UpdateSystemSetting.do
AVAILABLE SINCE VERSION:
9.5
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API,
or Read-Only API role.
SysPwd String Password matching SysUser.
USERHOME
TRIALQUOTALIST
EXAMPLES
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“TrialQuotaList”:[
{
“Enable”:true
“Quota”:549750000
“DestinationKey”:”OBS”
},
{
“Enable”:true
“Quota”:549750000
“DestinationKey”:”-1585973679332”
}
]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
“TrialMariaDB”:false
}
OUTPUT
{
“Status”:”OK”
}
Proxy server
Admin contacts
System Homes
SNMP settings
Connectors
The related settings can be found on the AhsayCBS web console at:
URL
https://CBS.EXAMPLE.COM/cbs/api/json/UpdateConfig.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with
Admin, API, or Read-Only API role.
SysPwd String Password matching SysUser.
UseEventLog Boolean Whether event log is enabled.
EventLogName String Name of event log.
Hostname String Hostname of the AhsayCBS server.
SystemHome String The directory containing all system files.
WebServers Array of Connectors
WebServer
SmtpServers Array of Smtp Servers settings
Smtpserver
AdminContacts Array of Contact Admin contacts in array
UseProxy Boolean Enable proxy server
ProxyUsername String User name of proxy server.
JSON OBJECTS
WEBSERVER
CONTACT
PROXYEXCLUDEHOST
SNMPTRAPRECV
EXAMPLE 1
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“SendBccReports”:true,
“AdminContacts”:[{“Name”:”New1”,”Email”:”[email protected]”}]
}
OUTPUT
{
“Status”:”OK”
}
REPORTSETTINGSBEAN
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“ReportSettingsBean”:{
“SendLowDiskSpaceReminderAlertReport”:true,
“SendLowDestinationSpaceReminderAlertReport”:true,
“LowDestinationSpaceAlertThreshold”:90,
“LowDestinationSpaceReminderThreshold”:65,
“LowDiskSpaceAlertThreshold”:85,
“LowDiskSpaceReminderThreshold”:70,
“SendAdministratorConsolidatedReport”:true,
“ConsolidatedReportSendHour”:13,
“ConsolidatedReportSendMind”:45
}
OUTPUT
{
“Status”:”OK”
}
V1 GETSYSTEMSETTING.DO
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetSystemSetting.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 GETSYSTEMSETTING.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/GetSystemSetting.do
AVAILABLE SINCE VERSION:
9.5
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API,
or Read-Only API role.
SysPwd String Password matching SysUser.
RETURN VALUES
KEY TYPE DESCRIPTIONS
Status String “OK” or “Error”
Data ConfigData Particulars of a user’s configuration data.
Message String Error message; it only appears if “status” displays “Error”.
ExptType String The type of exception, will only be displayed if the status is
“Error”.
JSON OBJECTS
USERHOMES
CONFIGDATA
REPORTSETTINGSBEAN
TRIALQUOTALIST
EXAMPLE 1
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
}
Output
{
“Status”:”OK”
“Data”:{
“TrialMsVmQuotaTypes”:[],
“TrialMsVmQuota”:”5”,
“TrialDeduplication”:false,
“TrialCdp”:false,
“TrialMySql”:false,
“TrialQuotaType”:”TOTAL_QUOTA”,
“TrialMobileV2”:false,
“ExpTrialStatus”:”suspend”,
“TrialShadowCopy”:true,
“TrialMobile”:false,
“TrialShadowProtectBareMetal”:false,
“TrialWinServer2008BareMetal”:false,
“TrialMsVmQuotaType”:”GUESTVM”,
“TrialQuotaList”:[
{
“DestinationKey”:”OBS”,
“Quota”:52428800,
“Enabled”:true,
“Name”:”AhsayCBS”
}
]
“TrialMobileQuotaV2”:”0”,
“TrialVMware”:false,
“TrialOracle”:false,
“TrialVMwareQuotaTypes”:[],
“RemoveUserDays”:”90”,
“ReportSettingsBean”:{
“SendLowDiskSpaceReminderAlertReport”:true,
“SendLowDestinationSpaceReminderAlertReport”:true,
“ConsolidatedReportSendHour”:13,
“LowDestinationSpaceAlertThreshold”:90,
“LowDestinationSpaceReminderThreshold”:65,
“LowDiskSpaceAlertThreshold”:80,
“LowDiskSpaceReminderThreshold”:70,
NOTE
For Parameter “RepBSet”, the array must relist to contain all backup sets for replication.
JSON OBJECTS
TRAFFICLIMIT
REPBSET
NOTE
For Key “Value”, API will update the whole list, so any existing backup sets in the list will be removed if your
“RepBSet” array does not include them.
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“EnableReplication”:true,
“ReplicationUseTrafficLimit”:true,
“TrafficLimits”:[
{
“StartDayOfWeek”:”4”,
“StartHour”:”3”,
“StartMin”:”30”,
“EndDayOfWeek”:”5”,
“EndHour”:”4”,
“EndMind”:”30”,
“MaxTransferPerSec”:”300”,
}
]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“EnableReplication”:true,
“ReplicateIndividualBset”:true,
“RepBSet”:[
{“Value”:”user12345++1578027193000”},
{“Value”:”user67890++1578059639000”},
]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“EnableReplication”:true,
“ReplicateNewTrialBSet”:true
}
OUTPUT
{
“Status”:”OK”
}
This API can be used to update the license name and license key on the AhsayCBS server (for
backup server).
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateLicense.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API,
or Read-Only API role.
SysPwd String Password matching SysUser.
Licensee String Licensee name
Key String Product Key
UseProxy Boolean Enable / Disable the use of proxy defined in the
AhsayCBS to connect the internet.
RETURN VALUES
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“Licensee”:”ABC_Backup”,
“Key”:”XyZ98-AbcDE-fGhU-98bcd-YZ”
}
OUTPUT 1 – WHEN LICENSE STATUS IS NORMAL
{
“Status”:”OK”,
“Key”:”XyZ98-AbcDE-fGhIJ-98bcd-YZ”,
“Deactivated”:false,
“Licensee”:”ABC_Backup”
}
OUTPUT 2 – USER ACTION REQUIRED (e.g. CLICK THE UPDATE BUTTON ON THE WEB CONSOLE)
{
“Status”:”OK”,“Key”:”XyZ98-AbcDE-fGhIJ-98bcd-
YZ”,“Deactivated”:false,”Info”:
“Internal Error 1012. Please press the [Update] button in license page
to correct this problem.
If the problem persists, please contact our technical support team to
resolve this problem”, “Licensee”:
“ABC_Backup”
}
OUTPUT 3 – WHEN INCORRECT LICENSE KEY WAS PROVIDED
{
“Status”:”Error”,
”Message”:”License key incorrect. Please try again.”
}
OUTPUT 4 – WHEN AHSAYCBS SERVICE WAS STOPPED
{
“Status”:”OK”,”Key”:”XyZ98-AbcDE-fGhIJ-98bcd-
YZ”,”Deactivated”:false,”Info”:”[OEM-License.checkLicTime] License expired
on 1970-01-01. Backup server is stopped”,”Licensee”:”ABC_Backup”
}
This API can be used to collect the license and usage information of your AhsayCBS server.
V1 GETLICENSE.DO
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetLicense.do
AVAILABLE SINCE VERSION:
8.3
V2 GETLICENSE.DO
Since AhsayCBS version 8.3, the following add-on modules are combined into one add-on
module, to make these modules that were previously separated, interchangeable:
Hyper-V and VMware (Per Guest VM)
Hyper-V and VMware (Per Socket)
NAS – Synology and NAS – QNAP
AhsayOBM and AhsayACB Microsoft 365
For Ahsay CBS pre-8.3, you should use the v1 API instead. For all other new versions, use the v2
API to get accurate licensing details.
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/GetLicense.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API,
or Read-Only API role.
SysPwd String Password matching SysUser.
RETURN VALUES
LICENSING DATA
EXAMPLE
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“MobileQuota”:”2000”,
“HypervisorSocketQuota”:”4000”,
This API can be used to retrieve the current replication status on the backup server.
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetReplicationMode.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API,
or Read-Only API role.
SysPwd String Password matching SysUser.
RETURN VALUES
JSON OBJECTS
REPLICATIONDATA
EXAMPLE
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“Enable”:true,
“Replicators”:[
{
“LoginName”:”userA”,
“File”:””,
“BackupSetID”:”1463141188151”,
“Mode”:”RESYNC”,
}
]
}
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddPredefinedDestination.do
AVAILABLE SINCE VERSION:
9.7
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin, API,
or RO API role.
SysPwd String Password matching SysUser.
Type String The type of the predefined destination, please use one
of the available type within the set provided in the table.
“Destination Type”.
DestinationName String The name of the predefined destination, if not provided,
the name will be auto-generated by the server.
DestinationSettings JSON The settings for the predefined destination, the
Object underlying parameters are specific to each destination
type. Please refer to the tables labeled with
“DestinationSettings (DESTINATION_TYPE)” for the
correct format of each destination type.
Owner String The owner administrator name of this newly added
predefined destination, defaults to ADMIN.
JSON OBJECTS
DESTINATION TYPE
TYPE DESCRIPTIONS
FTP An FTP-based destination.
SFTP An SFTP-based destination.
Local A local destination (local to the client).
OBS A destination (“User Home”) provided by the CBS server.
Pooled A destination pool.
RPS Used for replication.
Aliyun Alibaba Aliyun
AWSCompatible AWS Compatible
Azure Microsoft Azure
Backblaze Backblaze
INSTRUCTION ID
VALUE DESCRIPTIONS
MISSING_PARAMETER Returned from a failed addition of a predefined destination, due to a missing
parameter with predefined value set. If this ID is encountered, please refer to
the RESPONSE_BODY. Message for instructions and
RESPONSE_BODY_AvailableOptions for the value set.
OAUTH_OPEN_URL Returned from a failed addition of predefined destination, due to undefined
or empty authorization token in the request body. If encountered, please
refer to RESPONSE_BODY. Message for instructions and
RESPONSE_BODY.OAuthUrl for the url to kick start the authorization
procedure.
OBS
FTP
SFTP
POOLED
RPS
ALIYUN
LOCATION VALUE
China (Hangzhou) oss-cn-hangzhou
China (Shanghai) oss-cn-shanghai
China (Qingdao) oss-cn-qingdao
China (Beijing) oss-cn-beijing
China (Zhangjiakou) oss-cn-zhangjiakou
China (Hohhot) oss-cn-huhehaote
China (Ulanqab) oss-cn-wulanchabu
China (Shenzhen) oss-cn-shenzhen
China (Heyuan) oss-cn-heyuan
China (Guangzhou) oss-cn-guangzhou
China (Chengdu) oss-cn-chengdu
China (Hong Kong) oss-cn-hongkong
Singapore oss-ap-southeast-1
Australia (Sydney) oss-ap-southeast-2
Malaysia (Kuala Lumpur) oss-ap-southeast-3
Indonesia (Jakarta) oss-ap-southeast-5
Japan (Tokyo) oss-ap-northeast-1
India (Mumbai) oss-ap-south-1
Germany (Frankfurt) oss-eu-central-1
UK (London) oss-eu-west-1
US (Silicon Valley) oss-us-west-1
US (Virginia) oss-us-east-1
UAE (Dubai) oss-me-east-1
AZURE
AZURE REGIONS
REGION VALUE
Global GLOBAL
China CHINA
Germany GERMANY
USGOV USGOV
BACKBLAZE
DROPBOX
TYPE VALUE
Region REGION
Multi-Region MULTI_REGION
Dual-Region DUAL_REGION
GCS LOCATIONS
REGION VALUE
Montréal NORTHAMERICA-NORTHEAST1L
Iowa US-CENTRAL1
South Carolina US-EAST1
Northern Virginia US-EAST4
Oregon US-WEST1
Los Angeles US-WEST2
Salt Lake City US-WEST3
Las Vegas US-WEST4
São Paulo SOUTHAMERICA-EAST1
Warsaw EUROPE-NORTH1
Belgium EUROPE-WEST1
London EUROPE-WEST2
Frankfurt EUROPE-WEST3
Netherlands EUROPE-WEST4
Zurich EUROPE-WEST6
Taiwan ASIA-EAST1
Hong Kong ASIA-EAST2
Tokyo ASIA-NORTHEAST1
Osaka ASIA-NORTHEAST2
Seoul ASIA-NORTHEAST3
Mumbai ASIA-SOUTH1
Singapore ASIA-SOUTHEAST1
Jakarta ASIA-SOUTHEAST2
Sydney AUSTRALIA-SOUTHEAST1
MICROSOFT ONEDRIVE
MICROSOFT ONEDRIVE4BIZ
ONEDRIVE4BIZ REGIONS
REGION VALUE
Global GLOBAL
China CHINA
Germany GERMANY
RACKSPACE
RACKSPACE REGIONS
REGION VALUE
Chicago ORD
Dallas Ft. Worth DFW
Hong Kong HKG
London LON
Northern Virginia IAD
Sydney SYD
AMAZON S3 LOCATIONS
REGION VALUE
Africa (Cape Town) af-south-1
Asia Pacific (Hong Kong) ap-east-1
Asia Pacific (Mumbai) ap-south-1
Asia Pacific (Osaka-Local) ap-northeast-3
Asia Pacific (Seoul) ap-northeast-2
Asia Pacific (Singapore) ap-southeast-1
Asia Pacific (Sydney) ap-southeast-2
Asia Pacific (Tokyo) ap-northeast-1
Canada (Central) ca-central-1
China (Beijing) cn-north-1
China (Ningxia) cn-northwest-1
Europe (Ireland) eu-west-1
Europe (Frankfurt) eu-central-1
Europe (London) eu-west-2
Europe (Milan) eu-south-1
Europe (Stockholm) eu-north-1
AWS GovCloud (US-East) us-gov-east-1
AWS-GovCloud (US) us-gov-west-1
Middle East (Bahrain) me-south-1
South America (Sao Paulo) sa-east-1
US East (Ohio) us-east-2
US West (Northern California) us-west-2
WASABI
WASABI LOCATIONS
REGION VALUE
Toronto ca-central-1
Oregon us-west-1
Plano, Texas us-central
Northern Virginia us-east-1
Southern Virginia us-east-2
Amsterdam eu-central-1
EXAMPLES
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“Type”:”GDrive”,
“SkipVerify”:false,
“DestinationSettings”:{
“Token”:9/abc0e-
g5bc2XX2jepVtYRSiA6J4Q03rgVPfssYVu3xhyl9PiHqkiabmwM3i”
}
}
OUTPUT
{
“Status”:”OK”,
“DestinationID”:”-1620712268943”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“Type”:”GDrive”,
“DestinationSettings”:{
“Token”:”FAKE”
}
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[GDriveManager$GDriveAuthorization.getOAuth2TokensByTempKey]
Failed to get Oauth2Tokens after retrieved from GDrive”,
“ExptType”:”java.land.Exception”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“Type”:”OBS”,
“DestinationSettings”:{
“Immutable”:true,
“TempDelete”:true,
“TempDeleteDate”:”2023-08-25”,
“Hour”:6,
“Minute”:13
}
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Please setup 2FA devices to proceed with adding immutable
destination.”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
ADDSYSUSER
This API can be used to add a system user(s).
NOTE
Starting with CBS v8.3.4.0 affecting all APIs, if AhsayCBS Administrative Access feature is enabled, users may
see the error message:
“Your password has expired and must be changed. Please update in web console or by UpdateSysUser API”
This message may appear if a system user’s password is expired when calling any API except
UpdateSysUser.do. AddSysUser.do and UpdateSysUser.do may see error messages regarding password
complexity when complexity settings are enabled.
This setting can be found on the AhsayCBS web console at:
System Settings > Basic > Administrative Access > Authentication > Password.
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddSysUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Login name of the system user.
Password String Password in plaintext or hashed password. If passing
hashed, include PasswordHashed key. Use
ListSystemUsers.do to lookup HashedPwd.
PasswordHashed Boolean An indicator for account’s input password if hashed or
not.
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”api_user”,
“Password”:”qWeRtY123456!@#$%”,
“PasswordHashed”:”false”,
“Role”:”API_ONLY”
}
OUTPUT
{
“Status”:”OK”,
}
OUTPUT 2 – If another user with the same user name exists already
{
“Status”:”Error”,
“Message”:”Name is already used. Please use another name.”
“ExptType”:”java.lang.Exception”
}
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”AdminTom”,
“Password”:”qWeRtY123456!@#$%”,
“Role”:”ADMIN”,
“IsSendConsolidatedReport”:”true”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Update consolidated report setting for ‘Admin’ system user
through ‘UpdateServerConfig.do’”,
“ExptType”:”java.land.Exception”
}
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”AdminTom”,
“Password”:”qWeRtY123456!@#$%”,
“Role”:”ADMIN”
“IsShowRebrandingPages”:”false”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Invalid parameter IsShowRebrandingPages for ADMIN system
user”,
“ExptType”:”java.lang.Exception”
}
NOTE
Starting with CBS v8.3.4.0 affecting all APIs, if CBS Administrative Access feature is enabled, users may see
the error message:
“Your password has expired and must be changed Please update in web console of by UpdateSysUser API”
This message may appear if a system user’s password is expired when calling any API except
UpdateSysUser.do. AddSysUser.do and UpdateSysUser.do may see error messages regarding password
complexity when complexity settings are enabled.
This setting can be found on the AhsayCBS web console at:
System Settings > Basic > Administrative Access > Authentication > Password
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateSysUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Login name of the system user.
Password String Password in plaintext or hashed password. If passing
hashed, include PasswordHashed key. Use
ListSystemUsers.do to lookup HashedPwd.
Status String “SUSPENDED” / “ENABLED”
PasswordHashed Boolean An indicator for account’s input password is hashed or
not.
Default “false” if NOT in request.
NOTE: If PasswordHashed is set to false, the Password
will be hashed and stored. If set as true, Password will
be stores as-is. If PasswordHashed is set to true and not
using a hashed password, then users will not be able to
login to the system.
Hash Algorithm: Plaintext input > encode Hash algorithm
RETURN VALUES
EXAMPLES
EXAMPLE 1
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”admin123”,
“Password”:”changepassword”,
“PasswordHashed”:”false”
}
OUTPUT
{
“Status”:”OK”,
}
EXAMPLE 3
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”admin123”,
“Password”:”changepassword”,
“Status”:”ENABLED”
}
OUTPUT
{
“Status”:”OK”,
}
EXAMPLE 4
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”admin123”,
“Password”:”changepassword”,
“Status”:”LOCKED”
}
EXAMPLE 5
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“LoginName”:”admin123”,
“Password”:”changepassword”,
“Status”:0
}
OUTPUT
{
“Status”:”Error”,
“Message”:”JSONObject\”Status\”\not a string”,
“ExptType”:”org.json.JONException”
}
EXAMPLE 6
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter LoginName is null/empty!”
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
The related settings can be found on the AhsayCBS web console at:
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveSysUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
RemoveLoginName String Login name of the system user to be removed.
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”sample”,
“SysPwd”:”sample”,
“RemoveLoginName”:”dummyAdmin”
}
OUTPUT
{
“Status”:”OK”,
}
EXAMPLE 2
If the user type of the SysUser is Read-only Admin or API, an error status will be returned.
URL
https://CBS.EXAMPLE.COM/obs/api/json/AuthSystemUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
RETURN VALUES
INPUT
{
“SysUser”:”Admin”,
“SysPwd”:”password”,
}
OUTPUT
{
“Status”:”OK”,
}
INPUT
{
“SysUser”:”Read-Only Admin”,
“SysPwd”:”sample”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Incorrect system username/password”,
“ExptType”:”com.ahsay.obs.core.dbs.c”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListSystemUsers.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
RoleOnly Boolean List the role of system users only (SystemUserRole).
Host String AhsayCBS’s URL. It is required for calling API from
Redirector only.
RETURN VALUES
SYSTEMUSERROLE
SYSTEMUSER
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456”
}
OUTPUT 1
{
“Status”:”OK”,
“Data”:[
{
“Role”:”ADMIN”,
“Status”:”ENABLED”,
“HashedPwd”:”ggeRi1mrAu37jPPCb6q6sRyBRlz/VxUgHbso6jqZu0I=”,
“IsShowRebrandingPages”:false,
“Name”:”system”,
“IsFreeTrialOfferAllowed”:true,
}
]
}
ADDUSERGROUP
This API lets you add a new User Group and allocate users to it.
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddUserGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
UserGroupName String Group name.
Type String The value can be any one of the following:
backup-user (Default value)
UserIdList String Multiple login names, separated by commas, are
accepted. For example; user1, user2, user3.
PolicyIDList Array of Array of policy ID.
String
RETURN VALUES
EDITBILLINGCONTACTBEAN
EXAMPLES
EXAMPLE 1
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“UserGroupName”:”user-group”
}
OUTPUT 1
{
“Status”:”OK”,
“ID”:”1447039919940”
}
OUTPUT 2 – User Group already in use
{
“Status”:”Error”,
“Message”:”The user group name is already in use”,
“ExptType”:”java.lang.Exception”
}
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”qWeRtY123456!@#$%”,
“UserGroupName”:”test-usergroup”,
“PolicyIDList”:[“1398011529749”]
}
OUTPUT 1
{
“Status”:”OK”,
“ID”:”1447039919940”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeletePolicyGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
ID String ID of the policy group.
RETURN VALUES
EXAMPLE
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”abc123”,
“ID”:”1496989829495”
}
OUTPUT 1
{
“Status”:”OK”,
}
Backup / Restore > Users, Groups & Policies > User Group > % User Group Name% >
Assigned Policy
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeletePolicyGroupFromUserGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
UserGroupID String ID of User Group.
PolicyGroupID String ID of Policy Group.
RETURN VALUES
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“UserGroupID”:”1497233669967”,
“PolicyGroupID”:”1497233409042”
}
OUTPUT 1
{
“Status”:”OK”
}
OUTPUT 2 – Policy group does not exist
{
“Status”:”Error”,
“Message”:”Policy group does not exist”,
“ExptType”:”org.json.JSONException”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > User Profile
> User Group
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteUserFromUserGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
ID String ID of User Group.
UserIdList String Multiple login names, separated by commas, are
accepted. For example: user1, user2, user3.
RETURN VALUES
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“ID”:”1497233669967”,
“UserIdList”:”1497233409042, 1496977596356”
}
OUTPUT 1
{
“Status”:”OK”,
}
OUTPUT 2 – USER DOES NOT EXIST
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘1497233409042’ not
found.”,
“ExptType”:”com.ahsay.obs.core.dbs.Y”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > User Profile
> User Group
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteUserGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
ID String ID of User Group.
RETURN VALUES
INPUT
{
“SysUser”:”api_user”,
“SysPwd”:”abc123”,
“ID”:”1497232492006”
}
OUTPUT 1
{
“Status”:”OK”,
}
OUTPUT 2 – User does not exist
{
“Status”:”Error”,
“Message”:”[Error] Parameter UserGroupID, 1497232492006 does not
exist.”,
“ExptType”:”com.ahsay.obs.core.dbs.Y”
}
Backup / Restore > Users, Groups & Policies > Policy Group
V1 LISTPOLICYGROUPS.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListPolicyGroups.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 LISTPOLICYGROUPS.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/ListPolicyGroups.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Username of the backup user.
PolicyGroupNameOnly Boolean Optional parameter can be true / false, default value is
false.
JSON OBJECTS
NAMEINFO
POLICYGROUP
PREEMPTEDVALUES
GRANULARRESTORESETTINGSLIST
VMWARESETTINGSLIST
VMWARESETTING
APPLIEDVALUESETTINGS
VOLUMESHADOWCOPYSETTINGSLIST
ALLOWEDIPSETTINGSLIST
ALLOWEDIPSETTING
ALLOWEDIP
SOURCESHORTCUTSETTINGSLIST
FOLLOWLINKSETTINGSLIST
INFILEDELTASETTINGSLIST
INFILEDELTASETTING
WEEKLYINFILEDELTASCHEDULE
COMPRESSIONSSETTINGSLIST
“GzipDefaultCompression” (Normal)
“GzipBestSpeedCompression” (Fast)
“SnappyDefaultCompression” (Optimal for local)
AppliedValueSettings Array See AppliedValueSettings.
WINUSERAUTHSETTINGSLIST
WINUSERAUTHSETTING
SOURCESHORTCUTSETTINGSLIST
MSWINDOWSSYSTEMSTATESETTINGSLIST
MSWINDOWSSYSTEMSTATESETTING
KEY TYPE DESCRIPTIONS
Id String ID of the MS Windows System State setting. By
default, a standard ‘Default’ setting will be in place
should no custom setting be set.
Version String AhsayCBS version where the setting was made.
DESTINATIONSETTINGSLIST
DESTINATIONSETTING
DESTINATION
KEY TYPE DESCRIPTIONS
Id String ID of the setting.
BANDWIDTHCONTROLSETTINGSLIST
BANDWIDTHCONTROLSETTING
KEY TYPE DESCRIPTIONS
Enable Boolean True / False
Id String ID of the setting.
BandwidthControlList Array List of existing Bandwidth controls.
Mode String The value can be one of the following:
independent
share
AppliedValueSettings Array See AppliedValueSettings.
NAMESETTINGSLIST
NAMESETTING
KEY TYPE DESCRIPTIONS
Id String ID of the setting.
Name String Name of the setting.
AppliedValueSettings Array See AppliedValueSettings.
MYSQLSETTING
KEY TYPE DESCRIPTIONS
Id String ID of the setting.
Host String Host of the MySQL server. Default is localhost.
Port String Listening port of MySQL server. Default is 3306.
Username String Login ID of the MySQL system account.
Password String Password used in tandem with Username to Login.
MysqldumpPath String Path to mysqldump file.
Version String AhsayCBS version where the setting was made.
AppliedValueSettings Array See AppliedValueSettings.
FILEPERMISSIONSSETTINGSLIST
FILEPERMISSIONSETTING
KEY TYPE DESCRIPTIONS
Enable Boolean Enable / Disable
Id String ID of the setting.
AppliedValueSettings Array See AppliedValueSettings.
RETENTIONPOLICYSETTING
KEY TYPE DESCRIPTIONS
Id String ID of the setting.
Period Long Number of days or jobs until deleted files are
removed.
OverlapSensitive Boolean
AdvancedRetentionPolicyList Array List of all Advanced Retention Policies.
Type String The value can be one of the following:
SIMPLE
ADVANCED
Unit String The value can be one of the following:
DAYS
JOBS
AppliedValueSettings See AppliedValueSettings
ADVANCEDRETENTIONPOLICY
KEY TYPE DESCRIPTIONS
Name String Retention policy name.
ReadOnly Boolean True / False
Id Long ID of the retention policy.
Type String The value can be one of the following:
DAILY
WEEKLY
MONTHLY
QUARTERLY
YEARLY
CUSTOM
NumbersToKeep Integer Number of X where files are kept within the
retention area, with X being the Type.
SHADOWPROTECTSETTINGSLIST
SHADOWPROTECTSETTING
KEY TYPE DESCRIPTIONS
Id String ID of the ShadowProtect setting.
EncryptionAlgorithm Long Type of algorithm used to encrypt the image file in
the temporary directory. This will be displayed as an
integer ranging from 0 to 4.
ADVANCEDSETTINGSLIST
ADVANCEDSETTING
KEY TYPE DESCRIPTIONS
Id String ID of the setting.
DeselectedSourceList Array List of deselected sources.
SelectedSourceList Array List of selected sources.
Enable Boolean True / False
AppliedValueSettings Array See AppliedValueSettings.
COMMANDSETTINGSLIST
COMMANDSETTING
KEY TYPE DESCRIPTIONS
Id String ID of the setting.
PreCommandList Array List of Pre-Backup Commands.
PostCommandList Array List of Post-Backup Commands.
AppliedValueSettings Array See AppliedValueSettings.
TEMPORARYDIRECTORYSETTINGSLIST
ORACLESETTINGSLIST
ORACLESETTING
KEY TYPE DESCRIPTIONS
Id String ID of the Oracle setting.
Host String Host of the Oracle server. Default is 127.0.0.1 or
localhost.
Port String Listening port of the Oracle server. Default is 1521.
LoginID String ID used to login. Default is system login.
Password String Password used with LoginID to login.
Sid String Oracle SID.
Version String AhsayCBS version where the Oracle setting was
made.
AppliedValueSettings Array See AppliedValueSettings.
LOTUSNOTESSETTING
KEY TYPE DESCRIPTIONS
Id String ID of setting
NotesIniPath String Path notes
Version String AhsayCBS version when the setting was made
AppliedValueSettings Array See AppliedValueSettings
REMINDERSETTINGSLIST
REMINDERSETTING
KEY TYPE DESCRIPTIONS
OfflineNotificationDay Long This setting only applicable for v6 legacy backup
users.
BackupIntervalHour Long 00-23
OfflineBackupEnabled Boolean On-Off
OfflineBackupReminderComputerName String The computer name for the offline backup
reminder.
BackupIntervalDays Long 00-31
ShowOfflineBackupReminder Boolean
LogoutBackupReminderEnabled Boolean On-Off
LogoutBackupReminderComputerName String The computer name for logout backup
reminder.
Id String ID of setting
AppliedValueSettings Array See AppliedValueSettings
FILTERSETTING
KEY TYPE DESCRIPTIONS
Enable Boolean True / False
Id String ID of setting
FilterList Array See Filter
AppliedValueSettings Array See AppliedvalueSetting
FILTER
KEY TYPE DESCRIPTIONS
Name String Name of Filter
PatternList Array Displays pattern of Filter
ApplyToDir Boolean Apply Filters to directory
ApplyToFile Boolean Apply Filters to File
TopDir String Apply Filter to specific directory only
Type String The value can be one of the following:
START_WITH
END_WITH
CONTAIN
CUSTOM
MatchPatternAgainstFulPathOnly Boolean Matches pattern to full path
Include Boolean For each of the matched files/folders under top
directory; exclude or include them
Only Boolean If set to true, will not include all unmatched files /
folders
If set to false, will include all unmatched files /
folders
PATTERN
KEY TYPE DESCRIPTIONS
Pattern String Pattern used for filter
MSWINDOWSSYSTEMSETTING
KEY TYPE DESCRIPTIONS
Id String ID of setting
Version String Version of AhsayCBS when setting was made
BackupTarget String Temporary storage location of the MS Windows
System
AppliedValueSettings Array See Applied Value Setting
LOTUSDOMINOSETTINGSLIST
LOTUSDOMINOSETTING
KEY TYPE DESCRIPTIONS
Id String ID of setting
Version String Version of AhsayCBS when setting was made
NotesIniPath String Path to notes.ini
AppliedValueSettings Array See AppliedValueSetting
TIBEROSETTINGSLIST
TIBEROSETTING
SCHEDULESETTINGSLIST
SCHEDULESETTING
KEY TYPE DESCRIPTIONS
Id String ID of setting
Enable Boolean True / False
ComputerName String Name of computer
DailyScheduleList Array List of all Daily Schedules
WeeklyScheduleList Array List of all Weekly Schedules
MonthlyScheduleList Array List of all Monthly Schedules
CustomScheduleList Array List of all Custom Schedules
AppliedValueSettings Array See AppliedValueSetting
DAILYSCHEDULELIST
WEEKLYSCHEDULELIST
MONTHLYSCHEDULELIST
CUSTOMSCHEDULELIST
ENCRYPTIONSETTING
KEY TYPE DESCRIPTIONS
KeyLength Long Length of encryption key
Key String Encryption key
Type String DEFAULT, USER PASSWORD or CUSTOM
Algorithm String Type of encryption used (Twofish, DESede, AES)
Mode String ECB or CBC
Id String ID of setting
AppliedValueSettings Array See AppliedValueSetting
ARCHIVEDLOGDELETIONSETTINGSLIST
ARCHIVEDLOGDELETIONSETTING
KEY TYPE DESCRIPTIONS
Id String ID of setting
Enable Boolean True / False
Days Long Number of days
AppliedValueSettings Array See AppliedValueSetting
CDPSETTINGSLIST
CDPSETTING
KEY TYPE DESCRIPTIONS
Enable Boolean True / False
6
7
8
SelectedSourceList Array Array of selected sources
AppliedValueSettings AppliedValueSettings See AppliedValueSetting
CDPBACKUPCONTROL
KEY TYPE DESCRIPTIONS
ConsiderCpuUsage Boolean This setting only applicable for v6 legacy backup
users.
RECYCLEBINSETTINGSLIST
RECYCLEBINSETTINGS
KEY TYPE DESCRIPTIONS
AppliedValueSettings Object See AppliedValueSetting
Enabled Boolean Enable moving the files to the Recycle Bin when
remove file from Retention Policy or DIC.
RetentionPeriod Integer Number of days files will be kept in recycle bin.
USERSETTINGS
MAXIMUMBACKUPSETSSETTINGS
HOSTLIMITSETTINGS
RUNDIRECTLIMITSETTINGS
ADVERTISEMENTSETTINGS
CUSTOMDESTINATIONLIST (BACKUPDESTINATIONSETTINGS)
KEY TYPE DESCRIPTIONS
Name String Name of the destination.
@class String The value can be one of the following:
com.ahsay.obx.cxp.cpf.policy.userSettings.LocalDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.AmazonS3Destination
com.ahsay.obx.cxp.cpf.policy.userSettings.AWSCompatibleDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleCloudStorageDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleDriveDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.PooledDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.WindowsAzureDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.OneDriveDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.OneDrive4BizDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.RackspaceDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.OpenStackDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.DropboxDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.FtpDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.SftpDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.ObsDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.AliyunDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.BackblazeDestination
com.ahsay.obx.cxp.cpf.policy.userSettings.WasabiDestination
Enable Boolean true / false
Application String For Dropbox only.
Secret
ClientID String For Google Drive destination, OneDrive, OneDrive for Business (Global and
Germany region) only.
ChinaClient For OneDrive for Business (China region) only.
ID
ClientSecret String For Google Drive destination, OneDrive only.
RedirectURI String For OneDrive, OneDrive for Business (Global and Germany region) only.
ChinaRedir String For OneDrive for Business (China region) only.
ectURI
ENCRYPTIONKEYSETTINGS
EMAILREPORTSETTINGS
QUOTALIST (USERQUOTASETTINGS)
KEY TYPE DESCRIPTIONS
Enable Boolean True / False
Quota Long Unit in byte.
DestinationName String Name of the backup destination.
DestinationKey String ID of the backup destination.
QUOTASETTINGS
CLOUDBACKUPSOURCESETTINGS
CLOUDSOURCELIST (CLOUDBACKUPSOURCESETTINGS)
KEY TYPE DESCRIPTIONS
Name String Name of the destination.
@class String The value can be one of the following:
com.ahasy.obx.csp.cpf.policy.userSettings.AmazonS3Source
com.ahasy.obx.csp.cpf.policy.userSettings.AWSCompatibleSource
PASSWORDSETTINGS
DEFAULT
CUSTOM
Number Boolean True / False
Lowercase Boolean True / False
MinimumLength Long Minimum length allowed for passwords
EnforcePasswordHistory Boolean True / False
SpecialCharacters Boolean True / False
Uppercase Boolean True / False
PasswordAge Long Number of days password has been in use
MinimumLengthEnabled Boolean True / False
Regex String Regular expression
SHAREDQUOTASETTINGS
QUOTALIST (SHAREDQUOTASETTINGS)
KEY TYPE DESCRIPTIONS
Enable Boolean True / False
MaxPercentage Long Maximum percentage of shared size for each user
Quota Long Unit in byte.
DestinationName String Name of the backup destination.
DestinationKey String ID of the backup destination.
PRIVILEGE
KEY TYPE DESCRIPTIONS
Id String ID of setting
EnableRead Boolean True / False
EnableWrite Boolean If write privilege is not available for the privilege, this
key is removed from the result.
PrivilegeGroup String
PolicyName String Name of Policy
DisplayName String The name of privilege defined in properties.
PREEMPTEDBACKUPSETSETTINGS
BACKUPSETSETTINGS
EXCLUDEFILESETTINGS
YEAR
LastModifiedType String The value can be one of the following:
PERIOD
LastModifiedDate Long Date where setting was last modified
BACKUPSETTYPESETTINGS
DEFAULTVALUES
DEDUPLICATIONSETTINGSLIST
LOGINWEBCONSOLESETTINGS
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”api”,
“SysPwd”:”abc123”,
“LoginName”:”username”,
“PolicyGroupNameOnly”:true
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“PolicyGroupName”:”Default settings”,
“PolicyGroupID”:”2”
}
]
}
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“LoginName”:”username”
}
OUTPUT
{
“@class”:”com.ahsay.obx.cxp.cpd.policy.values.deduplication.Deduplication
Settings”,
“MigrateData”:false,
“AppliedValueSettings”:{
“Type”:”default”,
“@class”:”com.ahsay.obx.cxp.cpf.policy.values.AppliedValueSettings”,
“Os”:””,
“Version”:””,
INPUT
{
“SysUser”:”api”,
“SysPwd”:”abc123”,
“LoginName”:”username”,
“ID”:”1692164125127”
}
OUTPUT 1
“RecycleBinSettingsList”:{
“Enable”:true,
“List”:[
{
“@class”:”com.ahsay.obx.cxp.cpf.policy.values.others.RecycleBinSettings”,
“AppliedValueSettings”:{
“Destination”:””,
“Type”:”default”,
“@class”:”com.ahsay.obx.cxp.cpf.policy.values.AppliedValueSettings”,
“Os”:””,
“Version”:””,
“Mode”:””,
“BackupMode”:””,
“AppliedModuleSettingsList”:[
{
“Enable”:true,
“Name”:”FILE”
},
{
“Enable”:false,
“Name”:”Lotus Domino”
},
{
“Enable”:false,
“Name”:”Lotus Notes”
},
{
“Enable”:false,
“Name”:”Microsoft Exchange Server”
},
{
“Enable”:false,
“Name”:”Microsoft Exchange Mail (MAPI)”
},
{
“Enable”:false,
“Name”:”Microsoft SQL Server”
},
{
“Enable”:false,
“Name”:”Microsoft Windows Virtuaization”
The related settings can be found on the AhsayCBS web console at:
Backup / Restore > Users, Groups & Policies > User Group
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListUserGroups.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
UserGroupID String Returns information of the user group with this ID. If
UserGroupID and UserID are not provided, information
of all user groups will be returned.
UserID String Returns information of the user groups that contain the
user. If UserGroupID and UserID are not provided,
information of all user groups will be returned.
UserGroupOnly Boolean Default value is false.
RETURN VALUES
USERGROUPBASICINFO
USERGROUPFULLINFO
USER
POLICY
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“UserGroupOnly”:true
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“Type”:”BACKUP_USER”,
“Owner”:””,
“ID”:”1”,
“Name”:”All Users”,
}
]
}
Backup / Restore > Users, Groups & Policies > User Group
URL
https://CBS.EXAMPLE.COM/obs/api/json/ModifyUserGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
ID String User Group ID obtainable in from ListUserGroups API.
UserGroupName String Group name.
UserIdList String User names to be added to or removed from the user
group. Multiple login names, separated by commas, are
accepted. For example: user1, user2, user3.
Mode String The value can be any one of the following:
A (Default value)
D
If the value is “A”, users in UserIdList will be added to
the user group.
If the value is “D”, users in the UserIdList will be
removed from the user group.
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“ID”:”1447039919940”,
“UserIdList”:”user”,
“Mode”:”D”
}
OUTPUT 1
{
“Status”:”OK”,
}
OUTPUT 2 – User does not exist
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘user’ not found.”,
“ExptType”:”com.ahsay.obs.core.dbs.Y”
}
EXAMPLE 2
Backup / Restore > Users, Groups & Policies > Policy Group
The Policy Group ID can be created using AddPolicyGroup.do or can be found from the
AhsayCBS Policy Group page, by looking at the URL. Example:
https://CBS.EXAMPLE.COM/cbs/obs/policy/EditPolicy.do?id=1632367172249
NOTE
Retrieve all available parameters of policies that you can update by calling the ListPolicyGroups.do API first.
V1 UPDATEPOLICYGROUP.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdatePolicyGroup.do
DEPRECATED SINCE VERSION
7.15.6.38
V2 UPDATEPOLICYGROUP.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/UpdatePolicyGroup.do
AVAILABLE SINCE VERSION:
9.5
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
ID String Policy Group ID
Name String Policy name (rename possible).
Owner String Input SubAdmin name if Policy to be assigned to a
SubAdmin
RETURN VALUES
JSON OBJECTS
PREEMPTEDVALUES
APPLIEDVALUESETTING
CLOUDSOURCELIST
TIBEROSETTINGSLIST
TIBEROSETTING
DEFAULTVALUES
EXAMPLE 1
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“Name”:”Default settings”,
“ID”:”2”,
“Owner”:””,
“UserSettings”:{
“HostLimitSettings”:{
“Enable”:true,
“MaxHost”:45
}
}
}
OUTPUT
{
“Status”:”OK”,
}
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“ID”:”2”,
“Owner”:””,
“DefaultValues”:{
“DeduplicationSettingsList”:{
“Enable”:true,
“List”:[
{
“@class”:”com.ahsay.obx.cxp.cpf.policy.values.deduplicatio.DeduplicationSett
ings”,
“MigrateData”:false,
“AppliedValueSettings””:{
“Type”:”default”,
“@class”:”com.ahsay.obx.cxp.cpf.policy.values.AppliedValuesSettings”,
“Os”:””,
“Version”:””,
“Mode”:””,
“BackupMode”:””,
“AppliedModuleSettingsList”:[
{
“Enable”:false,
“Name”:”FILE”
},
{
“Enable”:false,
“Name”:”Lotus Domino”
},
{
“Enable”:false,
“Name”:”Lotus Notes”
},
{
“Enable”:false,
“Name”:”Microsoft Exchange Server”
},
{
“Enable”:false,
“Name”:”Microsoft Exchange Mail (MAPI)”
EXAMPLE 3
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"Name": "api-test-policy",
"ID": "1632367172249",
"Owner": "",
"PreemptedValues": {
"VmwareSettingsList": {
"Enable": false,
"List": []
},
"VolumeShadowCopySettingsList": {
"Enable": false,
"List": []
},
"AllowedIPSettingsList": {
"Enable": false,
"List": []
},
"FollowLinkSettingsList": {
"Enable": false,
"List": []
},
"InFileDeltaSettingsList": {
"Enable": false,
"List": []
},
It is highly recommended for administrators to retrieve all policy settings with the v2 ListPolicyGroups API.
Update the values of the settings to be changed, based on the response parameters returned by the v2
ListPolicyGroups API.
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"ID": "2",
"UserSettings": {
"UserQuotaSettings": {
"QuotaType":"perDestinationQuota",
"StorageQuota" : 0
}
}
}
OUTPUT
{
"Status": "Error",
"Message": "Invalid value. 'QuotaType' must be 'TOTAL_QUOTA' or
'PER_DESTINATION_QUOTA'.",
"ExptType": "com.ahsay.obs.core.dbs.DbsException"
}
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"ID": "2",
"UserSettings": {
"UserQuotaSettings": {
"QuotaType":" TOTAL_QUOTA",
"StorageQuota" : 0
}
}
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddPolicyGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
Name String Name of the Policy Group
Owner String Input SubAdmin name if Policy to be assigned to a
SubAdmin
UserGroupIDList Array of Array of User Group ID
Strings
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Name”:”Default settings”,
“Owner”:””,
“UserGroupIDList”:[”1”]
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter Name, Default settings, already exists!”,
“ExptType”:”com.ahsay.cbs.mT”
}
EXAMPLE 2
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Name”:”UG Test”,
“Owner”:”test”,
“UserGroupIDList”:[“1686621934417”]
}
OUTPUT
{
“Status”:”OK”,
“PolicyGroupID”:”1686622515427”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Name”:”UG Test”,
“Owner”:”test”,
“UserGroupIDList”:[“1”,”3”]
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter UserGroupID, 3 is not a 13-digit format!”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException
}
EXAMPLE 4
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Name”:”UG Test”,
“Owner”:”test”,
“UserGroupIDList”:[0]
}
OUTPUT
{
“Status”:”OK”,
“Message”:”JSONArray[0] is not a String (class java.lang.Integer : 0).”
“ExptType”:”org.json.JSONException”
}
INPUT
{
“SysUser”:”api”,
“SysPwd”:”pwd”,
“Name”:”UG Test”,
“Owner”:0,
“UserGroupIDList”:[“1”]
}
OUTPUT
{
“Status”:”OK”,
“Message”:”[Error] Parameter Owner ‘0’ is not a valid owner.”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddPolicyGroupToUserGroup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
UserGroupID String ID of User Group
PolicyGroupIDList Array of Array of Policy Group ID
Strings
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“UserGroupID”:”1686621934417”,
“PolicyGroupIDList”:[“1686625081008”]
}
OUTPUT
{
“Status”:”OK”
}
EXAMPLE 2
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“UserGroupID”:”1686621934417”,
“PolicyGroupIDList”:[“1686626692901”,”1686626701490”]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“UserGroupID”:”1686621934417”,
“PolicyGroupIDList”:[“1686626692901”]
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter PolicyGroupIDList, 1686626692901, already
exists in UserGroupID 1686621934417!”,
“ExptType”:”com.ahsay.cbs.mT”
}
EXAMPLE 4
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“UserGroupID”:”2”,
“PolicyGroupIDList”:[“1”]
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter UserGroupID, 2 is not 13-digit format!”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“UserGroupID”:”1111111111111”,
“PolicyGroupIDList”:[“2”]
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter UserGroupID, 1111111111111 does not
exist!”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
V1 LISTUSERS.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListUsers.do
DEPRECATED SINCE VERSION
7.15.6.38
V2 LISTUSERS.DO
v2 ListUsers.do API was introduced for handling of features related to Quota Management.
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/ListUsers.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
Criteria String all
paid
trial
suspended
locked
inactive
A-B
B-C
RETURN VALUES
USERCLIENTTYPE
USERLOGINNAME
USER
QUOTALIST
USERGROUP
CONTACT
MODULEUSAGE
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“searchStr”:”obm”
}
OUTPUT
{
“Status”:”OK”,
URL
https://CBS.EXAMPLE.COM/obs/api/json/AuthUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
Password Password used to login
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”SampleUser”,
“Password”:”SamplePassword”
}
OUTPUT 1
{
“Status”:”OK”
}
OUTPUT 2: User does not exist
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘NonExistentUser’ not
found.”,
“ExptType”:”com.ahsay.obs.core.dbs.ai”
}
Backup/Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set >
%v6 Backup Set Name% > Destination > Standard Destination > Rebuild
URL
https://CBS.EXAMPLE.COM/obs/api/json/AuthUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
BackupSetID String ID of the backupset. Obtainable in GetBackupset API.
CheckCrc Boolean Cyclic redundancy check.
RETURN VALUES
REBUILD STATUS
EXAMPLES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1686639360356”
}
OUTPUT
{
“Status”:”OK”
}
OUTPUT 2: BACKUPSET DOES NOT EXIST
{
“Status”:”Error”,
“Message”:”Backup Set for ID=’1686639360356’ notfound”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/AuthUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
RETURN VALUES
JSON OBJECTS
REBUILDSTATUS
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1686639360356”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“Status”:”Finished”,
“LoginName”:”obm”,
“EndTime”:1686640128382,
“StartTime”:1686640127867,
“BackupSetID”:”1686639360356”
}
}
OUTPUT 2: NOT YET STARTED
{
“Status”:”OK”,
“Data”:{
“Status”:”Not yet started”,
“LoginName”:”obm”,
“EndTime”:-1,
“StartTime”:-1,
“BackupSetID”:””
}
}
Backup/Restore > Users, Groups & Policies > Backup User > %User Name% > Statistics
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetUserStorageStat.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Client user name
Owner String Owner of system user (if applicable)
YearMonth String In “yyy-MM” format. For example, to get the storage
statistics of January 2023, the parameter is “2023-01”
BackupSetID String “all” to get statistics of all backup sets, or the backup set
ID of the backup set.
RETURN VALUES
AVERAGESTAT
DETAILSTAT
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“YearMonth”:”2023-06”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“AvgDataRawSize”:”5504624”,
“AvgUploadRawSize”:”5504624”,
“AvgRetainRawSize”:”0”,
“AvgRetainUncompressed”:”0”,
“AvgTotalStorageUncrompressed”:”0”,
“AvgUploadSize”:”5.25 M”,
“AvgDataRawUncompressed”:”5.9 M”,
“AvgDataUncompressed”:”5.9 M”,
“AvgRetainSize”:”0”,
“AvgTotalStorageSize”:”5.25 M”,
“AvgTotalStorageRawUncompressed”:”6183694”,
“AvgUploadUncompressed”:”5.9 M”,
“AvgUploadNo”:”53”,
“AvgTotalStorageNo”:”39”,
“Storage”:[
{
“UploadRawSize”:”5504624”
“TotalRestoreSize”:0,
“DataRawUncompressed”:”6183694”,
“DataUncompressed”:”5.9 M”,
“UploadRawUncompressed”:”6183694”,
“TotalStorageNo”:”39”,
“UploadNo”:”39”,
“UploadSize”:”5.25 M”,
“DataSize”:”5.25 M”,
“TotalStorageRawSize”:”5504624”,
“RetainRawUncompressed”:”0”,
“TotalRestoreFileNo”:”0”,
“TotalBackupSize”:”5.25 M”,
“RetainUncompressed”:”0”,
“TotalStorageUncompressed”:”5.9 M”,
“RetainSize”:”0”,
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“YearMonth”:”2023-01”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”No storage log found”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
Backup/Restore > Users, Groups & Policies > Backup user > %User name%
V1 UPDATEUSERPROFILE.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateUserProfile.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 UPDATEUSER.DO
To facilitate the Quota Management feature, a new version of the UpdateUserProfile.do API (v2
UpdateUser.do) was introduced.
NOTE
The name of the v1 UpdateUserProfile.do API has changed to UpdateUser.do
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/UpdateUser.do
AVAILABLE SINCE VERSION:
9.5
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
Alias String System User alias (if applicable)
Status String SUSPENDED or ENABLE (Default)
Type String TRIAL or PAID. Default to TRIAL if not
specified.
JSON OBJECTS
MODULESETTINGS
WINDOWSEVENTLOGSETTINGS
QUOTALIST
SYSTEMSETTINGS
EXAMPLES
EXAMPLE 1
EXAMPLE 3
EXAMPLE 7
EXAMPLE 9
INPUT – Change subscription type to ‘PAID” and disable ‘suspend at’ option
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“Type”:”PAID”,
“UserSuspendSettings”:{
“Enabled”:”false”,
“Date”:2106396800000,
}
}
OUTPUT
{
“Status”:”OK”
}
EXAMPLE 11
Backup/Restore > Users, Groups & Policies > Backup user > %User name% > User Profile >
Contact
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddContact.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
NewContact JSON Object Contact See Contact
RETURN VALUES
CONTACT
EXAMPLES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“NewContact”:{
“Name”:”contact1”,
“Email”:”[email protected]”
}
}
OUTPUT
{
“Status”:”OK”
}
OUTPUT 2 – Duplicate contact email
{
“Status”:”Error”,
“Message”:”[UpdateUserProfile.checkDuplicatedEmail] Contact already
exists <[email protected]>",
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
Backup / Restore > Users, Groups & Policies > Backup user
V1 ADDUSER.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddUser.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 ADDUSER.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/AddUser.do
AVAILABLE SINCE VERSION:
9.5
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
Password String Password to login
Email String Contact Email
QuotaList JSON Object Array See QuotaList
Status String If this valus is “SUSPENDED”, the user is
suspended. Otherwise, the user is
enabled.
ClientType String ACB or OBM
Type String TRIAL or PAID. Default to TRIAL if not
specified.
UserHome String Default to the first user home on your
user home configuration if not specified.
GUESTVM
SOCKET
GUESTVM
SOCKET
QUOTALIST
RETURN VALUES
EXAMPLE 1
INPUT – Add OBM paid user with AhsayCBS quota 50 GB and predefined destination quota of 50 GB
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm2”,
“Password”:”obm2”,
“Email”:[email protected],
“Type”:”Paid”:,
“Status”:”ENABLE”,
“ClientType”:”OBM”,
“QuotaList”:[
{
“Enabled”:true,
“DestinationKey”:”OBS”,
“Quota”:53687091200
},
{
“Enabled”:true,
“DestinationKey”:”-1686812937526”,
“Quota”:53687091200
}
]
}
OUTPUT
{
“Status”:”OK”
}
OUTPUT 2 – If destination is not visible to user
{
“Status”:”Error”,
“Message”:”Destination ‘-1686812937526’ is not visible to user ‘obm2’
according to policy’s [Destinations Visible to Users] settings.”,
“ExptType”:”java.lang.Exception”
}
OUTPUT 3 – If the Enable parameter is missing from a destination in the QuotaList
{
“Status”:”Error”,
“Message”:”Value ‘Enabled’ is missing in item ‘-1686812937526’ of
‘QuotaList’.”,
“ExptType”:”java.lang.Exception”
}
OUTPUT 4 – If the Enable is invalid for a destination in the QuotaList
EXAMPLE 2
INPUT – Add OBM paid user with AhsayCBS quota 50 GB and Total Quota 75 GB
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm1”,
“Password”:”obm1”,
“Email”:”[email protected]”,
“Type”:”Paid”,
“Status”:”ENABLE”,
“ClientType”:”OBM”,
“QuotaType”:”TOTAL_QUOTA”,
“StorageQuota”:75,
“QuotaList”:[
{
“DestinationKey”:”OBS”,
EXAMPLE 3
Backup / Restore > Users, Groups & Policies > Backup user > %User Name%
V1 GETUSER.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetUser.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 GETUSER.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/GetUser.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of System User (if applicable)
RETURN VALUES
USER
CONTACTLIST
EMAILREPORTSETTINGS
FORGETPASSWORDSETTINGS
GROUPOLICYSETTING
HOSTINFO
HOSTSET
LDAPSETTINGS
MODULESETTINGS
PASSWORDHISTORY
MOVEUSERHOMERECORD
ROUTINEJOBSETTINGS
SECURITYSETTINGS
USERLOCKSETTINGS
USERSUSPENDSETTINGS
MODULEUSAGE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm2”
}
OUTPUT
{
“Status”:”OK”
“Data”:{
“Timezone”:”1098”,
“ClientRunVersion”:””,
“Owner”:””,
“HostCount”:1,
“SoftwareUpdateSettings”:{
“ReadOnly”:false,
“Enabled”:true,
“Id”:””
},
“ModuleSettings”:{
“MobileQuota”:0,
“VMwareVMQuotaTYpe”:”GUESTVM”,
“VMwareVMQuota”:0,
“MobileEnabled”:false,
“DeltaMergeEnabled”:false,
“MSExchangeMailboxBackupEnabled”:false,
“DeduplicationEnabled”:false,
“MariaDBBackupEnabled”:false,
“OracleBackupEnabled”:false,
“QnapEnabled”:false,
“MSExchaneBackupEnabled”:false,
“OpenDirectEnabled”:false,
“VMwareBackupEnabled”:false,
“InFileDeltaEnabled”:false,
“MSHyperVMQuota”:0,
“MySQLBackupEnabled”:false,
“MobileV2Quota”:0,
“LotusDominoBackupEnabled”:false,
“OpenDirectQuota”:0,
“MobileV2Enabled”:false,
“ReadOnly”:false,
“Office365MailQuota”:0,
“MSHyperVMQuotaType”:”GUESTVM”,
“NasClientENabled”:false,
“MSSQLBackupEnabled”:false,
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > User
Profile > General
URL
https://CBS.EXAMPLE.COM/obs/api/json/ModifyUserStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of system user (if applicable)
Status String “ENABLE” or “SUSPENDED”
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm2”
“Status”:”SUSPENDED”
}
OUTPUT
{
“Status”:”OK”
}
OUTPUT 2 – User does not exist
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘obm2’ not found.”,
“ExptType”:”com.ahsay.obs.core.dbs.ai”
}
Backup / Restore > Users, Groups & Policies > Backup User
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveUser.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of system user (if applicable)
RETURN VALUES
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm2”
}
OUTPUT
{
“Status”:”OK”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/SendForgotPwdEmail.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of system user (if applicable)
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm2”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘obm2’ not found.”,
“ExptType”:”com.ahsay.obs.core.dbs.ai”
}
Monitoring > Live Activities > Backup User > Backup Status OR Restore Status
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetUserStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
Type String The value can be one of the following:
backup
restore
RETURN VALUES
BKPSTATUS / RESTORESTATUS
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”backup”
}
OUTPUT
{
“Status”:”OK”,
“BkpStatus”:[
{
“LoginName”:”obm”,
“Owner”:””,
“ClientType”:”OBM”,
“CurrentFileType”:””,
“UploadedNumofLinks”:”0”,
“ElapsedTime”:”4 sec”,
“BackupSetID”:”1687077919738”,
“DestinationType”:”OBS”,
“CurrentFile”:””,
“TransferRate”:”0bit/s”,
“LastMessage”:”[1687077949198] Using Temporary Directory
C:\\Users\’user’\\.obm\\temp\\1687077919738\\OBS@1687077949198”,
“UploadedSize”:”0”,
“LastUpdateTime”:”06/18/2023 16:46:03”,
“EstimatedTimeLeft”:”0 sec”,
“DestinationName”:”AhsayCBS”,
“BackupSet”:”Backup Set Test (File Backup)”,
“SizeLeft”:”0”,
“ID”:”0”,
“DeltaFilePercent”:”0”,
“DeltaType”:””,
“UploadedNumOfFiles”:”0”,
“CurrentFileOperation”:””,
“BackupJobID”:”2023-06-18-16-45-58”,
“DestinationID”:”1687077949198”,
“OverallPercent”:”0”,
“Type”:”FILE”,
“CurrentFilePercent”:”0”,
“UserId”:”1686791459557”,
“Alias”:”obm”,
“DeltaFile”:””,
“UploadedNumOfDires”:”0”,
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”backup”
}
OUTPUT
{
“Status”:”OK”,
“RestoreStatus”:[
{
“LoginName”:”obm”,
“Owner”:””,
“ClientType”:”OBM”,
“CurrentFileType”:””,
“UploadedNumOfLinks”:”0”,
“ElapsedTime”:”0 sec”,
“BackupSetID”:”1687077919738”,
“DestinationType”:”OBS”,
“CurrentFile”:””,
“TransferRate”:”0bit/s”,
“LastMessage”:”start,Start [ AhsayOBM v9.5.4.0 ],0,0,0,,0,0\r\n”,
“UploadedSize”:”0”,
“LastUpdateTime”:”06/18/2023 16:58:28”,
“EstimatedTImeLeft”:”0 sec”,
“DestinationName”:”AhsayCBS”,
“BackupSet”:”Backup Set Test (File Backup)”,
“SizeLeft”:”0”,
“ID”:”0”,
“DeltaFilePercent”:”0”,
“ExecuteJob”:””,
“RestoreJobID”:”2023-06-18-16-58-28”,
“DeltaType”:””,
“UploadedNumOfFiles”:”0”,
“CurrentFileOperation”:””,
“DestinationID”:”1687077949198”,
“OverallPercent”:”0”,
“Type”:”FILE”,
“CurrentFilePercent”:””,
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> Execute Job
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetServerRunJobStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
User String Username of the user to lookup.
RETURN VALUES
RUNJOB
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“User”:”obm”
}
OUTPUT
{
“Status”:”OK”,
“RunJob”:[
{
“BackupSetID”:”1687077919738”,
“ExecuteJob”:””
}
]
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Click “Auto
Update” > mark / unmark > Click “Auto Update” or “Cancel Auto Update” button
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateAUA.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
Enabled Boolean Set the list of users to enable / disable
Auto Update.
UerIdList String Multiple login names (case sensitive),
separated by commas.
For example: user1, user2, uSEr3
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Enabled”:false,
“UserIdList”:”user1, user2”
}
OUTPUT
{
“Status”:”OK”
}
EXAMPLE 2
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“UserIdList”:”user1, user2”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Parameter Enabled is null / empty!”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Enabled”:true,
“UserIdList”:”obm2”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘obm2’ not found.”
“ExptType”:”com.ahsay.obs.core.dbs.ai”
}
The related settings can be found on the AhsayCBS web console at:
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name%
NOTE
Ahsay v9 introduces Deduplication. For users running v9 client, new backup sets created from v9 will not use
In-File Delta, but rather use Deduplication; adjust your API call accordingly.
V1 UPDATEBACKUPSET.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateBackupSet.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 UPDATEBACKUPSET.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/UpdateBckupSet.do
AVAILABLE SINCE VERSION:
9.5.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Username of the backup user.
BackupSetID String Obtainable by calling the ListBackupsets
API.
RecycleBinSettings JSON Object See RecycleBinSettings
ReadOnly Boolean True / False
RETURN VALUES
JSON OBJECTS
REMINDERSETTINGS
INFILEDELTASETTINGS
MONTHLYINFILEDELTASCHEDULE
LOCALCOPYRETENTIONPOLICYSETTING
ADVANCEDRETENTIONPOLICY
CDPBACKUPCONTROLSETTINGS
BANDWIDTHCONTROLSETTINGS
FILTERSETTINGS
FILTERLIST
PATTERN
APPLICATIONSETTINGS
SCHEDULESETTING
WEEKLYSCHEDULELIST
MONTHLYSCHEDULELIST
CUSTOMSCHEDULELIST
ALLOWEDIP
DESTINATIONSETTINGS
DESTINATION
NETWORKADDRESS
RECYCLEBINSETTINGS
NOTE
The OpenDirect setting (EnbleOpenDirect) cannot be changed once it was enabled when creating a
backupset. Create a new backup set if you need to disable OpenDirect for your backup set.
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ApplicationSettings”:{
“@class”:”com.ahsay.obx.cxp.cloud.Office365ExchangeOnlineSettings”,
“RunOnServer”:false,
“Destination”:{
“@class”:”com.ahsay.obx.cxp.obs.Office365ExchangeOnlineDestination”,
“Type”:”Exchange”,
“Password”:””,
“DataMigrationMappingMergedToIndex”:false,
“MultiAccounts”:true,
“UserName”:”[email protected]”,
“DestinationKey”:”OBS”,
“Id”:”-1686815201815”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687138324430”,
“DestinationSettings”:{
“DestinationList”:[
{
“Name”:”CBS”,
“@class”:”com.ahsay.obx.cxp.obs.ObsDestination”:,
“Type”:”OBS”
}
]
}
}
EXAMPLE 3 – UPDATING A WEEKLY IN-FILE DELTA SETTING (V8 LEGACY BACKUP SET)
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“InFileDeltaSettings”:{
“Enabled”:true,
“MinDeltaFileSize”:”30”,
“MaxNumOfDelta”:”200”,
“MaxDeltaRatio”:”55”,
“DefaultDeltaType”:”I”,
“WeeklyInFileDeltaSchedule”:{
“Day”:[“I”,”D”,”I”,”D”,”I”,”D”,”I”]
} }
}
OUTPUT
{
“Status”:”OK”
}
EXAMPLE 4 – UPDATING A MONTHLY IN-FILE DELTA SETTING (V8 LEGACY BACKUP SET)
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“InFileDeltaSettings”:{
“Enabled”:true,
“MinDeltaFileSize”:”30”,
“MaxNumOfDelta”:”200”,
“MaxDeltaRatio”:”55”,
“DefaultDeltaType”:”I”,
“MonthlyInFileDeltaSchedule”:{
“Month”:[“D”,”I”,”D”,”I”,”D”,”I”,”D”,”I”,”D”,”I”,”D”,”I”,”D”],
“Date”:”3”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”ACB”,
“BackupSetID”:”1692320086130”,
“RecycleBinSettings”:{
“Enabled”:true,
“RetentionPeriod”:10
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“RetentionPolicySettings”:{
“Period”:”3”,
“Type”:”SIMPLE”,
“Unit”:”JOBS”
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“RetentionPolicySettings”:{
“Type”:”ADVANCED”,
“AdvancedRetentionPolicyList”:[
{
“Id”:”1687139082362”,
“Type”:”DAILY”,
“NumbersToKeep”:”3”
}
]
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“RetentionPolicySettings”:{
“Period”:”3”,
“Type”:”ADVANCED”,
“Unit”:”JOBS”,
“AdvancedRetentionPolicyList”:[
{
“Id”:”168713082362”,
“Type”:”WEEKLY”,
“NumbersToKeep”:”3”,
“Mon”:”true”
}
]
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“RetentionPolicySettings”:{
“Type”:”ADVANCED”,
“AdvancedRetentionPolicyList”:[
{
“Id”:”1687139082362”,
“Type”:”MONTHLY”,
“Day”:”12”,
“NumbersToKeep”:”3”
}
]
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“RetentionPolicySettings”:{
“Type”:”ADVANCED”,
“AdvancedRetentionPolicyList”:[
{
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“BandwidthControlSettings”:{
“Enabled”:true,
“Mode”:”Share”,
“BandwidthControlList”:[
{
“Name”:”ban1”,
“Id”:”1687139082362”,
“MaxTransferRateInBitsPerSec”:”25600000”
}
]
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“FilterSettings”:{
“Enabled”:true,
“FilterList”:[
{
“Name”:”update”,
“@class”:”com.ahsay.obx.cxp.obs.Filter”,
“Id”:”1687142103157”,
“TopDir”:”C:\\test”,
“ApplyToDir”:”false”,
“PatternList”:[
{
“Pattern”:”.txt”
},
{
“Pattern”:”.png”
}
]
}
]
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“ScheduleSettings”:{
“Enable”:true,
“DailyScheduleList”:[
{
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687139082362”,
“EnableOpenDirect”:false
}
OUTPUT
{
“Status”:”OK”
}
NOTE
The OpenDirect setting (EnbleOpenDirect) cannot be changed once it was enabled when creating a
backupset. Create a new backup set if you need to disable OpenDirect for your backup set.
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687150109716”,
“ApplicationSettings”:{
“@class”:”com.ahsay.obx.cxp.cloud.MariaDBSettings”,
“Username”:”root”,
“Version”:””,
“Port”:”3306”,
“Host”:”10.16.10.88”,
“Id”:””,
“MysqldumpPath”:”/”,
“:””
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687150109716”,
“DeduplicationSettings”:{
“Scope”:”SAME_FILES”,
“MigrateData”:false,
“Enabled”:false,
“SettingsMigrated”:false,
“Id”:””,
“BlockSize”:262144
}
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Cannot deserialize value of type ‘com.ahsay.obx.cxp.cloud.
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687150109716”,
“DeduplicationSettings”:{
“Scope”:”ALL_FILES”,
“MigrateData”:false,
“Enabled”:false,
“SettingsMigrated”:false,
“Id”:””,
“BlockSize”:262144
}
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddSelectSrc.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String User name.
BackupSetID String Obtainable in ListBackupsets API.
SelectedSrc Array of SourceBean One or multiple Source paths, as an array
of “Src”.
RETURN VALUES
JSON OBJECTS
SOURCEBEAN
EXAMPLES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“SelectedSrc”:[
{
“Src”:”C:\\New1”
},
{
“Src”:”C:\\New2\\data”
},
]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“SelectedSrc”:[
{
“Src”:”C:\New1”
}
]
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] JSON Input Syntax is incorrect!”,
“ExptType”:”java.lang.Exception”
}
EXAMPLE 3 – INPUT WITH INCORRECT ESCAPE CHARACTER DIVIDING SUB-DIRECTORY (E.G. \ INSTEAD
OF \\)
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“SelectedSrc”:[
{
“Src”:”C:\\New2\data”
}
]
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveSelectSrc.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String User name
BackupSetID String Obtainable in ListBackupsets API.
Src String or Array of String One or multiple Source paths.
Note: Special characters for JAVA must
be escaped, for example, “\” must be
replaced with “\\”
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“SelectedSrc”:[
{
“Src”:”C:\\New1”
},
{
“Src”:”C:\\New2\\data”
},
]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“SelectedSrc”:[
{
“Src”:”C:\\New1”
},
{
“Src”:”C:\\New2\\data”
},
]
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddDeselectSrc.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String User name.
BackupSetID String Obtainable in ListBackupsets API.
DeselectedSrc Array of SourceBean One or multiple Source paths, as an array
of “Src”.
RETURN VALUES
SOURCEBEAN
EXAMPLES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“DeselectedSrc”:[
{
“Src”:”C:\\New2”
}
]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“DeselectedSrc”:[
{
“Src”:”C:\\New2”
},
{
“Src”:”C:\\New1”
}
]
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveDeselectSrc.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String User name
BackupSetID String Obtainable in ListBackupsets API.
Src String or Array of String Note: Special characters for JAVA must
be escaped, for example, “\” must be
replaced with: “\\”.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“Src”:”C:\\New2”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“Src”:[
”C:\\New2”, “C:\\New1”
]
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Backup Schedule
V1 ADDSCHEDULE.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddSchedule.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 ADDSCHEDULE.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/AddSchedule.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String User name
BackupSetID String Obtainable in ListBackupsets API.
Name String Schedule name.
Type String The value can be one of the following:
DAILY
WEEKLY
MONTHLY
CUSTOM
BackupInterval Integer Support Periodic Schedule backup for all
backup sets.
The value can be “1” or one of the
following:
1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60, 120
MS Hyper-V Backup:
INCREMENTAL
DATABASE
VMware Backup:
VMware ESXi 5.5 / 6 / 6.5 / 6.7 / 7.0 / 8.0
or VMware vCenter 5.5 / 6 / 6.5 / 6.7 /
7.0 / 8.0:
DATABASE
INCREMENTAL
RETURN VALUES
JSON OBJECTS
TIMEBEAN
WEEKSCHEDULE
CUSTOMSCHEDULE
EXAMPLES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“Name”:”DAILYTEST”,
“Type”:”DAILY”,
“BackupInterval”:5,
“FullBackup”:true
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“Name”:”WEEKLYTEST”,
“Type”:”WEEKLY”,
“BackupInterval”:-2,
“FullBackup”:true,
“Time”:{
“Hour”:08,
“Minute”:00
},
“SpaceFreeUpEnabled”:true,
“SkipBackupEnabled”:true,
“WeekSchedule”:{
“Sun”:true,
“Mon”:true,
“Tue”:true,
“Wed”:false,
“Thu”:false,
“Fri”:true,
“Sat”:true
}
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“Name”:”DAILYTEST”,
“Type”:”DAILY”,
“BackupInterval”:9,
“FullBackup”:true,
“SpaceFreeUpEnabled”:false,
“SkipBackupEnabled”:false
}
OUTPUT
{
“Status”:”Error”,
“Message”:”ScheduleSettings parameter BackupInterval only can be -1 OR
one of the following value: [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60, 120,
180,, 240, 480, 720]”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Backup Schedule
V1 UPDATESCHEDULE.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateSchedule.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 UPDATESCHEDULE.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/UpdateSchedule.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable by calling the ListBackupsets
API.
ID String Schedule ID obtainable by calling the
GetBackupset API.
Name String Schedule name.
Type String The value can be one of the following:
DAILY
WEEKLY
MONTHLY
CUSTOM
BackupInterval Integer Support periodic schedule backup for all
backup set types.
MS Hyper-V Backup:
INCREMENTAL
DATABASE
VMware Backup:
VMware ESXi 5.5 / 6 / 6.5 / 6.7 / 7.0 / 8.0
or VMware vCenter 5.5 / 6 / 6.5 / 6.7 /
7.0 / 8.0:
DATABASE
INCREMENTAL
RETURN VALUES
JSON OBJECTS
TIMEBEAN
WEEKSCHEDULE
MONTHSCHEDULE
CUSTOMSCHEDULE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ID”:” 1688116563583”,
“Name”:DAILYTEST,
“Type”:”DAILY”,
“FullBackup”:true,
“Time”:{
“Hour”:21,
“Minute”:30
},
“SpaceFreeUpEnabled”:true,
“SkiBackupEnabled”:true
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Backup Schedule
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveSchedule.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable by calling the ListBackupsets
API.
ID String or Array of String Schedule ID obtainable by calling the
String GetBackupset API.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ID”:” 1688116563583”,
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source > Apply filters to the backup source
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddFilter.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupset API.
Name String Filter name
TopDir String Appying the filter to this specific folder.
Type String The value can be one of the following:
DEFAULT
CUSTOM
Include Boolean For each of the matched files/folders
under top directory:
Exclude or include them
Only Boolean If it is set to true, it will not include all
unmatched files/folders.
If it is set to false, it will include all
unmatched files/folders.
Apply2Dir Boolean Apply filter to files.
Apply2File Boolean Apply filter to folders.
Patterns Array of PatternBean Refer to PatternBean
Username String If username and password are empty,
add the address without credential.
Password String If username and password are empty,
add the address without credential.
JSON OBJECTS
PATTERNBEAN
EXAMPLES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“Name”:”filter1”,
“TopDir”:”C:\\test”,
“Type”:”DEFAULT”,
“Include”:false,
“Only”:true,
“Apply2Dir”:true,
“Apply2File”:true,
“Patterns”:[
{
“Pattern”:”.txt”
},
{
“Pattern”:”.png”
}
]
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source > Apply filters to the backup source
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveFilter.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable by calling the ListBackupsets
API.
ID String Filter ID, obtainable by calling the
GetBackupset API.
Name String Filter name.
TopDir String Appying the filter to this specific folder.
Type String The value can be one of the following:
DEFAULT
CUSTOM
Include Boolean For each of the matched files/folders
under top directory:
Exclude or include them
Only Boolean If it is set to true, it will not include all
unmatched files/folders.
If it is set to false, it will include all
unmatched files/folders.
Apply2Dir Boolean Apply filter to files.
Apply2File Boolean Apply filter to folders.
Patterns Array of PatternBean Refer to PatternBean
Username String If username and password are empty,
add the address without credential.
RETURN VALUES
JSON OBJECTS
PATTERNBEAN
EXAMPLES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ID”:” 1687499274011”,
“Name”:”filter2updated”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ID”:” 1687499274011”,
“Name”:”testupdated”,
“Patterns”:[
{
“Pattern”:”.txt123”
},
{
“Pattern”:”.png123”
}
]
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Source > Apply filters to the backup source
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddFilter.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable by calling the ListBackupsets
API.
ID String or Array of String Filter obtainable by calling the
GetBackupset API.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ID”:” 1687499274011”,
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Bandwidth Control
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveBandwidthControl.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable by calling the ListBackupsets
API.
ID String or Array of String Filter obtainable by calling the
GetBackupset API.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687137085658”,
“ID”:” 1687500432855”,
}
OUTPUT
{
“Status”:”OK”
}
NOTES
You may need to compliment AddBackupSet, with UpdateBackupSet API.
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddBackupSet.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Platform String ‘Temporary directory for storing backup
files’ value would be set accordingly.
The value can be set to one of the
following (lower-case):
windows
mac
linux
CloudFileType String The type of cloud file, please use one of
the available types within the set
provided in the table “Destination Type”
CloudBackupSourceSettings JSON Object The settings for the cloud backup source,
the underlying parameters are specific to
each destination type. Please refer to the
tables labeled with “DestinationSettings
(DESTINATION_TYPE)” under
ADDPREDEFINEDDESTINATION API for
the correct format of each cloud file
type.
BackupSetName String Name of the new backup set.
BackupSetType String Backup type of the new backup set.
The value can be set to one of the
RETURN VALUES
JSON OBJECTS
DESTINATION
EXAMPLES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetName”:”Test_Name”,
“BackupSetType”:”Cloud File”,
“EncryptionType”:”DEFAULT”,
“Length”:”128”,
“Key”:”123456”,
“Platform”:”windows”,
“RunOnServer”:false
“CloudFileType”:”GDrive”,
“CloudBackupSourceSettings”:{
“Token”:4/0AeaYSHDXuv7rofdyAc20-
g1Xoy4YoYite1Auly8NJA84CIGHtlmY9CSZ2ubfTN1N7pFqwQ”
}
OUTPUT
{
“Status”:”OK”,
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetName”:”API Cloud File Invalid”,
“Backup Set Type”:”Cloud File”,
“EncryptionType”:”DEFAULT”,
“Length”:”128”,
“Key”:”hash”,
“Platform”:”windows”,
“RunOnServer”:false
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Invalid Platform. Please specify one of the
following: windows / mac / linux”,
“ExptType”:”java.lang.Exception”
}
EXAMPLE 3 – PLATFORM PARAMETER INCORRECT - WRONG PLATFORM FOR BACKUP SET TYPE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetName”:”Test_Name”,
“BackupSetType”:”FILE”,
“Platform”:”mac”,
“DestinationList”:[
{
“Name”:”AhsayCBS”,
“Type”:”OBS”
}
]
}
OUTPUT
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > IP Allowed for Restore
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddAllowedIP.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
NewAllowedIP AllowedIPBean Refer to AllowedIPBean
RETURN VALUES
JSON OBJECTS
ALLOWEDIPBEAN
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687501131522”,
“NewAllowedIP”:{
“StartIP”:”1.1.1.1”,
“EndIP”:”255.255.255.255”
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > IP Allowed for Restore
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemoveAllowedIP.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
AllowedIP AllowedIPBean ID of allowed IP to remove.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687501131522”,
“AllowedIP”:” 1687501909703”
}
OUTPUT
{
“Status”:”OK”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteBackupData.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
BackupSetName String Either backup set ID or backup set name
should be provided.
RETURN VALUES
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteBackupData.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetName String Either backup set ID or backup set name
should be provided.
InBackupJob String Backup Job ID.
Path String Path to the backup files.
Type String The value can be one of the following:
F
D
I
BackupByJob String Backup Job ID.
RETURN VALUES
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteBackupSet.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Backup set ID.
RETURN VALUES
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687152855403”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687501131522”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Cannot delete the backup set ‘Test_Name(1687501131522)’
because the standard destination ‘dest_Local’ is used. Please delete the
backup set via backup client console.”
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”test_user”,
“BackupSetID”:”1687501131522”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[UserCacheManager.NoSuchUserExpt] User ‘test_user’ not
found.”,
“ExptType”:”com.ahsay.obs.core.dbs.ad”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687501131500”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”Backup set ‘1687501131500’ not found.”,
“ExptType”:”com.ahsay.obs.core.dbs.DbsException”
}
The related settings can be found on the AhsayCBS web console at:
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetBackupJobProgress.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Backup set ID.
DestinationID String Obtainable by calling the GetbackupSets
API.
BackupJobID String Obtainable by calling the GetbackupSets
API.
RETURN VALUES
RECORD
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687505199600”,
“DestinationID”:”1687505211240”,
“BackupJobID”:”2023-06-23-15-27-57”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“BackupSetName”:”default-backup-set-name-1”,
“LoginName”:”obm”,
“Owner”:””,
“EndTime”:”2023-06-23 15:29:37”,
“TotalFileCount”:”70”,
“StartTime”:”2023-06-23 15:27:58”,
“FileUploadTime”:”2023-06-23 15:28:16”,
“BackupSetID”:”1687505199600”,
“UserId”:”obm”,
“UploadedFileSize”:”70479290”,
“CurrentFilename”:”C:\\Users\\ahsay\\Desktop\\file_sample.exe”,
“TotalFileSize”:”78477452”,
“ID”:”2023-06-23-15-27-57”,
“CurrentFileCount”:”0”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name%
V1 GETBACKUPSET.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetBackupSet.do
DEPRECATED SINCE VERSION:
7.15.6.38
V2 GETBACKUPSET.DO
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/GetBackupSet.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
JSON OBJECTS
DATA
For details on all parameters returned by GetBackupSet.do, please refer to the input
parameters outlined in the UpdateBackupSet section.
TOTALRESTORE (DATA{}:DESTINATIONSETTINGS{}:DESTINATIONlIST[]:STATISTICS{}:TOTALRESTORE{})
DATAAREA (DATA{}:DESTINATIONSETTINGS{}:DESTINATIONLIST[]:STATISTICS{}:DATAAREA{}
DEDUPESAVING
(DATA{}:DESTINATIONSETTINGS{}:DESTINATIONLIST[]:STATISTICS{}:DEDUPESAVING{})
RETENTIONAREA
(DATA{}:DESTINATIONSETTINGS{}:DESTINATIONLIST{}:STATISTICS{}:RETENTIONAREA{})
TOTALBACKUP (DATA{}:DESTINATIONSETTINGS{}:DESTINATIONLIST[]:STATISTICS{}:TOTALBACKUP{})
MODULEUSAGE
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”ACB”,
“BackupSetID”:”1692674960375”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“Timezone”:”1098”,
“Delete”:false,
“Owner”:null,
“DisplayOwner”:”-“,
“Os”:”windows”,
“RunBackupSettings”:{
“DestinationIDList”:[],
“Enabled”:false,
“BackupType”:””,
“BackupJobID”:””,
“Id”:””
},
“RunOnServer”:false,
“V6Passwords”:{
“ApplicationPassword”:””,
“WinUserAuthPassword”:””,
“Id”:””
},
“SelectedShortcutList”:[],
“EnsureTopDirExistenceInLogin”:true,
“PlatformSupportVMwareRunDirect”:true,
“PreCommandList”:[],
“ApplicationSupportHyperVRunDirect”:false,
“RecycleBinSettings”:{
“Enabled”:true,
“Id”:””,
“RetentionPeriod”:7
},
“Name”:”default-backup-set-name-1”,
“FollowLink”:true,
“NasEncryptionKey”:null,
“ApplicationSupportBackupMacResourceData”:false,
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687505199600”,
“DestinationID”:”1687505211240”,
“BackupJobID”:”2023-06-23-15-27-57”
}
OUTPUT
{
],
“DeduplicationSettings”:{
“MigrateData”:false,
“Scope”:”ALL_FILES”,
“Enabled”:true,
“SettingsMigrated”:true,
“Id”:””,
“BlockSize”:65536
},
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”ACB”,
“BackupSetID”:”1692674960375”
}
OUTPUT
{
],
“ModuleUsage”:{
“ModuleUsage”:1,
“ModuleType”:”Office365Mail”,
“HostCount”:1
}
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupFiles.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Backup set ID.
BackupJobID String Obtainable in GetBackupsets API.
Path String Path to the backup files.
ListAll Boolean If it is true, all files ar elisted, starting
from root directory.
RETURN VALUES
BACKUP FILE
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687750405259”,
“BackupJobID”:”2023-06-26-11-43-15”,
“Path”:”C:\\”
“ListAll”:true
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“OriginalFileSize”:0,
“LastModified”:”0”,
“Type”:”0”,
“InBackupJob”:”Current”,
“FullPath”:”C:\\”,
“BackupedByJob”:”2023-06-26-11-33-52”,
“Name”:””,
“FileSize”:1536
},
{
“OriginalFileSize”:0,
“LastModified”:”0”,
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupJobMode.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
BackupDate String In yyyy-MM-dd format.
RETURN VALUES
RECORD
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupDate”:”2023-06-26-11-33-52”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“BackupSetName”:”v6 File Backup”,
“LoginName”:”obm”,
“Owner”:””,
“EndTime”:”2023-06-26 11:34:15”,
“UserId”:”obm”,
“StartTime”:”2023-06-26-11-33-52”,
“BackupJobMode”:”M”,
“BackupSetID”:”1687750405259”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupJobs.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
SkipEmpty Boolean If it is true, backup set with no files is
skipped.
RETURN VALUES
BACKUP SET
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“BackupJob”:[
“2023-06-26-11-33-52”
],
“BackupSetID”:”1687750405259”,
“Removed”:false
}
]
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupJobStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
Owner String Sub admin username (if applicable).
LoginName String Client user name.
BackupDate String In yyyy-MM-dd format.
RETURN VALUES
RECORD
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Owner”:””,
“LoginName”:”ACB”,
“BackupDate”:”2023-08-16”
}
OUTPUT
{
“Status”:”Error”,
“Data”:[
{
“BackupJobStatus”:”BS_STOP_BY_USER”,
“BackupSetName”:”TEST 1”,
“LoginName”:”ACB”,
“Owner”:””
“MissedDatabase”:””,
“EndTime”:”2023-08-16 14:06:33”,
“SuccessDatabase”:””,
“SuccessPublicFolder”:””,
“StartTime”:”2023-08-16 14:06:18”,
“BackupSetID”:”1692164297907”,
“MissedPublicFolder”:””,
“DestinationID”:”1692164297907”,
“UserId”:”ACB”,
“UploadSize”:0,
“RunVersion”:”9.7.0.0”,
“ID”:”2023-08-16-14-16-17”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupSets.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
ListAll Boolean True or False; shows all information for
all Backup Sets of specified Backup User.
RETURN VALUES
BACKUP SET
MODULEUSAGE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”ACB”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“Type”:”FILE”,
“ID”:”1692320086130”,
“Name”:”BackupSet-1”
},
{
“Type”:”Office 365 Exchange Online”,
“ID”:”1692322592995”,
“M365-1”
},
{
“Type”:”Office 365 Exchange Online”,
“ID”:”1692674960375”,
“Name”:”M365-2”
]
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”ACB”,
“ListAll”:true
}
OUTPUT
{
...
“ModuleUsage”:{
“ModuleUsage”:5,
“ModuleType”:”Office365Mail”,
“HostCount”:1
}
}
NOTE
API results will vary depending on the usage of the parameter “ListAll”.
URL
https://CBS.EXAMPLE.COM/obs/api/json/RunBackup.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
CancelBackup Boolean This option can be used to cancel a
pending backup job from the server
initiated backup job list. Cannot be used
to stop / cancel an in process (running)
backup job.
BackupType String It must be empty for File, MySQL,
MariaDB, Lotus Notes, System State, MS
Windows Server 2008, MS Exchange Mail
Level Backup, Cloud File, Microsoft 365
Exchange Online, and Linux Bare Metal
backup sets.
MS Hyper-V Backup:
INCREMENTAL
DATABASE
VMware Backup:
VMware ESXi 5.5 / 6 / 6.5 / 6.7 / 7.0 / 8.0
or VMware vCenter 5.5 / 6 / 6.5 / 6.7 /
7.0 / 8.0:
DATABASE
INCREMENTAL
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”username”,
“BackupSetID”:”1462518403716”
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Command Line Tool
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddPreCommand.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
Name String Command Name.
WorkingDir String Directory where the command takes
place.
Command String Actual command
Username String If username and password are empty,
add the address without credential.
Password String If username and password are empty,
add the address without credential.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“Name”:”test”,
“WorkingDir”:”test”,
“Command”:”test”
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Command Line Tool
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdatePreCommand.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
ID Long Command ID, Obtainable in
GetBackupset API.
Name String Command Name.
WorkingDir String Directory where the command takes
place.
Command String Actual command
Username String If username and password are empty,
add the address without credential.
Password String If username and password are empty,
add the address without credential.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687755342349”,
“Name”:”newname”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687755342349”,
“Command”:”newcommand”
}
OUTPUT
{
“Status”:”OK”}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687755342349”,
“WorkingDir”:”newworkingdir”
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Command Line Tool
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemovePreCommand.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
ID Long Command ID, Obtainable in
GetBackupset API.
RETURN VALUES
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687755342349”
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Command Line Tool
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddPostCommand.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
Name String Command Name.
WorkingDir String Directory where the command takes
place.
Command String Actual command
Username String If username and password are empty,
add the address without credential.
Password String If username and password are empty,
add the address without credential.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“Name”:”test2”,
“WorkingDir”:”test2”,
“Command”:”test2”
}
OUTPUT
{
“Status”:”OK”
}
Backup / Restore > Users, Groups & Policies > Backup User > %User Name% > Backup Set
> %Backup Set Name% > Command Line Tool
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdatePostCommand.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
ID Long Command ID, Obtainable in
GetBackupset API.
Name String Command Name.
WorkingDir String Directory where the command takes
place.
Command String Actual command
Username String If username and password are empty,
add the address without credential.
Password String If username and password are empty,
add the address without credential.
EXAMPLES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687756006432”,
“Name”:”newname”
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687756006432”,
“Command”:”newcommand”
}
OUTPUT
{
“Status”:”OK”}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687756006432”,
“WorkingDir”:”newworkingdir”
}
OUTPUT
{
“Status”:”OK”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/RemovePostCommand.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
BackupSetID String Obtainable in ListBackupsets API.
ID Long Command ID, Obtainable in
GetBackupset API.
RETURN VALUES
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“ID”:”1687756006432”
}
OUTPUT
{
“Status”:”OK”
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListRestoreJobs.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
RETURN VALUES
JSON OBJECTS
DATA
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“RestoreJob”:[
“2023-06-26-13-25-13”
],
“BackupSetID”:”1687755057644”,
“Removed”:false
}
]
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListRestoreJobStatus.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
Owner String Sub-admin username (if applicable).
LoginName String Client user name.
RestoreDate String In yyyy-MM-dd format.
RETURN VALUES
DATA
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“RestoreDate”:”2023-06-26”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“Status”:”RESTORE_STOP_SUCCESS”,
“BackupSetName”:”default-backup-set-name-1”,
“LoginName”:”obm”,
“Owner”:””,
“EndTime”:”2023-06-26 13:25:21”,
“UserId”:”obm”,
“RunVersion”:”9.5.4.0”,
“StartTime”:”2023-06-26 13:25:14”,
“ID”:”2023-06-26-13-25-13”,
“BackupSetID”:”1687755057644”,
“RestoreSize”:0,
“DestinationID”:”1687755083984”
}
]
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListRestoreDrillJobs.do
AVAILABLE SINCE VERSION:
9.9.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
RETURN VALUES
JSON OBJECTS
DATA
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“RestoreDrillJob”:”2023-10-16-10-28-01”,
“BackupSetID”:”1697422994935”,
“DestinationID”:”1697423083118”
},
{
“RestoreDrillJob”:”2023-10-16-10-30-06”,
“BackupSetID”:”1697422994935”,
“DestinationID”:”1697423083118”
}
]
}
GETBACKUPJOBREPORT
This API can be used to retrieve a detailed report of a specific backup job.
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetBackupJobReport.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
RETURN VALUES
JSON OBJECTS
REPORT
INFOLOG
FILELOG
MOVELOG
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“Owner”:””,
“BackupSetID”:”1692320086130”,
“DestinationID”:”-1692249670055”,
“BackupJobID”:”2023-0823-10-00-36”,
“Cdp”:”false”
}
OUTPUT
{
“Data”:{
“ID”:”2023-06-26-13-24-35”,
“FromIp”:”10.3.121.64”,
“SuccessDatabase”:””,
“MissedDatabase”:””,
“SuccessPublicFolder”:””,
“MissedPublicFolder”:””,
“Logs”:[
{
“Type”:”start”,
“LogType”:”start”,
“Timestamp”:”2023/06/26 13:24:37”,
C:\\Users\\Administrator\\temp\\1687755057644\\OBS@1687755083984”
},
{
“Type”:”info”,
“LogType”:”info”,
“Timestamp”:”2023/06/26 13:24:40”,
“Message”:”Index file does not exist in the destination backup
job folder \”null\””
}
],
“NumOfNewFiles”:1169,
“NumOfNewDirCount”:24,
“NumOfNewLinkDirCount”:3,
“NumOfNewLinkFileCount”:0,
“NumOfDeletedDirCount”:0,
“NumOfDeletedLinkFileCount”:0,
“TotalNewFilesSize”:6827033,
“TotalUnzipNewFilesSize”:10268480,
“NewFilesZipRatio”:”33%”,
“NumOfUpdatedFiles”:0,
“TotalUpdatedFilesSize”:0,
“TotalUnzipUpdatedFilesSize”:0,
“UpdatedFilesZipRatio”:”0%”,
“NumOfUpdatedPermissionFiles”:0,
“TotalUpdatedPermissionFileSize”:0,
“TotalUnzipUpdatedPermissionFilesSize”:0,
“UpdatedPermissionFilesZipRatio”:”0%”,
“NumOfDeletedFiles”:0,
“TotalDeletedFilesSize”:0,
“TotalUnzipDeletedFilesSize”:0,
“DeletedFilesZipRatio”:”0%”,
“NumOfMovedFiles”:0,
“TotalMovedFilesSize”:0,
“TotalUnzipMovedFilesSize”:0,
“MovedFilesZipRatio”:”0%”,
“NumOfCopiedFiles”:0,
“TotalCopiedSize”:0,
“TotalUnzipCopiedFilesSize”:0,
“CopiedFilesZipRatio”:”0%”,
“StartTime”:”2023-06-26 13:24:37”,
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetBackupJobReportSummary.do
AVAILABLE SINCE VERSION:
9.7.0.0
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User
with Admin or API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String
BackupSetID String Obtainable in GetBackupset API.
DestinationID String For backup run by OBM v6 or older, this
parameter can be omitted. For backup
run by OBM 7, this parameter must be
provided to get correct result.
BackupJobID String Obtainable in GetBackupset API.
Cdp Boolean Continuous Data Protection.
RETURN VALUES
REPORT
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“BackupJobID”:”2023-06-26-13-24-35”,
“DestinationID”:”1687755083984”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“TotalCopiedSize”:0,
“DedupeEnabled”:true,
“DedupSaving”:0,
“DedupeOriginalSize”:2384,
“EndTime”:”2023-08-23 10:00:59”,
“TotalDeletdFilesSize”:0,
“NumOfMovedFiles”:0,
“SuccessPublicFolder”:””,
“TotalUpdatedFilesSize”:726,
“TotalUpdatedPermissionFilesSize”:0,
“NumOfWarnEntries”:0,
“NumOfNewFiles”:0,
“NumOfUpdatedFiles”:1,
“NumOfCopiedFiles”:0,
“ID”:”2023-08-23-10-00-36”,
“NumOfErrorEntries”:0,
“BackupJobStatus”:”BS_STOP_SUCCESS”,
“TotalNewFilesSize”:0,
“MissedDatabase”:””,
“NumOfUpdatedPermissionFiles”:0,
“SuccessDatabase”:””,
“StartTime”:”2023-08-23 10:00:37”,
“NumOfDeletedFiles”:0,
“MissedPublicFolder”:””,
“TotalMovedFilesSize”:0
}
}
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetRestoreJobReport.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or API
role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
Owner String Owner of system user (if applicable)
BackupSetID String Obtainable in GetBackupset API.
JobID String ID of restore job. Obtainable from the client restore log or in
the user home at:
%Clientprofile%\.obm\log\%backupset_id%\Restore\YYYY-
MM-DD\YYYY-MM-DD-hh-mm-ss.log
Or
%Userhome%\username\pdf\restore\%backupset_id%\YYYY-
MM-DD\YYYY-MM-DD-hh-mm-ss.pdf
Where the JobID is YYYY-MM-DD -hh-mm-ss (e.g. file name
of the .log / .pdf file).
RETURN VALUES
REPORT
LOG
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1687755057644”,
“JobID”:””
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“Status”:”RESTORE_STOP_SUCCESS”,
“EndTime”:”2023-06-26 14:27:08”,
“TotalFileCount”:0,
“StartTime”:”2023-06-26 14:26:59”,
“TotalFileSize”:0,
“Logs”:[
{
“Type”:”start”
},
{
“Type”:”info”,
“Message”:”Same file \”C:\\Users\\Administrator\\Desktop\\Help
Files\\ACB\\BS_CDP.html\” exists already.”,
“LogType”:”info”,
“Timestamp”:”2023/06/26 14:27:03”
},
{
“Type”:”info”,
“Message”:”Same file\”C:\\Users\\Administrator\\Desktop\\Help
Files\\ACB\\BS_Create_CloudFile_Dest.html\”exists already.”,
“LogType”:”info”,
“Timestamp”:”2023/06/26 14:27:03”
},
{
“Type”:”info”,
“Message”:”Same file \”C:\\Users\\Administrator\\Desktop\\Help
Files\\ACB\\BS_CDP_Filter.html\” exists already.”,
“LogType”:”info”,
“Timestamp”:”2023/06/26 14:27:03”
},
{
“Type”:”info”,
“Message”:”Same file \”C:\\Users\\Administrator\\Desktop\\Help
Files\\ACB\\BS_Create_CloudFile_Source.html\” exists already.”,
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetRestoreDrillJobReportSummary.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or
API role.
SysPwd String Password matching SysUser.
LoginName String Client user name.
JobID String Restore drill job ID in timestamp (yyyy-MM-dd-HH-mm-
ss) format. Obtainable in ListRestoreDrillJobs API
BackupSetID String Backup set ID. Obtainable in ListRestoreDrillJobs API.
DestinationID String Destination ID. Obtainable in ListRestoreDrillJobs API.
RETURN VALUES
DATA
EXAMPLE 1
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1686639360356”,
“DestinationID”:”1697505829484”,
“JobID”:”2023-10-17-09-32-47”
}
OUTPUT
{
“Status”:”OK”,
“Data”:{
“Status”:”INVALID_DETECTED”,
“ValidChunkSize”:491185025,
“LogoPath”:”D:\\AhsayCBS\\webapps\\cbs\\images\\default.large.gif”,
“EndTime”:1697506377112,
“LastBackupRun”:”2023-10-17-09-24-12”,
“StartTime”:1697506367000
“CorruptedChunkCount”:120,
“BackupSetID”:”1697505782921”,
“TotalChunkCount”:1913,
“DestinationID”:”1697505829484”,
“RunOnClient”:false,
“ValidChunkCount”:1793,
“ToBeVerifiedChunkSize”:0,
“CorruptedChunkSize”:33432652,
“ToBeVerifiedChunkCount”:0,
“Footer”:”1999-2023 (C) Ahsay Systems Corporation All rights
reserved.”,
“TotalChunkSize”:524617677
}
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LoginName”:”obm”,
“BackupSetID”:”1686639360356”,
“DestinationID”:”xxxx”,
“JobID”:”2023-10-17-09-32-47”
}
OUTPUT
{
“Status”:”Error”,
“Message”:”[Error] Restore drill job not found.”,
“ExptType”:”java.lang.Exception
}
LISTRECEIVER
This API can be used to list all the receiver and their settings.
URL
https://CBS.EXAMPLE.COM/rps/api/json/ListReceiver.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or API
role.
SysPwd String Password matching SysUser.
RETURN VALUES
RECEIVER
TRAFFICLIMIT
USERHOMEMAPPING
IPRESTRICTION
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”
}
OUTPUT
{
“Status”:”OK”,
“Data”:[
{
“UserHomeMappings”:[
{
“RPSDir”:”F:\\rcvr”,
“OBSHome”:”C:\\Program Files\\AhsayOBS and AhsayRPS\\user”
}
],
“ObsPort”:80,
“MidButtons”:[],
“LoginName”:”rcvr”,
“MigrateFromV6”:false,
“LatestSnapshot”:”2023-06-29-10-48-19”,
“RestoringPath”:””,
“Classname”:”com.ahsay.cbs.rps.config.receiver.EditRecevierBean”,
“ObsProtocol”:”http”,
“RestoreRunning”:false,
“Update”:false,
“RestoreStatus”:””,
“Update”:false,
“ListenHost”:”0.0.0.0”,
“TrafficLimits”:[],
“V6ReplicationEnabled”:false,
“ObsSysPwd”:”system1”,
“SystemHome”:”C:\\Program
Files\\AhsayCBS\\system\\rps\\rcvshome\\rcvr”,
“RestorePointInterval”:30,
“RightButton”:[
{
“Trigger”:{},
“OpenNewFrame”:true,
“ReadPrivilege”:””,
“ImageURL”:”images/btn_ico_ok_72.png”,
“Style”:””,
“DynamicLabel”:””,
“WritePrivilege”:””,
“LabelRes”:”com.ahsay.atl.jsp.LabelInfo.OK”,
URL
https://CBS.EXAMPLE.COM/rps/api/json/UpdateReceivers.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with
Admin or API role.
SysPwd String Password matching SysUser.
Id Long Use ListReceiver.do to obtain the response
output from existing ‘Id’, then pass it back using
UpdateReceivers.do with your changes.
Note: If ‘Id’ value is 0, a new receiver is created.
This is experimental.
Note: If ‘Id’ value does not exist as a Receiver ID,
you may corrupt your CBS Receiver UI.
ReplicationEnabled Boolean Enable replication of the receiver.
LoginName String The login name of the replication receiver
account.
Password String The password of the replication receiver.
Alias String Alias of receiver
ListenPort Integer Listen port (e.g. 9444) of the source backup
server. (applies to v6 only)
ListenHost String Bind to (example “0.0.0.0”) (applies to v6
Replication)
SystemHome String The Replication System Home path (“Default
Home Directory”) for this replication receiver ID.
RestoreRunning Boolean Restore the replication snapshot.
TrafficLimits Array of Limit the usage of network bandwidth by the
TrafficLimit replication service.
UserHomeMappings Array of The source backup server user home location.
RETURN VALUES
TRAFFICLIMIT
USERHOMEMAPPING
IPRESTRICTION
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Id”:0,
“ReplicationEnabled”:true,
“LoginName”:”rcvr”,
“Password”:”rcvr1”,
“Alias”:”rcvr”,
“ObsProtocol”:”https”,
“ObsHost”:”rcvr.com”,
“ObsPort”:”443”,
“ObsVersion”:1,
“ObsSysUser”:”system”,
“ObsSysPwd”:”system1”,
“V6ReplicationEnabled”:false,
“MigrateFromV6”:false,
“ListenHost”:”0.0.0.0”,
“ListenPort”:9444,
“CrcEnabled”:false,
“CrcHour”:0,
“CrcMinute”:0,
“RestorePointInterval”:30,
“RetentionCustomizationPolicy”:60,
“SystemHome”:”C:\\Program Files\\AhsayCBS\\system\\rps\\rcvshome\\rcvr”,
“UserHomeMappings”:[
{
“RPSDir”:”F:\\rcvr”,
“OBSHome”:”C:\\Program Files\\AhsayCBS\\user”
},
],
“IPRestrictions”:[],
“TrafficLimits”:[]
}
OUTPUT
{
“Status”:”OK”
}
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Id”:0,
“ReplicationEnabled”:false,
“LoginName”:”rcvr”,
“Password”:”rcvr1”,
“Alias”:”rcvr”,
“ObsProtocol”:”https”,
“ObsHost”:”rcvr.com”,
“ObsPort”:”443”,
“ObsVersion”:1,
“ObsSysUser”:”system”,
“ObsSysPwd”:”system1”,
“V6ReplicationEnabled”:false,
“MigrateFromV6”:false,
“ListenHost”:”0.0.0.0”,
“ListenPort”:9444,
“CrcEnabled”:false,
“CrcHour”:0,
“CrcMinute”:0,
“RestorePointInterval”:30,
“RetentionCustomizationPolicy”:60,
“SystemHome”:”C:\\Program Files\\AhsayCBS\\system\\rps\\rcvshome\\rcvr”,
“UserHomeMappings”:[
{
“RPSDir”:”F:\\rcvr”,
“OBSHome”:”C:\\Program Files\\AhsayCBS\\user”
},
],
“IPRestrictions”:[],
“TrafficLimits”:[]
}
OUTPUT
{
“Status”:”OK”
}
URL
https://CBS.EXAMPLE.COM/rps/api/json/RemoveReceiver.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or API
role.
SysPwd String Password matching SysUser.
Id Long Use ListReceiver.do to obtain the response output from
existing ‘Id’, then pass it back using UpdateReceivers.do
with your changes.
Note: If ‘Id’ value is 0, a new receiver is created. This is
experimental.
Note: If ‘Id’ value does not exist as a Receiver ID, you may
corrupt your CBS Receiver UI.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“Id”:”1”,
}
OUTPUT
{
“Status”:”OK”
}
UPDATELICENSE
This API can be used to update the licensee name and license key on the AhsayCBS server for
the redirector.
URL
https://CBS.EXAMPLE.COM/rdr/api/json/UpdateLicense.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or API
role.
SysPwd String Password matching SysUser.
LicenseeName String Licensee name of redirector key.
LicenseKey String Product Key for redirector.
UseProxy Boolean Enable / Disable the use of proxy defined in AhsayCBS to
connect the internet.
RETURN VALUES
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“LicenseeName”:”Ahsay_Test_RDR”,
“LicenseKey”:”qwerty-5jjM4+Sz-SCz68XG+J”
}
OUTPUT 1
{
“Status”:”OK”,
“Key”:”qwerty-5jjM4+Sz-SCz68XG+J”,
“Deactivated”:false,
“Licensee”:”Ahsay_Test_RDR”
}
OUTPUT 2
{
“Status”:”OK”,
“Key”:”qwerty-5jjM4+Sz-SCz68XG+J”,
“Deactivated”:false,
“Info”:”Internal Error 1012. Please press the [Update] button in license
page to correct this problem. If the problem persists, please contact our
technical support team to resolve this problem.”,
“Licensee”:”Ahsay_Test_RDR”
}
OUTPUT 3
{
“Status”:”Error”,
“Message”:”License key incorrect. Please try again.”
}
OUTPUT 4
{
“Status”:”OK”,
“Key”:”qwerty-5jjM4+Sz-SCz68XG+J”,
“Deactivated”:false,
“Info”:”[OEM Liccense.checkLicTime] License expired on 1970-01-01.
Backup server is stopped”,
“Licensee”:”Ahsay_Test_RDR”
}
UPDATESERVERCONFIG
This API can be used to update the Redirector module’s setting.
The related settings can be found on the AhsayCBS web console at:
URL
https://CBS.EXAMPLE.COM/rdr/api/json/UpdateServerConfig.do
AVAILABLE SINCE VERSION:
9.1
PARAMETERS
KEY TYPE DESCRIPTIONS
SysUser String Username of an AhsayCBS System User with Admin or API
role.
SysPwd String Password matching SysUser.
SkipDuplicateUserCheck Boolean Do not check duplicate users.
BackupServers Array Redirector will redirect user to these backup servers.
EnableRdr Boolean True / False
FreeTrialServer Integer ID of the backup server for free trial registration.
RETURN VALUES
BACKUP SERVERS
EXAMPLE
INPUT
{
“SysUser”:”system”,
“SysPwd”:”system1”,
“BackupServers”:[
{
“Id”:”1”,
“Enabled”:true,
“HttpEnabled”:false,
“SslEnabled”:true,
“LoginName”:”system”,
“Password”:”system1”,
“Hostname”:”rcvr.com”,
“HttpPort”:80,
“SslPort”:443,
“Class”:”com.ahsay.cbs.rdr.config.system.EditServerConfigBean$BackupServerBean”
}
],
“SkipDuplicateUserCheck”:false,
“EnabledRdrFreeTrial”:true
}
DOCUMENTATION
For additional resources, you can find articles published in https://wiki.ahsay.com.
Available guides for all Ahsay products are available at: Administrator and User Guides
The API or parameters are available (updated) since the version shown for each API.
Term/Abbreviation Descriptions
AhsayCBS Ahsay™ Cloud Backup Suite
AhsayOBM Ahsay™ Online Backup Manager
AhsayACB Ahsay™ A-Click Backup
CBS_HOME The install location of AhsayCBS.
Windows
C:\Program Files\AhsayCBS
Linux
/usr/local/cbs
CONF_HOME The directory to store AhsayCBS configuration files.
Windows
%CBS_HOME%\conf
Linux
$CBS_HOME/conf
USER_HOME The directories where AhsayCBS store the AhsayOBM & AhsayACB
users accounts.
The default location is:
%CBS_HOME%/users
POLICY_HOME The directory where AhsayCBS store its system users and group policy
information.
Windows
%CBS_HOME%\system\policy
Linux
$CBS_HOME/system/policy
SYSTEM_HOME The directory where AhsayCBS store its system information.
Windows
%CBS_HOME%\system\
Linux
%CBS_HOME/system
WEBAPPS_HOME Location of the webapps directory inside the installation directory of
AhsayCBS.
Windows
%CBS_HOME%\webapps
Linux
$CBS_HOME/webapps
RECEIVER_HOME The location where the replicated data is stored for a particular
replication receiver.
JAVA_HOME The location where JAVA is installed.