Backup Set
This subcategory focuses on getting information regarding backup sets. Several functions can also performed using these APIs like adding, modifying and deleting backup sets as well as the details of the backup set.
- UpdateBackupSet (v1,v2)
- AddSelectSrc
- RemoveSelectSrc
- AddDeselectSrc
- RemoveDeselectSrc
- AddSchedule (v1,v2)
- UpdateSchedule (v1,v2)
- RemoveSchedule
- AddFilter
- UpdateFilter
- RemoveFilter
- RemoveBandwidthControl
- AddBackupSet
- AddAllowedIP
- RemoveAllowedIP
- DeleteBackupData
- DeleteBackupFile
- DeleteBackupSet
- GetBackupJobProgress
- GetBackupSet (v1,v2)
- ListBackupFiles
- ListBackupJobMode
- ListBackupJobs
- ListBackupJobStatus
- ListBackupSets
- RunBackup
- AddPreCommand
- UpdatePreCommand
- RemovePreCommand
- AddPostCommand
- UpdatePostCommand
- RemovePostCommand
- ListRestoreJobs
- ListRestoreJobStatus
- ListRestoreDrillJobs
UpdateBackupSet (v1,v2)
This API can be used to update settings of a backup set.
The settings can be found on the AhsayCBS web console at:
- Backup / Restore > Users, Groups & Policies > Backup User > %User Name%
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/UpdateBackupSet.do
Available Since Version: 9.5
Parameters
Key | Type | Description |
---|---|---|
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 |
Class | String | com.ahsay.obx.cxp.obs.BackupSet |
Name | String | Name of the backup set. |
ShadowCopyEnabled | Boolean | Enable Windows Volume Shadow Copy for open file backup. |
DeleteTempFile | String | Remove temporary files after backup. |
LogRetentionDays | Integer | Number of days to keep the backup set log. |
FollowLink | Boolean | Follow link of the backup files. |
CompressType | String | Type of compression, can be one of the following: GzipBestSpeedCompression (Fast), GzipDefaultCompression (Normal) or SnappyDefaultCompression (Fast with optimization for local). Default to 'No Compression" if not provided. |
LanDomain | String | Windows User Authentication domain/hostname. |
LanUsername | String | Windows User Authentication username. |
LanPassword | String | Windows User Authentication user password. |
WorkingDir | String | Temporary directory for storing backup files. |
UploadPermission | Boolean | Enable to backup permission attribute of files. |
ReminderSettings | Array | Array list of Reminder settings. |
InFileDeltaSettings | Array | Array list of In-File Delta settings. |
LocalCopySettings | Array | Array list of Local Copy settings. |
RetentionPolicySettings | Array | Array list of Retention Policy settings. |
CdpSettingsV6 | Array | Array list of CDP settings for v6. |
CdpSettingsV7 | Array | Array list of CDP settings for v7. |
BandwidthControlSettings | Array | Array list of Bandwidth Control settings. |
FilterSettings | Array | Array list of Filter settings. |
ScheduleSettings | Array | Array list of Schedule settings. |
DestinationSettings | Array | Array list of Destination settings. |
SelectedSourceList | Array | Can be an array with local path (String type) and network address with credential (NetworkAddress type). |
DeselectedSourceList | Array | Can be an array with local path (String type) and network address with credential (NetworkAddress type). |
PreCommandList | Array | Array list of pre commands. |
PostCommandList | Array | Array list of post commands. |
AllowedIPList | Array | Array list of allowed IPs for restore. |
ApplicationSettings | Array | Array list of Application settings. |
DestinationList | Array | Array list of Destinations (optional). |
EnableOpenDirect | Boolean | Cannot be changed once set. |
NetworkAddress | JSON Object | Can be used in SelectedSourceList and DeselectedSourceList. |
DeduplicationSettings | Object | Refer to DeduplicationSettings. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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
ReminderSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
BackupIntervalHours | Integer | Backup interval in hours, 00-23. |
OfflineNotificationDay | Integer | This setting is only applicable for v6 legacy backup user. |
OfflineBackupEnabled | Boolean | On-Off for offline backup reminder. |
BackupIntervalDay | Integer | Backup Interval in days, 00-31. |
ShowOfflineBackupReminder | Boolean | This settings only applicable for v6 legacy backup user. |
LogoutBackupReminderEnabled | Boolean | Enable/Disable backup reminder when Windows log off or shutdown. |
OfflineBackupReminderComputerName | String | The computer name for the offline backup reminder. |
LogoutBackupReminderComputerName | String | The computer name for the logout backup reminder. |
InFileDeltaSettings
Key | Type | Description |
---|---|---|
Enabled | Boolean | True / False |
ReadOnly | Boolean | True / False |
MinDeltaFileSize | Long | Only apply In-File Delta to files larger than this size. |
MaxNumOfDelta | Long | Upload full file when number of deltas are over this number. |
MaxDeltaRatio | Long | Upload full file when delta file size / full file size is over this ratio. It can only be multiple of 5 and maximum of 100. |
DefaultDeltaType | String | Type of delta, can either be I or D. |
WeeklyInFileDeltaSchedule | Array | Weekly variations for overriding default type. |
MonthlyInFileDeltaSchedule | Array | Monthly variations for overriding default type. |
WeeklyInFileDeltaSchedule
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Day | Array | The array contains 7 Strings which corresponds to the delta type from Sunday to Saturday. "I" for incremental delta on that day, "D" for differential delta on that day and "" for full backup on that day. |
MonthlyInFileDeltaSchedule
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Month | Array | The array contains 12 Strings which corresponds to the delta type from January to December. "I" for incremental delta on that day, "D" for differential delta on that day and "" for full backup on that day. |
Date | Integer | Day of selected months in yearly variations. |
Criteria | String | The value can be one of the following: Weekday, Weekend, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday and Saturday. |
Occurrence | String | The value can be one of the following: First, Second, Third, Fourth and Last. |
LocalCopySettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Enabled | Boolean | This setting only applicable for v6 legacy backup users. |
DestinationPath | String | This setting only applicable for v6 legacy backup users. |
SetPermission | Boolean | This setting only applicable for v6 legacy backup users. |
SkipOffsiteBackup | Boolean | This setting only applicable for v6 legacy backup users. |
LocalCopyRetentionPolicySettings | Array | This setting only applicable for v6 legacy backup users. |
Zip | Boolean | This setting only applicable for v6 legacy backup users. |
LocalCopyRetentionPolicySettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Enabled | Boolean | This setting only applicable for v6 legacy backup users. |
Period | Integer | This setting only applicable for v6 legacy backup users. |
Unit | String | This setting only applicable for v6 legacy backup users. |
RetentionPolicySettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Period | Integer | Keep the deleted files for this number of days. |
OverlapSensitive | Boolean | True / False |
Type | String | Type of retention policy, either SIMPLE or ADVANCED. |
Unit | String | Unit of retention policy, either DAYS or JOBS. |
AdvancedRetentionPolicy | Array | Array list of Advanced Retention Policies. |
AdvancedRetentionPolicy
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Id | Long | ID of the retention policy to update. |
Type | String | Type of advanced retention policy. The value can be one of the following: DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY or CUSTOM. |
NumbersToKeep | Integer | Available to change when you choose the following type: DAILY, WEEKLY, MONTHLY, QUARTERLY or YEARLY. |
Day | Integer | Available to change when you choose the following type: DAILY, WEEKLY, MONTHLY, QUARTERLY or YEARLY. |
Week | Integer | Available to change when you choose the following type: DAILY, WEEKLY, MONTHLY, QUARTERLY or YEARLY. |
Month | Integer | Available to change when you choose the following type: DAILY, WEEKLY, MONTHLY, QUARTERLY or YEARLY. |
Year | Integer | Available to change when you choose CUSTOM for the type. |
DateType | String | It can be empty for daily or weekly retention policy, or one of the following: WEEK_OF_MONTH, WEEK_OF_YEAR or EXACT. |
Sun, Mon, Tue, Wed, Thu, Fri, Sat | Boolean | For weekly custom retention policy. |
CdpSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Enable | Boolean | True / False |
Type | String | For CdpSettingsV6, the value can be one of the following: all-volume, backup-source or custom-source. For CdpSettingsV7, the value is all-volume. |
BackupType | String | The value can be empty or one of the following: DATABASE, DIFFERENTIAL, LOG, SKIP or POWEROFF. For Oracle and Lotus Domino backup sets, the value must be DATABASE or LOG. For MS SQL Server backup sets, the value must be DATABASE or DIFFERENTIAL For MS Exchange Server before 2007 and ShadowProtect backup sets, the value must be DATABASE, DIFFERENTIAL or LOG. For MS Exchange Server 2007 or above, the value must be DATABASE or LOG. For VMware backup sets, if version is VMware Server 1 or VMware Player, the value must be SKIP or POWEROFF. |
MinUpdateInterval | Integer | Update intervals. |
TimeMarkInterval | Integer | Mark intervals. |
MaxFileSize | Integer | Only apply to files smaller than 20, 50, 100, 500, 1000 or unlimited. |
ComputerName | String | Run CDP on these computers. |
ExcludeSystemFiles | Boolean | True / False |
FilterList | Array | Array list of Filters. |
Version | String | For CdpSettingsV7, the value is 7. |
CdpBackupControlSettings | Array | This setting is only applicable for v6 legacy backup users. |
SelectedSourceList | Array | Array list of selected sources. |
Id | Array | V6 for CdpSettingsV6 and V7 for CdpSettingsV7. |
CdpBackupControlSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
ConsiderCpuUsage | Boolean | This setting is only applicable for v6 legacy backup users. |
CpuUsage | Integer | This setting is only applicable for v6 legacy backup users. |
ConsiderInput | Boolean | This setting is only applicable for v6 legacy backup users. |
ObserveInputForSecond | Integer | This setting is only applicable for v6 legacy backup users |
ConsiderNetworkTraffic | Boolean | This setting is only applicable for v6 legacy backup users. |
NetworkTraffic | Long | This setting is only applicable for v6 legacy backup users |
BandwidthControlSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Enabled | Boolean | True / False |
BandwidthControlList | Array | Array list of Bandwidth Controls. |
Mode | String | Mode of bandwidth, which can either be independent or share. |
BandwidthControl
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of bandwidth control setting. |
Id | Long | ID of bandwidth control setting. |
MaxTransferRateInBitsPerSec | Long | Maximum allowable transfer rate. |
StartDay | Integer | Starting day of bandwidth control. |
StartHour | Integer | Starting hour of bandwidth control. |
StartMinute | Integer | Starting minute of bandwidth control. |
EndDay | Integer | Ending day of bandwidth control. |
EndHour | Integer | Ending hour of bandwidth control. |
EndMinute | Integer | Ending minute of bandwidth control. |
FilterSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Enabled | Boolean | True / False |
FilterList | Array | Array list of Filters. |
FilterList
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of the filter. |
Id | Long | ID of the filter, obtainable in GetBackupSet API. |
TopDir | String | Apply filter to a specific directory only. |
@class | String | com.ahsay.obx.cxp.obs.Filter |
ApplyToDir | Boolean | Apply filters to directory. |
Type | String | Type of filter, the value can be one of the following: START_WITH, END_WITH, CONTAIN or CUSTOM. |
Include | Boolean | Either include or exclude matched files/folder under the top directory. |
Only | Boolean | If set to true, it will not include all unmatched files/folders. If set to false, it will include all unmatched files/folders. |
PatternList | Array | Array list of patterns. |
MatchPatternAgainstFullPathOnly | Boolean | True / False |
Username | String | Username of UNC paths with non-Windows credentials as backup source. |
Password | String | Password of UNC paths with non-Windows credentials as backup source. |
Pattern
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Pattern | String | Details of pattern. |
ApplicationSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
@class | String | Classification of application. |
Id | String | ID of application setting. |
Version | String | Version of application setting. |
WindowsOutlook | Boolean | Backup source shortcut to Outlook. Applicable for File backup set only. |
WindowsDesktop | Boolean | Backup source shortcut to Desktop. Applicable for File backup set only. |
WindowsOutlookExpress | Boolean | Backup source shortcut to Outlook Express. Applicable for File backup set only. |
WindowsMail | Boolean | Backup source shortcut to Windows Mail. Applicable for File backup set only. |
WindowsFavourites | Boolean | Backup source shortcut to Favourites. Applicable for File backup set only. |
WindowsMyDocuments | Boolean | Backup source shortcut to My Documents. Applicable for File backup set only. |
NotesIniPath | String | Path to notes.ini. Applicable for IBM Lotus Domino / IBM Lotus Notes backup set only. |
BackupSystemState | Boolean | Applicable for Windows System State backup set only. |
LoginID | String | Login ID of sa / system account. Applicable for MS SQL Server / Oracle Database Server backup set only. |
Password | String | Password of sa / system / root account. Applicable for MS SQL Server / MySQL / Oracle Database Server / MariaDB / VMware / PostgreSQL backup set only. |
Server | String | SQL Server instance. Applicable for MS SQL Server backup set only. |
BackupTarget | String | Temporary storage location of the MS Windows System / System State backup set. Applicable for MS Windows System / System State backup set only. |
Port | Integer | Listening port of the MySQL / Oracle Database Server. Port to the VMware hypervisor. Applicable for MySQL / Oracle / MariaDB Database Server / VMware / PostgreSQL backup set only. |
Host | String | Hostname or IP to to MySQL / Oracle Database Server / MariaDB / VMware hypervisor / PostgreSQL. Applicable for MySQL / Oracle / MariaDB Database Server / VMware / PostgreSQL backup set only. |
Username | String | Username of root account. Applicable for MySQL / MariaDB Database Server / VMware / PostgreSQL backup set only. |
MysqldumpPath | String | Path to the mysqldump file. Applicable for MySQL / MariaDB Database Server backup set only. |
PostgreSQLDumpPath | String | Path to the postgresqldump file. Applicable for PostgreSQL Server backup set only. |
LastArchivedLogName | String | Applicable for Oracle Database Server backup set only. |
Sid | String | Oracle SID. Applicable for Oracle Database Server backup set only. |
EncryptionAlgorithm | String | Applicable for ShadowProtect System backup set only. |
EncryptionPassword | String | Applicable for ShadowProtect System backup set only. |
InstallLocation | String | Applicable for ShadowProtect System backup set only. |
Sshport | Integer | Applicable for VMware backup set only. |
AutoEnableCBT | Boolean | Applicable for VMware backup set only. |
OneDrive | Boolean | Applicable for Microsoft 365 backup set only. |
PublicFolders | Boolean | Applicable for Microsoft 365 backup set only. |
SiteCollections | Boolean | Applicable for Microsoft 365 backup set only. |
Outlook | Boolean | Applicable for Microsoft 365 backup set only. |
ScheduleSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Enable | Boolean | True / False |
ComputerName | String | Name of computer. |
DailyScheduleList | Array | Array list of Daily Schedules. |
WeeklyScheduleList | Array | Array list of Weekly Schedules. |
MonthlyScheduleList | Array | Array list of Monthly Schedules. |
CustomScheduleList | Array | Array list of Custom Schedules. |
DailyScheduleList
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of the schedule. |
Id | Long | ID of the schedule, obtainable in GetBackupSet API. |
Hour | Integer | The hour when the backup will start, refer to HH. |
Minute | Integer | The minute when the backup will start, refer to MM. |
Duration | Integer | (optional) If no value is specified, default value=-1. The value can either be 'until full backup completed =-1' or 'stop backup after xx hours=1 to 24'. |
BackupType | String | Type of backup. Can be empty or one of the following: DATABASE, DIFFERENTIAL, LOG, SKIP or POWEROFF. For Oracle and Lotus Domino backup sets, the value must be DATABASE or LOG. For MS SQL Server backup sets, the value must be DATABASE or DIFFERENTIAL. For MS Exchange Server 2007 or above, the value must be DATABASE or LOG. For MS Exchange Server 2007 or above, the value must be DATABASE or LOG. For VMware backup sets, if version is VMware Server 1 or VMware Player, the value must be SKIP or POWEROFF. |
SpaceFreeUpEnabled | Boolean | Remove obsolete files from backup destination according to retention policy. |
LastUpdateTime | Long | Time of last update. |
@class | String | com.ahsay.obx.cxp.obs.DailySchedule |
MigratedFromCdp | Boolean | If true it indicates it is migrated from CDP, this value cannot be changed. |
BackupInterval | Integer | For periodic backup schedule the value can be -1 or one of the following: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60, 120, 180, 240, 360, 480 or 720. (-1 means periodic schedule is disabled, that it is a normal schedule) |
WeeklyScheduleList
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of the schedule. |
Id | Long | ID of the schedule, obtainable in GetBackupSet API. |
Hour | Integer | The hour when the backup will start, refer to HH. |
Minute | Integer | The minute when the backup will start, refer to MM. |
Duration | Integer | (optional) If no value is specified, default value=-1. The value can either be 'until full backup completed =-1' or 'stop backup after xx hours=1 to 24'. |
BackupType | String | Refer to BackupType of DailySchedule. |
Days | Array | The array contains 7 boolean values that correspond to Sunday until Saturday. If the boolean value is true, backup will be run on that day. |
SpaceFreeUpEnabled | Boolean | Remove obsolete files from backup destination according to retention policy. |
LastUpdateTime | Long | Time of last update. |
@class | String | com.ahsay.obx.cxp.obs.WeeklySchedule |
MigratedFromCdp | Boolean | If true it indicates it is migrated from CDP, this value cannot be changed. |
BackupInterval | Integer | Refer to BackupInterval of DailySchedule. |
MonthlyScheduleList
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of the schedule. |
Id | Long | ID of the schedule, obtainable in GetBackupSet API. |
Hour | Integer | The hour when the backup will start, refer to HH. |
Minute | Integer | The minute when the backup will start, refer to MM. |
Duration | Integer | (optional) If no value is specified, default value=-1. The value can either be 'until full backup completed =-1' or 'stop backup after xx hours=1 to 24'. |
BackupType | String | Refer to BackupType of DailySchedule. |
Occurence | String | The value can be one of the following: First, Second, Third, Fourth or Last. |
Criteria | String | The value can be one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Weekday or Weekend. |
SpaceFreeUpEnabled | Boolean | Remove obsolete files from backup destination according to retention policy. |
LastUpdateTime | Long | Time of last update. |
@class | String | com.ahsay.obx.cxp.obs.MonthlySchedule |
CustomScheduleList
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of the schedule. |
Id | Long | ID of the schedule, obtainable in GetBackupSet API. |
Hour | Integer | The hour when the backup will start, refer to HH. |
Minute | Integer | The minute when the backup will start, refer to MM. |
Duration | Integer | (optional) If no value is specified, default value=-1. The value can either be 'until full backup completed =-1' or 'stop backup after xx hours=1 to 24'. |
Date | String | The date when backup will be performed, in yyyy-MM-dd format. |
BackupType | String | Refer to BackupType of DailySchedule. |
SpaceFreeUpEnabled | Boolean | Remove obsolete files from backup destination according to retention policy. |
LastUpdateTime | Long | Time of last update. |
@class | String | com.ahsay.obx.cxp.obs.CustomSchedule |
Command
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Name | String | Name of the command. |
Command | String | Specifics of the command. |
Type | String | Type of command, can either be Pre or Post. |
Id | Long | ID of the command, obtainable in GetBackupSet API. |
WorkingDir | String | Directory where the command will be applied. |
Username | String | Username used in the UNC path with non-Windows credentials as backup source. |
Password | String | Password used in the UNC path with non-Windows credentials as backup source. |
AllowedIP
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Id | Long | ID of the allowed IP. |
StartIP | String | Starting value of allowable IPs. |
EndIP | String | Ending value of allowable IPs. |
DestinationSettings
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
DestinationList | Array | Array list of Destinations. |
Destination
Key | Type | Description |
---|---|---|
ReadOnly | Boolean | True / False |
Id | Long | ID of the destination, obtainable in GetBackupSet API. |
Name | String | Name of the destination. |
TopDir | String | Top directory. |
@class | String | Destination classification |
Type | String | Backup destination type which can be one of the following: Local, CloudDrive, S3, AWSCompatib.e, Wasabi, Backblaze, GCS, GDrive, Azure, OneDrive, OpenStack, Rackspace, Dropbox, FTP, SFTP, OBS, Pooled, Aliyun and Exchange. |
UserName | String | Username used to login to the destination. |
Password | String | Password used to login to the destination. |
HostName | String | Hostname or IP of the destination. |
Port | String | Port used by the destination. |
AccessKey | String | Access key used by the destination. |
Location | String | Location used by the destination. |
DestinationKey | String | Destination key used by the destination. |
Secret | String | Secret used by the destination. |
UserID | String | User ID used by the destination. |
Token | String | Token used by the destination. |
ClientID | String | Client ID used by the destination. |
UserDisplayName | String | User display name shown by the destination. |
ClientSecret | String | Client secret used by the destination. |
Region | String | Region of the destination. |
TenantID | String | Tenant ID of the destination. |
AppFolderName | String | Application folder name of the destination. |
UsingSSL | Boolean | True / False |
UsingProxy | Boolean | True / False |
DestinationList | Array | Array list of Destinations. |
NetworkAddress
Key | Type | Description |
---|---|---|
Src | String | Source |
Username | String | Username used to login. |
Password | String | Password used to login. |
RecycleBinSettings
Key | Type | Description |
---|---|---|
Enabled | Boolean | Enable moving the files to the Recycle Bin when remove file from Retention Policy or DIC. |
RetentionPeriod | Integer | Number of days the files will be kept in the recycle bin. |
Id | String | Not used. |
DeduplicationSettings
Key | Type | Description |
---|---|---|
Enabled | Boolean | Whether deduplication is enabled. |
Scope | String | Scope of the deduplication, either SAME_FILE or ALL_FILES. Other value will result in error. |
BlockSize | Integer | Size of the block, can be one of the following: 65536 for 64k-256k, 131072 for 128k-512k, 262144 for 256k-1M, 524288 for 512k-2M or 1048576 for 1M-4M. Removed in v9.5 "-1" (for "Auto" which is the default choice in earlier v9). |
SettingsMigrated | Boolean | Whether the settings will be migrated from In-File Delta settings during the next profile update. |
MigrateData | Boolean | Whether to migrate data for pre-v9 In-File Delta to v9 deduplication during backup. |
Id | String | Not used. |
Examples
Example 1: Updating a Microsoft 365 Online Destination
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":"SampleAccount@ahsay.com",
"DestinationKey":"OBS",
"Id":"-1686815201815"
}
}
}
OUTPUT
{
"Status":"OK"
}
Example 2: Updating an AhsayCBS Destination
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687138324430",
"DestinationSettings":{
"DestinationList":[
{
"Name":"CBS",
"@class":"com.ahsay.obx.cxp.obs.ObsDestination",
"Type":"OBS"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
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"
}
}
}
OUTPUT
{
"Status":"OK"
}
Example 5: Recycle Bin Setup
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"ACB",
"BackupSetID":"1692320086130",
"RecycleBinSettings":{
"Enabled":true,
"RetentionPeriod":10
}
}
OUTPUT
{
"Status":"OK"
}
Example 6: Updating a Simple Retention Policy
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"RetentionPolicySettings":{
"Period":"3",
"Type":"SIMPLE",
"Unit":"JOBS"
}
}
OUTPUT
{
"Status":"OK"
}
Example 7: Updating an Advanced Daily Retention Policy
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"RetentionPolicySettings":{
"Type":"ADVANCED",
"AdvancedRetentionPolicyList":[
{
"Id":"1687139082362",
"Type":"DAILY",
"NumbersToKeep":"3"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
Example 8: Updating an Advanced Weekly Retention Policy
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"RetentionPolicySettings":{
"Period":"3",
"Type":"ADVANCED",
"Unit":"JOBS",
"AdvancedRetentionPolicyList":[
{
"Id":"1687139082362",
"Type":"WEEKLY",
"NumbersToKeep":"3",
"Mon":"true"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
Example 9: Updating an Advanced Monthly Retention Policy
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"RetentionPolicySettings":{
"Type":"ADVANCED",
"AdvancedRetentionPolicyList":[
{
"Id":"1687139082362",
"Type":"MONTHLY",
"Day":"12",
"NumbersToKeep":"3"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
Example 10: Updating an Advanced Custom Retention Policy
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"RetentionPolicySettings":{
"Type":"ADVANCED",
"AdvancedRetentionPolicyList":[
{
"Id":"1687139082362",
"Type":"CUSTOM",
"Month":"6",
"Day":"31",
"Year":"2024"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
Example 11: Updating a Bandwidth Control Setting
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"BandwidthControlSettings":{
"Enabled":true,
"Mode":"Share",
"BandwidthControlList":[
{
"Name":"ban1",
"Id":"1687139082362",
"MaxTransferRateInBitsPerSec":"25600000"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
Example 12: Updating a Filter Setting
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"
}
Example 13: Updating a Daily Schedule and Custom Schedule Settings
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"ScheduleSettings":{
"Enabled":true,
"DailyScheduleList":[
{
"Id":"1434946034621",
"Hour":"12",
"Minute":"30"
}
],
"CustomScheduleList":[
{
"Id":"1687144789077",
"Name":"Custom 1",
"Hour":"6",
"Minute":"30",
"Date":"2024-06-19"
}
]
}
}
OUTPUT
{
"Status":"OK"
}
Example 14: Updating OpenDirect Settings
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687139082362",
"EnableOpenDirect":false
}
OUTPUT
{
"Status":"OK"
}
Example 15: Updating MariaDB Type Backup Sets
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"
}
Example 16: Deduplication (Incorrect Scope: "SAME_FILES")
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.DeduplicationSettings$DeduplicationScope’ from String\”SAME_FILES\”: not one of the values accepted for Enum class: [ALL_FILES, SAME_FILE]\n at [Source: (String)\”{\Type\”:\”MariaDB\”, \”Timezone\”:\”1098\”, \”Delete\” :false, \”LoginName\”:\”obm\”, \”Owner\”:\”w2k16-std\”, \”DisplayOwner\”: \”w2k16-std\”, \”SysUser\”:\”system\”, \”Os\”:\”Windows Server 2016\”, \”RunBackupSettings\”:{\”DestiationIDList\”:[],\”Enabled\”:false, \”BackupType\”:\”\”, \”BackupJobID\”:\”\”, \”Id\”:\”\”}, \”RunOnServer\”: false, \”SelectedShortcutList\”:[],\”V6Passwords\”:{\”ApplicationPassword\”: \”\”,\”WinUserAuthPassword\”:\”\”,\”Id”\:\”\”},\"CdpSettings\":{\"@class\":\"com.ahsay.obx.cxp.obs.CdpSettings\",\"TimeMarkInterval\":30,\"CdpBackupControlSettings\":{\"Consi\"[truncated 6651 chars]; line: 1, column: 6343] (through reference chain: com.ahsay.obx.cxp.obs.BackupSet[\"DeduplicationSettings\"]->com.ahsay.obx.cxp.cloud.DeduplicationSettings[\"Scope\"])",
"ExptType":"com.fasterxml.jackson.databind.exc.InvalidFormatException"
}
Example 17: Deduplication (Scope: "ALL_FILES")
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"
}
AddSelectSrc
This API can be used to add additional backup source to a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
SelectedSrc | Array of SourceBean | One or multiple Source paths, as an array of "Src". |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Message | String | Error message, it only appears if status displays "Error". |
ExptType | String | The type of exception, it appears only if status is "Error". |
JSON Objects
SourceBean
Key | Type | Description |
---|---|---|
Src | String | Special characters for JAVA must be escaped, for example, “\” must be replaced with “\\”. Example: "Src":"Microsoft 365/Users/John.Doe@example.com/Outlook/Inbox" Example: "Src":"C:\\Testing1\\data" |
UserName | String | If username and password are empty, add the 'src' without credentials. |
Password | String | If username and password are empty, add the 'src' without credentials. |
Examples
Example 1
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"SelectedSrc":[
{
"Src":"C:\\New1"
},
{
"Src":"C:\\New2\\data"
}
]
}
OUTPUT
{
"Status":"OK"
}
Example 2: Input with incorrect escape character (e.g. C:\ instead of C:\\)
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"
}
RemoveSelectSrc
This API allows you to remove selected source from a backup set. Running that backup set again will no longer backup those files from the removed source.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
Src | String or Array of String | One or multiple Source paths. Special characters for JAVA must be escaped, for example, “\” must be replaced with “\\”. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Message | String | Error message, it only appears if status displays "Error". |
ExptType | String | The type of exception, it appears only if status is "Error". |
Examples
Example 1: Input (Single String)
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"SelectedSrc":["Src":"C:\\New1"]
}
OUTPUT
{
"Status":"OK"
}
Example 2: Input (Array of Strings)
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"SelectedSrc":[
{
"Src":"C:\\New1"
},
{
"Src":"C:\\New2\\data"
}
]
}
OUTPUT
{
"Status":"OK"
}
AddDeselectSrc
This API allows you to add deselected source to a backup set. Running that backup set will no longer backup files from the deselected source.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
DeselectedSrc | Array of SourceBean | One or multiple Source paths, as an array of "Src". |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Message | String | Error message, it only appears if status displays "Error". |
ExptType | String | The type of exception, it appears only if status is "Error". |
JSON Objects
SourceBean
Key | Type | Description |
---|---|---|
Src | String | Special characters for JAVA must be escaped, for example, “\” must be replaced with “\\”. Example: "Src":"C:\\Testing1\\data" |
Username | String | If username and password are empty, add the 'src' without credential. |
Password | String | If username and password are empty, add the 'src' without credential. |
Examples
Example 1
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"DeselectedSrc":[
{
"Src":"C:\\New2"
}
]
}
OUTPUT
{
"Status":"OK"
}
Example 2
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"DeselectedSrc":[
{
"Src":"C:\\New2"
},
{
"Src":"C:\\New1"
}
]
}
OUTPUT
{
"Status":"OK"
}
RemoveDeselectSrc
This API allows you to remove deselected source from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
Src | String or Array of String | Special characters for JAVA must be escaped, for example, "\" must be replaced with: "\\". |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Examples
Example 1: Input (Single String)
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"Src":"C:\\New2"
}
OUTPUT
{
"Status":"OK"
}
Example 2: Input (Array of String)
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"Src":["Src":"C:\\New2", "Src":"C:\\New1"]
}
OUTPUT
{
"Status":"OK"
}
AddSchedule (v1,v2)
This API creates a new backup schedule setting on a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
Name | String | Name of the schedule. |
Type | String | Type of schedule, can be one of the following: DAILY, WEEKLY, MONTHLY or CUSTOM. |
BackupInterval | Integer | For periodic schedule, the value can be "1" or one of the following: 1, 2, 3, 4, 5, 10, 12, 15, 20, 30, 60, 120, 240, 360,480 or 720. ("-1" means periodic schedule is disabled, that it is a normal schedule) |
Time | TimeBean Object | Mandatory if "BackupInterval" < (). |
FullBackup | Boolean | Must be true when "BackupInterval" > (). If it is true, the schedule backup will run until full backup is completed. Otherwise, it will stop after the duration specified in key "Duration" of the TimeBean in key "Time". |
SpaceFreeUpEnabled | Boolean | Remove obsolete files according to retention policy from backup destination according to retention policy. |
SkipBackupEnabled | Boolean | True / False |
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, and Microsoft 365 Exchange Online backup sets. For the following Backup Types, this parameter must be filled with one of the following: MS Exchange Server (if VSS supported): DATABASE, LOG, COPY or DIFFERENTIAL. If not VSS supported: DATABASE or LOG. Oracle Database Server Backup and Lotus Domino: DATABASE or LOG. MS SQL Server Backup: DATABASE, DIFFERENTIAL or LOG. ShadowProtect System Backup: COMPLETE, DIFFERENTIAL or INCREMENTAL. MS Hyper-V Backup: INCREMENTAL or 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 or INCREMENTAL. VMware Player 6 / 7 or VMware Workstation Player 12 / 14 / 15 / 16: SKIP or POWEROFF. VMware Workstation 10 / 11, VMware Workstation Pro 12 / 14 / 15 / 16 or VMware Fusion 6 / 7 / 8 / 10 / 11 / 12: leave blank |
WeekSchedule | WeekSchedule | Mandatory for weekly schedule. |
MonthSchedule | MonthSchedule | Mandatory for monthly schedule. |
CustomSchedule | CustomSchedule | Mandatory for custom schedule. |
MonthlyDateType | String | Mandatory for monthly schedule. The value can be either be DATE or CRITERIA. |
Period | String | (optional) The value can be either be AM or PM. If the parameter "Period" is specified as AM or PM then the parameter "Hour" is in 12-hour format. "1", "2" ..."12" can be set. If the parameter "Period" is not specified,, then the parameter "Hour" will default to 24-hour format. "0", "1"..."23" can be set. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Message | String | Error message, it only appears if status displays "Error". |
ExptType | String | The type of exception, it appears only if status is "Error". |
JSON Objects
TimeBean
Key | Type | Description |
---|---|---|
Hour | Integer | 00-23 |
Minute | Integer | 00-59 |
Duration | Integer | (optional) If no value is specified, default value=-1. The value can either be "until full backup completed=-1" or "stop backup after xx hours=1 to 24". Must be -1 when "BackupInterval" > (). |
WeekSchedule
Key | Type | Description |
---|---|---|
Sun | Boolean | True / False |
Mon | Boolean | True / False |
Tue | Boolean | True / False |
Wed | Boolean | True / False |
Thu | Boolean | True / False |
Fri | Boolean | True / False |
Sat | Boolean | True / False |
MonthSchedule
Key | Type | Description |
---|---|---|
Occurrence | String | The value can be one of the following: First, Second, Third, Fourth or Last. |
Criteria | String | The value can be one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Weekday or Weekend. |
Date | Integer | Complete date. |
CustomSchedule
Key | Type | Description |
---|---|---|
Year | Integer | In yyyy format. |
Month | Integer | In MM format. |
Day | Integer | In dd format. |
Examples
Example 1: Input Daily Schedule
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"Name":"DAILYTEST",
"Type":"DAILY",
"BackupInterval":5,
"FullBackup":true,
"SpaceFreeUpEnabled":false,
"SkipBackupEnabled":false
}
OUTPUT
{
"Status":"OK"
}
Example 2: Input Weekly Schedule
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"Name":"WEEKLYTEST",
"Type":"WEEKLY",
"BackupInterval":-1,
"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"
}
Example 3: Input Incorrect Value for BackupInterval
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"
}
UpdateSchedule (v1,v2)
This API updates the backup schedule settings on a backup set. It will preserve existing values.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | String | Schedule ID obtainable in GetBackupSet API. |
Name | String | Name of the schedule. |
Type | String | Type of schedule, can be one of the following: DAILY, WEEKLY, MONTHLY or CUSTOM. |
BackupInterval | Integer | For periodic schedule, the value can be "1" or one of the following: 1, 2, 3, 4, 5, 10, 12, 15, 20, 30, 60, 120, 240, 360,480 or 720. ("-1" means periodic schedule is disabled, that it is a normal schedule) |
Time | TimeBean Object | Mandatory if "BackupInterval" < (). |
FullBackup | Boolean | Must be true when "BackupInterval" > (). If it is true, the schedule backup will run until full backup is completed. Otherwise, it will stop after the duration specified in key "Duration" of the TimeBean in key "Time". |
SpaceFreeUpEnabled | Boolean | Remove obsolete files according to retention policy from backup destination according to retention policy. |
SkipBackupEnabled | Boolean | True / False |
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, and Microsoft 365 Exchange Online backup sets. For the following Backup Types, this parameter must be filled with one of the following: MS Exchange Server (if VSS supported): DATABASE, LOG, COPY or DIFFERENTIAL. If not VSS supported: DATABASE or LOG. Oracle Database Server Backup and Lotus Domino: DATABASE or LOG. MS SQL Server Backup: DATABASE, DIFFERENTIAL or LOG. ShadowProtect System Backup: COMPLETE, DIFFERENTIAL or INCREMENTAL. MS Hyper-V Backup: INCREMENTAL or 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 or INCREMENTAL. VMware Player 6 / 7 or VMware Workstation Player 12 / 14 / 15 / 16: SKIP or POWEROFF. VMware Workstation 10 / 11, VMware Workstation Pro 12 / 14 / 15 / 16 or VMware Fusion 6 / 7 / 8 / 10 / 11 / 12: leave blank |
WeekSchedule | WeekSchedule | Mandatory for weekly schedule. |
MonthSchedule | MonthSchedule | Mandatory for monthly schedule. |
CustomSchedule | CustomSchedule | Mandatory for custom schedule. |
MonthlyDateType | String | Mandatory for monthly schedule. The value can be either be DATE or CRITERIA. |
Period | String | (optional) The value can be either be AM or PM. If the parameter "Period" is specified as AM or PM then the parameter "Hour" is in 12-hour format. "1", "2" ..."12" can be set. If the parameter "Period" is not specified,, then the parameter "Hour" will default to 24-hour format. "0", "1"..."23" can be set. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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
TimeBean
Key | Type | Description |
---|---|---|
Hour | Integer | 00-23 |
Minute | Integer | 00-59 |
Duration | Integer | (optional) If no value is specified, default value=-1. The value can either be "until full backup completed=-1" or "stop backup after xx hours=1 to 24". Must be -1 when "BackupInterval" > (). |
WeekSchedule
Key | Type | Description |
---|---|---|
Sun | Boolean | True / False |
Mon | Boolean | True / False |
Tue | Boolean | True / False |
Wed | Boolean | True / False |
Thu | Boolean | True / False |
Fri | Boolean | True / False |
Sat | Boolean | True / False |
MonthSchedule
Key | Type | Description |
---|---|---|
Occurrence | String | The value can be one of the following: First, Second, Third, Fourth or Last. |
Criteria | String | The value can be one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Weekday or Weekend. |
Date | Integer | Complete date. |
CustomSchedule
Key | Type | Description |
---|---|---|
Year | Integer | In yyyy format. |
Month | Integer | In MM format. |
Day | Integer | In dd format. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"ID":"1688116563583",
"Name":"DAILYTEST",
"Type":"DAILY",
"FullBackup":true,
"Time":{
"Hour":21,
"Minute":30
},
"SpaceFreeUpEnabled":true,
"SkipBackupEnabled":true
}
OUTPUT
{
"Status":"OK"
}
RemoveSchedule
This API removes a schedule from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | String or Array of String | Schedule ID obtainable by calling the GetBackupSet API. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"ID":"1688116563583"
}
OUTPUT
{
"Status":"OK"
}
AddFilter
This API allows you to add filters to the backup source of a backup set. You can choose to include or exclude files which match a specific pattern.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
Name | String | Name of the filter. |
TopDir | String | Directory where filter will be applied. |
Type | String | Type of filter, can either be DEFAULT or CUSTOM. |
Include | Boolean | Exclude or include matched files/folders under the top directory. |
Only | Boolean | If set to true, will not include all unmatched files/folders. If set to false, will include all unmatched files/folders. |
Apply2Dir | Boolean | Apply filter to folders. |
Apply2File | Boolean | Apply filter to files. |
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. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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
PatternBean
Key | Type | Description |
---|---|---|
Pattern | String | Description of pattern for filter. |
Example
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"
}
UpdateFilter
This API update the settings of a filter from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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/UpdateFilter.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | String | Filter ID, obtainable by calling the GetBackupSet API. |
Name | String | Name of the filter. |
TopDir | String | Directory where filter will be applied. |
Type | String | Type of filter, can either be DEFAULT or CUSTOM. |
Include | Boolean | Exclude or include matched files/folders under the top directory. |
Only | Boolean | If set to true, will not include all unmatched files/folders. If set to false, will include all unmatched files/folders. |
Apply2Dir | Boolean | Apply filter to folders. |
Apply2File | Boolean | Apply filter to files. |
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. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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
PatternBean
Key | Type | Description |
---|---|---|
Pattern | String | Description of pattern for filter. |
Examples
Example 1: Update the name
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"ID":"1687499274011",
"Name":"filter2updated"
}
OUTPUT
{
"Status":"OK"
}
Example 2: Update pattern
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"ID":"1687499274011",
"Name":"testupdated",
"Patterns":[
{
"Pattern":".txt123"
},
{
"Pattern":".png123"
}
]
}
OUTPUT
{
"Status":"OK"
}
RemoveFilter
This API allows you to remove a filter from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | String | Filter ID, obtainable by calling the GetBackupSet API. |
Name | String | Name of the filter. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"ID":"1687499274011"
}
OUTPUT
{
"Status":"OK"
}
RemoveBandwidthControl
This API can be used to remove a bandwidth control setting from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | String | Filter ID, obtainable by calling the GetBackupSet API. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687137085658",
"ID":"1687500432855"
}
OUTPUT
{
"Status":"OK"
}
AddBackupSet
This API allows you to create a new backup set for a user.
You may need to complement AddBackupSet with UpdateBackupSet API.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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. |
Platform | String | The value can be one of the following: windows, mac or linux. Will determine the value for the "Temporary directory for storing backup files" value. |
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 one of the following: FILE. Cloud File, Lotus Domino, Lotus Notes, MariaDB, Microsoft Exchange Server, Microsoft Exchange Mail (MAPI), Microsoft SQL Server, Microsoft Windows Virtualization, Microsoft Windows System Backup, MySQL, Office 365 Exchange Online, Oracle Database Server, ShadowProtect Bare Metal, System State, VMware Virtualization, Linux Bare Metal, Tibero Database Server, Linux Bare Metal and PostgreSQL. Default value is FILE if BackupSetType is not specified. |
BackupMode | String | Mandatory for BackupSetType="Microsoft SQL Server". Backup mode of MSSQL can either be 0:VSS or 1:ODBC. |
VmVersion | String | Mandatory for BackupSetType="VMware Virtualization". VM version can be one of the following: APPVERSION_ESX_V2 (VMware ESX 4), APPVERSION_ESXI_V2 (VMware ESXi 4 or above), APPVERSION_VMSERVER1 (VMware Server 1), APPVERSION_VMSERVER2 (VMware Server 2), APPVERSION_WORKSTATION (VMware Workstation 6 / 6.5 / 7), APPVERSION_WORKSTATION8 (VMware Workstation 8 or above), APPVERSION_PLAYER (VMware Player 3 / 4 / 5 / 6 / 7, VMware Workstation Player 12), APPVERSION_FUSION (VMware Fusion 3 / 4), APPVERSION_FUSION5 (VMware Fusion 5 / 6 / 7 / 8) and APPVERSION_VCENTER_V2 (VMware vCenter 4 or above). |
MsVmVersion | String | Mandatory for BackupSetType="Microsoft Windows Virtualization". MS VM version can be one of the following: Microsoft Hyper-V Server, Microsoft Hyper-V Server R2, Microsoft Hyper-V Server R2 (Failover Cluster), Microsoft Hyper-V Server 2012, Microsoft Hyper-V Server 2012 (Failover Cluster), Microsoft Hyper-V Server 2012 R2, Microsoft Hyper-V Server 2012 R2 (Failover Cluster), Microsoft Hyper-V Server 2016, Microsoft Hyper-V Server 2016 (Failover Cluster), Microsoft Hyper-V Server 2019 and Microsoft Hyper-V Server 2019 (Failover Cluster). |
Version | String | Mandatory for BackupSetType="Microsoft Exchange Server". MS Exchange Server version can be one of the following: 8 (MS Exchange Server 2007), 14 (MS Exchange Server 2010), 15 (MS Exchange Server 2013), 15.1 (MS Exchange Server 2016), 15.2 (MS Exchange Server 2019), DAG13 (MS Exchange Server 2013 (DAG)), DAG16 (MS Exchange Server 2016 (DAG)), DAG19 (MS Exchange Server 2019 (DAG)) and DAG (MS Exchange Server 2010 (DAG)). |
MsMAPIExVersion | String | Mandatory for BackupSetType="Microsoft Exchange Mail (MAPI)". MS Exchange Mail version can be one of the following: 8 (MS Exchange Server 2007), 14 (MS Exchange Server 2010), 15 (MS Exchange Server 2013), 15.1 (MS Exchange Server 2016), 15.2 (MS Exchange Server 2019), DAG13 (MS Exchange Server 2013 (DAG)), DAG16 (MS Exchange Server 2016 (DAG)), DAG19 (MS Exchange Server 2019 (DAG)) and DAG (MS Exchange Server 2010 (DAG)). |
EncryptionType | String | Encryption type of the backup set. The value can be one of the following: DEFAULT, PASSWORD, CUSTOM and blank for no encrption. If the Encryption Type is not provided to the API = Encryption type not defined, This require the end user to define the Encryption type in the AhsayOBM/AhsayACB client for the backup set. If the EncryptionType = PASSWORD the BackupUserPassword must be specified. |
BackupUserPassword | String | Used when EncryptionType = PASSWORD. The BackupUserPassword must match with the existing user login password on the AhsayOBM/AhsayACB user account. Otherwise return error "The Backup User Password does not match with the existing user password". |
Algorithm | String | Encryption algorithm of the backup set. The value can be set to one of the following: Twofish, DESede and AES. Default to AES if not provided. |
Method | String | Encryption method of the backup set. The value can be set to one of the following: ECB and CBS. Default to CBC if not provided. |
Length | String | Encryption key length of the backup set. The value can be set to one of the following: 128 and 256. Default to 256 if not provided. |
Key | String | Encryption key of the backup set. The value cannot be empty. |
RunOnServer | Boolean | Run on Server setting for Cloud File and Microsoft 365 backup set. If this setting is set to "True", "EncryptionType" cannot be left empty. |
DestinationList | Array of Destination | Optional. |
EnableOpenDirect | Boolean | Enable OpenDirect feature. Only applies to pre-v9.13 AhsayCBS. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
BackupSetID | String | Backup set ID of the created backup set. |
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
Destination
Key | Type | Description |
---|---|---|
Type | String | Destination type, can be either OBS or Local. |
Name | String | (Optional) If blank and the Type="OBS", the default value for the name is "CBS". If blank and the Type="Local", the default value for the name is "Local". |
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",
"BackupSetID":"1687501131522"
}
Example 2: CloudFileType parameter is missing
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetName":"API Cloud File Invalid",
"BackupSetType":"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: Wrong platform for backup set type
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetName":"Test_Name",
"BackupSetType":"Tibero Database Server",
"Platform":"mac",
"DestinationList":[
{
"Name":"AhsayCBS",
"Type":"OBS"
}
]
}
OUTPUT
{
"Status":"Error",
"Message":"[Error]Backup set type ‘Tibero Database Server’ is not supported on platform ‘mac’",
"ExptType":"java.lang.Exception"
}
AddAllowedIP
This API allows you to add a range of IP of users which are allowed to perform restore in their computers.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
NewAllowedIP | AllowedIPBean | Refer to AllowedIPBean. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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
AllowedIPBean
Key | Type | Description |
---|---|---|
StartIP | String | Starting value of allowable IP. |
EndIP | String | (Ending value of allowable IP. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687501131522",
"NewAllowedIP":{
"StartIP":"1.1.1.1",
"EndIP":"255.255.255.255"
}
OUTPUT
{
"Status":"OK"
}
RemoveAllowedIP
This API allows you to remove an IP range from the allowed IP list. Users whose IP is not in the allowed IP list are not able to perform restore in their computers.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
AllowedIP | AllowedIPBean | ID of allowed IP to be removed. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687501131522",
"AllowedIP":"1687501909703"
}
OUTPUT
{
"Status":"OK"
}
DeleteBackupData
This API only works for backups from version 6 or older backup clients.
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteBackupData.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
BackupSetName | String | Either backup set ID or backup set name should be provided. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
DeleteBackupFile
This API only works for backups from version 6 or older backup clients.
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteBackupFile.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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. |
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 | Backup type, can be one of the following: F, D or I. |
BackupByJob | String | Backup job ID. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
DeleteBackupSet
This API allows you to delete a backup set of a user.
URL
https://CBS.EXAMPLE.COM/obs/api/json/DeleteBackupSet.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | Backup set ID. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Examples
Example 1
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687152855403"
}
OUTPUT
{
"Status":"OK"
}
Example 2: Backup set contains non-AhsayCBS destination
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"
}
Example 3: Login name does not exist or incorrect
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"
}
Example 4: Backup set ID is incorrect
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"test_user",
"BackupSetID":"1687501131500"
}
OUTPUT
{
"Status":"Error",
"Message":"Backup set ‘1687501131500’ not found.",
"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}
GetBackupJobProgress
This API can be used to retrieve current progress of a backup job.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Backup Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetBackupJobProgress.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | Backup set ID. |
DestinationID | String | Destination ID. Obtainable by calling the GetBackupSets API. |
BackupJobID | String | Backup job ID. Obtainable by calling the GetBackupSets API. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Record | Refer to Record. |
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
Record
Key | Type | Description |
---|---|---|
ID | String | ID of the record. |
LoginName | String | Name of the backup user. |
Owner | String | Owner of the backup user. |
UserID | String | Unique to each backup user. |
StartTime | String | Time when backup job started. In yyyy-MM-dd HH:mm:ss format. |
EndTime | String | Time when backup job finished. In yyyy-MM-dd HH:mm:ss format. |
BackupSetID | String | ID of the backup set. |
BackupSetName | String | Name of the backup set. |
CurrentFileName | String | Name of the current file being backed up. |
FileUploadTime | String | Time when file was uploaded. In yyyy-MM-dd HH:mm:ss format. |
CurrentFileCount | String | Count of current file. |
TotalFileCount | String | Total count of all files. |
UploadedFileSize | String | Total size of uploaded files. |
TotalFileSize | String | Total size of all files. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687505199600",
"DestinationID":"1687505211240,
"BackupJobID":"2024-06-23-15-27-57"
}
OUTPUT
{
"Status":"OK",
"Data":{
"BackupSetName":"default-backup-set-name-1",
"LoginName":"obm",
"Owner:"",
"EndTime":"2024-06-23 15:29:37",
"TotalFileCount":"70",
"StartTime":"2024-06-23 15:28:16",
"BackupSetID":"1687505199600",
"UserID":"obm",
"UploadedFileSize":"70479290",
"CurrentFileName":"C:\\Users\\ahsay\\Desktop\\file_sample.exe",
"TotalFileSize":"78477452",
"ID":"2024-06-23-15-27-57",
"CurrentFileCount":"0"
}
GetBackupSet (v1,v2)
This API can be used to retrieve backup set information.
The settings can be found on the AhsayCBS web console at:
- 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
Parameters
Key | Type | Description |
---|---|---|
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 | Backup set ID. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | Information of the backup set. |
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". |
DeduplicationSettings | Object | Refer to DeduplicationSettings in UpdateBackupSet API. |
JSON Objects
Data
For details on all parameters returned by GetBackupSet.do, please refer to the input parameters outlined in the UpdateBackupSet section.
Array of DestinationList (Data{}:DestinationSettings{}:DestinationList[])
Key | Type | Description |
---|---|---|
@class | String | Classification of the different backup sets. |
DataMigrationMappingMergedToIndex | Boolean | True / False |
DataMigrationStatus | String | For v6 backup set. The different status are: NotStarted, Running, Finished and Verified. |
DestinationKey | String | Key of the destination. |
HostName | String | Hostname or IP of the host. |
Id | String | ID of the destination. |
IndexMigrateLastAccess | Long | Last index migration access. |
Name | String | Name of the destination. |
Password | String | Password used to login to the destination. |
Port | Long | Post used by the destination. |
QuotaInfo | String | Quota of the destination (if any). |
ReadOnly | Boolean | True / False |
RunDirectEnabled | Boolean | True / False |
Sslcertificates | Array | Array list of SSL certificates. |
Statistics | Object | Refer to Statistics. |
TopDir | String | First directory. |
Type | String | Type of directory. |
UserName | String | Username used to access the directory. |
UsingProxy | Boolean | True / False |
UsingSSL | Boolean | True / False |
V6ClusterMigrateLock | String | For v6 backup set. Check if other cluster nodes are performing migration. If "Empty", not running Stage 1 so no need to lock. |
V6DataMigrateLock | String | Unused. For v6 backup set. |
V6Index2Migrate | Boolean | For v6 backup set. If "False", v7+ backup set. If "True", backup set is still v6 and has not undergone Stage 1 (v6 index migration). |
Statistics (Data{}:DestinationSettings{}:DestinationList{}:Statistics{})
Key | Type | Description |
---|---|---|
LastBackupClientVersion | String | Version used during last backup. |
LastBackupCompleteTime | Long | Time last backup was completed. |
LastBackupJobID | String | ID of last backup job. |
LastBackupStartTime | Long | Time last backup was started. |
LastCdpBackupCompleteTime | Long | Time last CDP backup was completed. |
LastCdpBackupStartTime | Long | Time last CDP backup was started. |
LastDeltaMergeTime | Long | Time of last delta merge. |
LastDICTime | Long | Time of last data integrity check. |
LastDICVersion | String | Version of last data integrity check. |
LastOffice365DSCTime | Long | Time of last Microsoft 365 data synchronization check. |
LastRestoreTime | Long | Time of last restore. |
LastStorageRebuildTime | Long | Time of last storage rebuild. |
LastSuccessBackupJobID | String | ID of the last successful backup. |
Pdicrun | Boolean | True / False |
TotalBackupCount | Integer | Total count of backups. |
TotalRestoreCount | Integer | Total count of restores. |
TotalRestore | Object | Refer to TotalRestore. |
LastBackup | Object | Refer to LastBackup. |
DataArea | Object | Refer to DataArea. |
DedupeSaving | Object | Refer to DedupeSaving. |
RetentionArea | Object | Refer to RetentionArea. |
LastRestore | Object | Refer to LastRestore. |
TotalBackup | Object | Refer to TotalBackup. |
TotalRestore (Data{}:DestinationSettings{}:DestinationList{}:Statistics{}:TotalRestore{})
Key | Type | Description |
---|---|---|
Type | String | TOTAL_RESTORE. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size of compressed files. |
UncompressedSize | Long | Size of uncompressed files. |
LastBackup (Data{}:Destination{}:Statistics{}:LastBackup{})
Key | Type | Description |
---|---|---|
Type | String | LAST_BACKUP. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size of compressed files. |
UncompressedSize | Long | Size of uncompressed files. |
DataArea (Data{}:DestinationSettings{}:DestinationList{}:Statistics{}:DataArea{})
Key | Type | Description |
---|---|---|
Type | String | DATA_AREA. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size of compressed files. |
UncompressedSize | Long | Size of uncompressed files. |
DedupeSaving (Data{}:DestinationSettings{}:DestinationList{}:Statistics{}:DedupeSaving{})
Key | Type | Description |
---|---|---|
Type | String | DEDUPE_SAVING. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size after deduplication. |
UncompressedSize | Long | Uncompressed original size. |
RetentionArea (Data{}:DestinationSettings{}:DestinationList{}:Statistics{}:RetentionArea{})
Key | Type | Description |
---|---|---|
Type | String | RETENTION_AREA. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size of compressed files. |
UncompressedSize | Long | Size of uncompressed files. |
LastRestore (Data{}:DestinationSettings{}:DestinationList{}:Statistics{}:LastRestPre{})
Key | Type | Description |
---|---|---|
Type | String | LAST_RESTORE. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size of compressed files. |
UncompressedSize | Long | Size of uncompressed files. |
TotalBackup (Data{}:DestinationSettings{}:DestinationList{}:Statistics{}:TotalBackup{})
Key | Type | Description |
---|---|---|
Type | String | TOTAL_BACKUP. |
FileCount | Integer | Number of files. |
CompressedSize | Long | Size of compressed files. |
UncompressedSize | Long | Size of uncompressed files. |
ModuleUsage
Key | Type | Description |
---|---|---|
ModuleUsage | Long | Usage of module license by the backup set. |
ModuleType | String | Type of module used by the backup set. The value can be one of the following: Office365Mail, MSExMailbox, MSHyperVVM and VMwareVM. |
HostCount | Long | Use of AhsayOBM/AhsayACB license by the backup set. |
Examples
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":"",
"BackJobID":""
"Id":""
},
"RunOnServer":false,
"V6Passwords":{
"ApplicationPassword":"",
"WinUserAuthPassword":"",
"Id":""
},
"SelectedShortcutList":[],
"EnsureTopDirExistenceInLogin":true,
"PreCommandList":[],
"ApplicationSupportHyperVRunDirect":false,
"RecycleBinSettings":{
"Enabled":true,
"Id":"",
"RetentionPeriod":7
},
"Name":"default-backup-set-name-1",
"FollowLink":true,
"NasEncryptionKey":null,
"ApplicationSupportBackupMacResourceData":false,
"DataMigrationSettings":{
"IntegrityCheckLastAccess":0,
"DataMigrationMappingStart":false,
"Id":"",
"MigrationProgress":{
"ReadOnly":false,
"NumOfCompletedFiles":0,
"CurrentMigratingFilePath":"",
"Id":"",
"TotalNumOfFiles":0
},
"SpaceFreeUpLastAccess":0
},
"OpenDirectEnabled":false,
"EnableBackupEFSFile":true,
"InFileDeltaSettings":{
"MaxDeltaRation":50,
"MinDeltaFileSize":26214400,
"MonthlyInFileDeltaSchedule":{
"Month":[
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"Criteria":"Friday",
"Occurence":"First",
"Date":0
},
"MaxNumOfDelta":100,
"DeltaBlockSize":-1,
"DeltaMergeEnabled":false,
"UploadFullIfGenDeltaFailed":true,
"Enabled":true,
"WeeklyInFileDeltaSchedule":{
"Day":[
"",
"",
"",
"",
"",
"",
""
],
"Id":"",
"DefaultDeltaType":"D"
},
"EncryptionSettings":{
"Type":"DEFAULT",
"KeyType":"hash",
"InputStream":{},
"Mode":"CBC",
"NasKey":null,
"Id":"",
"Algorithm":"AES",
"KeyLength":256,
"Key":""
},
"LogoutType":"",
"BackupTargetAsUNCPath":false,
"LogRetentionDays":-1,
"UsedQuota":0,
"FilterSettings":{
"Enabled":false,
"FilterList":[],
"Id":""
},
"DestinationSettings":{
"ConcurrencyLevel":1,
"MaxDestination":1,
"Id":"",
"DestinationList":[
{
"DeleteToken":"",
"Immutable":false,
"V6DataMigrateLock":"",
"Port":0,
"Name":"AhsayCBS",
"UsingSSL":false,
"V6ClusterMigrateLock":"",
"DataMigrationMappingMergedToIndex":true,
"IndexMigrateLastAccess":0,
"HostName":null,
"Password":null,
"DestinationKey":"OBS",
"ReadOnly":false,
"@class":"com.ahsay.obx.cxp.obx.ObsDestination",
"UserName":null,
"UsingProxy":false,
"DataMigrationStatus":"Verified",
"Statistics":{
"TotalRestore":{
"Type":"TOTAL_RESTORE",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"LastBackup":{
"Type":"LAST_BACKUP",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"DataArea":{
"Type":"DATA_AREA",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"LastDICTime":-1,
"LastOffice365DSCTime":-1,
"Pdicrun":false,
"TotalBackupCount":0,
"LastRestore":{
"Type":"LAST_RESTORE",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"LastDICVersion":"",
"LastSuccessBackupJobID":"",
"TotalRestoreCount":0,
"LastBackupJobID":"",
"RecycleBin":{
"Type":"RECYCLE_BIN",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"DedupeSaving":{
"Type":"DEDUPE_SAVING",
"FileCount":0,
"CompressedSize":0,
"DataSize":0,
"OriginalSize":0,
"UncompressedSize":0
},
"LastBackupClientVersion":null,
"LastBackupCompleteTime":-1,
"LastDeltaMergeTime":-1,
"LastCdpBackupStartTime":-1,
"RetentionArea":{
"Type":"RETENTION_AREA",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"LastRestoreTime":-1,
"LastStorageRebuildTime":-1,
"LastCdpBackupCompleteTime":-1,
"TotalBackup":{
"Type":"TOTAL_BACKUP",
"FileCount":0,
"CompressedSize":0,
"UncompressedSize":0
},
"LastIndexUploadedBackupJobID":null
},
"V6Index2Migrate":false,
"Type":"OBS",
"QuotaInfo":"",
"Id":"1703141860328",
"Sslcertificates:[],
"RunDirectEnabled":false,
"TopDir":null
}
]
},
"EffectiveOwner":"-",
"BackupJobName":"2024-12-21-16-07-10",
"ApplicationSupportVMwareRunDirect":false,
"RestoreDrillSettings:{
"UploadKey":false,
"RestoreInterval":6,
"Enable":true,
"Id":""
},
"ReminderSettings":{
"OfflineBackupReminderComputerName":"",
"BackupIntervalHour":0,
"LogoutBackupReminderEnabled":false,
"BackupIntervalDay":1,
"ShowOfflineBackupReminder":false,
"OfflineNotificationDay":7,
"OfflineBackupEnabled":false,
"Id":"",
"LogoutBackupReminderComputerName":""
},
"ReadOnlySelectedSourceKeyList":[],
"EffectiveFilterList":[],
"TransferSize":262114,
"LanPassword":"y8/VxMA=",
"WorkingDir":"",
"ApplicationSettings":{
"@class":"com.ahsay.obx.cxp.cloud.TiberoSettings",
"LoginID":"SYS",
"Version":"",
"Port":"1234",
"Host":"127.0.0.1",
"LastArchivedLog":"",
"Id":"",
"Password":"",
"Sid":""
},
"Ewstype":false,
"TotalQuota":0,
"FileViewerEnabled":true,
"AllowEmptyPathSource":false,
"BackupTypes":[],
"UploadPermission":true,
"Id":"1703141639743",
"ApplicationSupportOpenDirect":false,
"VerifyBucketLocationLogin":true,
"BandwidthControlSettings":{
"Mode":"share",
"Enabled":false,
"Id":"",
"BandwidthControlList":[]
},
"ProxySettings":null,
"CloudName":"",
"ScheduleSettings":{
"DailyScheduleList":[],
"WeeklyScheduleList:[],
"CustomScheduleList":[],
"LastRosPeriodJobAlertTime":0,
"MonthlyScheduleList":[],
"ComputerName":"",
"Enable":false,
"Id":"",
"LastRosPeriodJobTriggerTime":0
},
"DeselectedSourceList":[],
"DeleteTempFile":true,
"ReadOnlyDeselectedSourceKeyList":[],
"NoBackupSourceSelected":true,
"PostCommandList":[],
"LanUsername":"system",
"ClientVersion":"",
"LastUploadLogToServerTime":-1,
"CloudFileSourceType":null,
"TotalUploaded":0,
"AllowedIPList":[
{
"ReadOnly":false,
"StartIP":"0.0.0.0",
"Id":"1703141906825",
"EndIP":"255.255.255.255"
}
],
"ModuleUsage":{
"ModuleUsage":0,
"HostCount":1
},
"DeduplicationSettings":{
"MigrateData":false,
"Scope":"ALL_FILES",
"Enabled":true,
"SettingsMigrated":false,
"Id":"",
"BlockSize":131072
},
"ApplicationSupportRunDirect":false,
"@class":"com.ahsay.obx.cxp.obx.BackupSet",
"RetentionPolicySettings":{
"AdvancedRetentionPolicyList":[],
"Type":"SIMPLE",
"OverlapSensitive":false,
"Period":7,
"Id":"",
"Unit":"DAYS"
},
"SubIndexType":false,
"DefaultBSetSettings":{
"Owner":"",
"EnfBSe":false,
"Category":"",
"DefBSet":false,
"Id":""
},
"DeltaType":"I",
"Version7Checked":false,
"ResolvedFromDefaultBset":false,
"CompressType":"SnappyDefaultCompression",
"Type":"Tibero Database Server",
"LocalFilesBackup":true,
"DisplayDestination":null,
"LanDomain":"",
"ShadowCopyEnabled":true,
"LocalCopySettings":{
"Zip":true,
"DestinationPath":"",
"SkipOffsiteBackup":false,
"SetPermission":false,
"Enabled":false,
"LocalCopyRetentionPolicySettings":{
"ReadOnly":false,
"Enabled":false,
"Period":7,
"Id":"",
"Unit":"DAYS"
},
"Id":""
},
"SettingsMigrated":false,
"AllHostClientVersion":null,
"SelectedSourceList":[]
}
}
}
Example 2: Snippet of Deduplication Settings
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687505199600",
"DestinationID":"1687505211240",
"BackupJobID":"2024-06-23-15-27-57"
}
OUTPUT
{
],
"DeduplicationSettings":{
"MigrateData":false,
"Scope":"ALL_FILES",
"Enabled":true,
"SettingsMigrated":true,
"Id":"",
"BlockSize":65536
},
}
Example 3: Snippet of Module Usage
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"ACB",
"BackupSetID":"1692674960375"
}
OUTPUT
{
],
"ModuleUsage":{
"ModuleUsage":1,
"ModuleType":"Office365Mail",
"HostCount":1
}
}
ListBackupFiles
This API only works for backup data backed up by version 6 or older backup clients.
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupFiles.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | Backup set ID. |
BackupJobID | String | Backup job ID. Obtainable in GetBackupSets API. |
Path | String | Path to the backup files. |
ListAll | Boolean | If true, all files are listed starting from the root directory. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | Information of the backup set. |
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
Backup File
Key | Type | Description |
---|---|---|
Type | String | D is for directory and F is for file. |
Name | String | Name of the backup file. |
FullPath | String | Path to the file. |
OriginalFileSize | Long | Original file size of backup. |
FileSize | Long | Size of the backup file. |
BackupedByJob | String | Job that backed up the file. |
InBackupJob | String | Backup jobs with backup file. |
LastModified | Long | Date of last change. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687750405259",
"BackJobID":"2024-06-26-11-43-15",
"Path":"C:\\",
"ListAll":true
}
OUTPUT
{
"Status":"OK",
"Data":[
{
"OriginalFileSize":0,
"LastModified":"0",
"Type":"0",
"InBackupJob":"Current",
"FullPath":"C:\\",
"BackupedByJob":"2024-06-26-11-33-52",
"Name":"",
"FileSize":1536
},
"OriginalFileSize":0,
"LastModified":"0",
"Type":"0",
"InBackupJob":"Current",
"FullPath":"C:\\Users",
"BackupedByJob":"2024-06-26-11-33-52",
"Name":"Users",
"FileSize":1536
},
"OriginalFileSize":174,
"LastModified":"1575709962747",
"Type":"F",
"InBackupJob":"Current",
"FullPath":"C:\\Users\\Public\\Desktop\\desktop.ini",
"BackupedByJob":"2024-06-26-11-33-52",
"Name":"desktop.ini",
"FileSize":1716
}
]
}
ListBackupJobMode
This API can be used to list all backup job information at a specific date.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Backup Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupJobMode.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | Backup set ID. |
BackupDate | String | Date of backup, in yyyy-MM-dd format. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | See Record. |
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
Record
Key | Type | Description |
---|---|---|
ID | String | ID of the record. |
LoginName | String | Name of the backup user. |
Owner | String | Owner of the backup user. |
UserId | String | ID of the backup user. |
StartTime | String | Time the backup job started. |
EndTime | String | Time the backup job finished. |
BackupSetID | String | ID of the backup set. |
BackupSetName | String | Name of the backup set. |
BackupJobMode | String | The backup job mode response can be one of the following: R = Remote backup, M = Manual backup, S = Scheduled backup or null = no backup. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupDate":"2024-06-26-11-33-52"
}
OUTPUT
{
"Status":"OK",
"Data":[
{
"BackupSetName":"v6 File Backup",
"LoginName":"obm",
"Owner":"",
"EndTime":"2024-06-26 11;34:15",
"UserId":"obm",
"StartTime":"2024-06-26 11:33:52",
"BackupJobMode":"M",
"BackupSetID":"1687750405259"
}
]
}
ListBackupJobs
This API can be used to show the basic information of all backup jobs performed by a specific user.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Backup Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupJobs.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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. |
SkipEmpty | Boolean | If true, backup set with no files is skipped. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | See Backup Set. |
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
Backup Set
Key | Type | Description |
---|---|---|
BackupSetID | String | ID of the backup set. |
Removed | Boolean | Shows whether the backup set is removed. |
BackupJob | Array of Strings | Array list of backup jobs. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm"
}
OUTPUT
{
"Status":"OK",
"Data":[
{
"BackupJob":[
"2024-06-26-11-33-52"
],
"BackupSetID":"1687750405259",
"Removed":false
}
]
}
ListBackupJobStatus
This API can be used to show detailed information such as destination ID and job status of all backup jobs performed by a specific user on a specific date.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Backup Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupJobStatus.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | Username of the backup user. |
BackupDate | String | Date of backup, in yyyy-MM-dd format. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | See Record. |
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
Record
Key | Type | Description |
---|---|---|
ID | String | ID of the record. |
LoginName | String | Name of the backup user. |
Owner | String | Sub admin username (if user is owned by sub admin). |
UserId | String | ID of the backup user. |
StartTime | String | Time backup started, in yyyy-MM-dd format. |
EndTime | String | Time backup finished, in yyyy-MM-dd format. |
BackupJobStatus | String | Job status, BS_STOP_SUCCESS if backup is successful. The error varies if the backup failed. |
BackupSetID | String | ID of the backup set. |
BackupSetName | String | Name of the backup set. |
UploadSize | String | Size of the upload. |
RunVersion | String | Version where job was run. |
SuccessDatabase | String | Database of successful jobs. |
MissedDatabase | String | Database of missed jobs. |
SuccessVirtualMachine | String | If backup is VM type, SuccessPublicFolder is returned instead. |
MissedVirtualMachine | String | If backup is VM type, MissedPublicFolder is returned instead. |
SuccessPublicFolder | String | Only returned if backup is VM type. |
MissedPublicFolder | String | Only returned if backup is VM type. |
DestinationID | String | ID of chosen destination. |
Examples
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"Owner":"",
"LoginName":"ACB",
"BackupDate":"2024-08-16"
}
OUTPUT
{
"Status":"Error",
"Data":[
{
"BackupJobStatus":"BS_STOP_BY_USER",
"BackupSetName":"TEST 1",
"LoginName":"ACB",
"Owner":"",
"MissedDatabase":"",
"EndTime":"2024-28-16 14:06:33",
"SuccessDatabase":"",
"SuccessPublicFolder":"",
"StartTime":"2024-08-16 14:06:18"
"BackupSetID":"1692164297907",
"MissedPublicFolder":"",
"DestinationID":"1692164297907",
"UserID":"ACB",
"UploadSize":0,
"RunVersion":"9.7.0.0",
"ID":"2024-08-16-14-16-17
}
]
}
ListBackupSets
This API can be used to show the name, type and ID of all backup sets of a specific user.
The settings can be found on the AhsayCBS web console at:
- Backup / Restore > Users, Groups & Policies > %User Name% > Backup Set
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListBackupSets.do
Available Since Version: 9.7
Parameters
Key | Type | Description |
---|---|---|
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. |
ListAll | Boolean | True or False, shows all information for all backup sets of specified backup user. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | See Backup Set. |
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". |
ModuleUsage | JSON Object | See ModuleUsage. |
JSON Objects
Backup Set
Key | Type | Description |
---|---|---|
ID | String | ID of the backup set. |
Name | String | Name of the backup set. |
Type | String | Type of backup set. |
ModuleUsage
Key | Type | Description |
---|---|---|
ModuleUsage | Long | Usage of module license by the backup set. |
ModuleType | String | Type of module used by the backup set. Can be one of the following: Office365Mail, MSExMailbox, MSHyperVVM or VMwareVM. |
HostCount | Long | Usage of AhsayOBM / AhsayACB license by the backup set. |
Examples
Example 1: If "ListAll" parameter is not used or is false
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",
"Name":"M365-1"
},
{
"Type":"Office 365 Exchange Online",
"ID":"1692674960375",
"Name":"M365-2"
}
]
}
Example 2: If "ListAll" parameter is set to true / snippet of Module Usage
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"ACB",
"ListAll":true
}
OUTPUT
{
...
"ModuleUsage":{
"ModuleUsage":5,
"ModuleType":"Office365Mail",
"HostCount":1
}
}
RunBackup
This API can be used to start a backup for a specific user or to cancel a pending backup job from the server initiated backup job list.
URL
https://CBS.EXAMPLE.COM/obs/api/json/RunBackup.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | ID of the backup set. 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 | Type of backup. 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. For the following Backup Types, this parameter must be filled with one of the following: MS Exchange Server (if VSS supported): DATABASE, LOG, COPY or DIFFERENTIAL. If not VSS supported: DATABASE or LOG. Oracle Database Server Backup, Lotus Domino & Tibero Database Server Backup: DATABASE or LOG. MS SQL Server Backup: DATABASE, DIFFERENTIAL or LOG. ShadowProtect System Backup: COMPLETE, DIFFERENTIAL or INCREMENTAL. MS Hyper-V Backup:INCREMENTAL or 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 or INCREMENTAL. VMware Player 6 / 7/ VMware Workstation Player 12 / 14 / 15 / 16: SKIP or POWER-OFF. VMware Workstation 10 / 11 / VMware Workstation Pro 12 / 14 / 15 / 16 or VMware Fusion 6 / 7 / 8 / 10 / 11 /12: leave blank. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | Array | Array list of 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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"username",
"BackupSetID":"1462518403716"
}
OUTPUT
{
"Status":"OK"
}
AddPreCommand
This API can be used to add a pre-backup command to a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
Name | String | Name of the command. |
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
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Examples
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"Name":"test,
"WorkingDir":"test",
"Command":"test"
}
OUTPUT
{
"Status":"OK"
}
UpdatePreCommand
This API can be used to update a pre-backup command of a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | Long | ID of the command. Obtainable in GetBackupSets API. |
Name | String | Name of the command. |
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
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Examples
Example 1: Update name
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687755342349",
"Name":"newname"
}
OUTPUT
{
"Status":"OK"
}
Example 2: Update command content
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687755342349",
"Command":"newcommand"
}
OUTPUT
{
"Status":"OK"
}
Example 3: Update working directory
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687755342349",
"WorkingDir":"newworkingdir"
}
OUTPUT
{
"Status":"OK"
}
RemovePreCommand
This API can be used to remove a pre-backup command from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | Long | ID of the command. Obtainable in GetBackupSet API. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687755342349"
}
OUTPUT
{
"Status":"OK"
}
AddPostCommand
This API can be used to add a post-backup command to a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
Name | String | Name of the command. |
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
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"Name":"test2,
"WorkingDir":"test2",
"Command":"test2"
}
OUTPUT
{
"Status":"OK"
}
UpdatePostCommand
This API can be used to update a post-backup command of a backup set.
The settings can be found on the AhsayCBS web console at:
- 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 | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | Long | ID of the command. Obtainable in GetBackupSets API. |
Name | String | Name of the command. |
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
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Examples
Example 1: Update name
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687756006432",
"Name":"newname"
}
OUTPUT
{
"Status":"OK"
}
Example 2: Update command content
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687756006432",
"Command":"newcommand"
}
OUTPUT
{
"Status":"OK"
}
Example 3: Update working directory
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687756006432",
"WorkingDir":"newworkingdir"
}
OUTPUT
{
"Status":"OK"
}
RemovePostCommand
This API can be used to remove a post-backup command from a backup set.
The settings can be found on the AhsayCBS web console at:
- 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/RemovePostCommand.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
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 | ID of the backup set. Obtainable in ListBackupSets API. |
ID | Long | ID of the command. Obtainable in GetBackupSet API. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
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". |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"BackupSetID":"1687755057644",
"ID":"1687756006432"
}
OUTPUT
{
"Status":"OK"
}
ListRestoreJobs
This API can be used to list all restore jobs of each backup set owned by specified users.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Restore Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListRestoreJobs.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
SysUser | String | Username of an AhsayCBS System User with Admin, API or Read-Only API role. |
SysPwd | String | Password matching SysUser. |
LoginName | String | Username of the backup user. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | JSON Object | See 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
Data
Key | Type | Description |
---|---|---|
BackupSetID | String | ID of the backup set. |
Removed | Boolean | Shows whether the backup set is removed. |
RestoreJob | Array of String | Timestamp in yyyy-mm-dd-HH-mm-ss format. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm"
}
OUTPUT
{
"Status":"OK",
"Data":[
{
"RestoreJob":[
"2024-06-26-13-25-13"
],
"BackupSetID":"1687755057644",
"Removed":false
}
]
}
ListRestoreJobStatus
This API can be used to list restore job status of a specified user on a particular date.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Restore Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListRestoreJobStatus.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
SysUser | String | Username of an AhsayCBS System User with Admin, API or Read-Only API role. |
SysPwd | String | Password matching SysUser. |
Owner | String | Owner of the backup user account, usually the sub-admin (if applicable). |
LoginName | String | Username of the backup user. |
RestoreDate | String | Date of restore job, in yyyy-MM-dd format. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | JSON Object | See 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
Data
Key | Type | Description |
---|---|---|
ID | String | ID of the restore job. |
LoginName | String | Name of the backup user. |
Owner | String | Owner of the backup user account, usually the sub-admin (if applicable). |
UserID | String | ID of the backup user. |
StartTime | String | Time restore job started, in yyyy-mm-dd-HH-mm-ss format. |
EndTime | String | Time restore job ended, in yyyy-mm-dd-HH-mm-ss format. |
RestoreJobStatus | String | Job status. RESTORE_STOP_SUCCESS if the restore is successful. Error varies if the restore failed. |
BackupSetID | String | ID of the backup set. |
BackupSetName | Boolean | Name of the backup set. |
RestoreSize | String | Size after restore. |
RunVersion | String | Client version that ran the restore job. |
SuccessDatabase | String | Database of successful restore jobs. |
MissedDatabase | String | Database of missed restore jobs. |
SuccessVirtualMachine | String | If backup is VM type, SuccessPublicFolder is returned instead. |
MissedVirtualMachine | String | If backup is VM type, MissedPublicFolder is returned instead. |
SuccessPublicFolder | String | Only returned if backup is VM type. |
MissedPublicFolder | String | Only returned if backup is VM type. |
DestinationID | String | ID of the destination. |
Examples
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm",
"RestoreDate":"2024-06-26"
}
OUTPUT
{
"Status":"OK",
"Data":[
{
"Status":"RESTORE_STOP_SUCCESS",
"BackupSetName":"default-backup-set-name-1",
"LoginName":"obm",
"Owner":"",
"EndTime":"2024-06-26 13:25:21",
"UserId":"obm",
"RunVersion":"9.11.0.0",
"StartTime":"2024-06-26 13:25:14",
"ID":"2024-06-26-13-25-13",
"BackupSetID":"1687755057644",
"RestoreSize":0,
"DestinationID":"1687755083984"
}
]
}
ListRestoreDrillJobs
This API can be list all completed restore drill jobs owned by a specified user.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Backup / Restore Logs > Restore Drill Jobs
URL
https://CBS.EXAMPLE.COM/obs/api/json/ListRestoreDrillJobs.do
Available Since Version: 9.9
Parameters
Key | Type | Description |
---|---|---|
SysUser | String | Username of an AhsayCBS System User with Admin, API or Read-Only API role. |
SysPwd | String | Password matching SysUser. |
LoginName | String | Username of the backup user. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | JSON Object | See 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
Data
Key | Type | Description |
---|---|---|
RestoreDrillJob | String | Restore drill job ID in timestamp format (yyyy-mm-dd-HH-mm-ss). |
BackupSetID | String | ID of the backup set. |
DestinationID | String | ID of the destination. |
Example
INPUT
{
"SysUser":"system",
"SysPwd":"system1",
"LoginName":"obm"
}
OUTPUT
{
"Status":"OK",
"Data":[
{
"RestoreDrillJob":"2024-10-16-10-28-01",
"BackupSetID":"1697422994935",
"DestinationID":"1697423083118"
},
{
"RestoreDrillJob":"2024-10-16-10-30-06",
"BackupSetID":"1697422994935",
"DestinationID":"1697423083118"
}
]
}