Skip to main content

Group Policy

This subcategory deals with configurations for Group Policies and User Groups, including the addition and deletion of either one, as well as the modification of already existing Group Policies or User Groups relative to their effects on Users.

 

AddUserGroup

This API lets you add a new User Group and allocate users to it.

The settings can be found on the AhsayCBS web console at:

  • Backup/Restore > Users, Groups & Policies > User Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/AddUserGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin, API or Read-Only API role.
SysPwdStringPassword matching SysUser.
UserGroupNameStringName of the user group.
TypeStringThe value can be any one of the following: backup-user (Default value).
UserIdListStringMultiple login names, separated by commas, are accepted. For example; user1, user2, user3.
PolicyIDListArray of StringArray of policy ID.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
IDStringID of User Group.
JSON Objects

EditBillingContactBean

KeyTypeDescription
ContactIdStringID of contact.
NameStringName of contact.
EmailStringEmail of contact.
AddressStringAddress of contact.
CompanyStringCompany of contact.
WebsiteStringWebsite of contact.
Phone1StringTelephone number of contact.
Phone2StringAlternate telephone number of contact.
Examples

Example 1

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456!@#$%",
	"UserGroupName":"user-group"
}

OUTPUT 1

{
	"Status":"OK",
	"ID":"1447039919940"
}

OUTPUT 2 - User Group already in use

{
	"Status":"Error",
	"Message":"The user group name is already in use.",
	"ExptType":"java.lang.Exception"
}

Example 2: Add User Group in Assign Policy

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456!@#$%",
	"UserGroupName":"test-usergroup",
	"PolicyIDList":"139811529749"
}

OUTPUT

{
	"Status":"OK",
	"ID":"1447039919940"
}

 

DeletePolicyGroup

This API allows you to delete a policy group.

The settings can be found on the AhsayCBS web console at:

  • Backup/Restore > Users, Groups & Policies > Policy Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/DeletePolicyGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
IDBooleanID of the policy group.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
Example

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456",
	"ID":"1496989829495"
}

OUTPUT

{
	"Status":"OK"
}

 

DeletePolicyGroupFromUserGroup

This API allows you to delete a policy group.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > User Group > % User Group Name % > Assigned Policy

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/DeletePolicyGroupFromUserGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
UserGroupIDStringID of the user group.
PolicyGroupIDStringID of the policy group.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
Example

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456",
	"UserGroupID":"1497233669967",
	"PolicyGroupID":"1497233409042"
}

OUTPUT 1

{
	"Status":"OK"
}

OUTPUT 2 - Policy group does not exist

{
	"Status":"Error",
	"Message":"Policy group does not exist",
	"ExptType":"org.json.JSONException"
}

 

DeleteUserFromUserGroup

This API allows you to delete a users in a user group.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > Backup User > % User Name % > User Profile > User Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/DeleteUserFromUserGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
IDStringID of the user group.
UserIdListStringMultiple login names, separated by commas, are accepted. For example: user1, user2, user3.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
Example

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456",
	"UserGroupID":"1497233669967",
	"UserIdList":"1497233409042, 1496977596356"
}

OUTPUT 1

{
	"Status":"OK"
}

OUTPUT 2 - User does not exist

{
	"Status":"Error",
	"Message":"[UserCacheManager.NoSuchUserExpt] User ‘1497233409042’ not found.",
	"ExptType":"com.ahsay.obs.core.dbs.Y"
}

 

DeleteUserGroup

This API allows you to delete a user group and all its information.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > Backup User > % User Name % > User Profile > User Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/DeleteUserGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
IDStringID of the user group.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
Example

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456",
	"ID":"1497232492006"
}

OUTPUT 1

{
	"Status":"OK"
}

OUTPUT 2 - User group does not exist

{
	"Status":"Error",
	"Message":"[Error] Parameter UserGroupID, 1497232492006 does not exist.",
	"ExptType":"com.ahsay.obs.core.dbs.Y"
}

 

ListPolicyGroups (v1,v2)

This API can be used to retrieve the group policy settings of a backup user.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > Policy Group

 

v1 ListPolicyGroups.do


URL

https://CBS.EXAMPLE.COM/obs/api/json/ListPolicyGroups.do

Deprecated Since Version: 7.15.6.38

 

v2 ListPolicyGroups.do


For features related to Quota Management, administrator needs to utilize v2 ListPolicyGroups.do

URL

https://CBS.EXAMPLE.COM/obs/api/json/2/ListPolicyGroups.do

Available Since Version: 9.7

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
LoginNameStringUsername of the backup user.
PolicyGroupNameOnlyBooleanOptional parameter can be true / false, default value is false.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
DataArray (data of NameInfo or PolicyGroup)If parameter PolicyGroupNameOnly is true, only data under NameInfo is returned. Otherwise, PolicyGroup is returned.
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
JSON Objects

NameInfo

KeyTypeDescription
PolicyGroupIDStringID of the policy group.
PolicyGroupNameStringName of the policy group.

PolicyGroup

KeyTypeDescription
PreemptedValuesArrayArray for the preempted values of the policy group.
TypeStringThe value can be one of the following: BACKUP_USER or SYSTEM_USER.
OwnerStringSystem user that owns the policy group.
GuiSettingsArrayArray for the GUI settings of the policy group.
PreemptedBackupSetSettingsArrayArray for the preempted backup set settings of the policy group.
BackupSetSettingsArrayArray for the backup set settings of the policy group.
UserSettingsArrayArray for the user settings of the policy group.
MobileSettingsArrayArray for the mobile settings of the policy group.
DefaultValuesArrayArray for the default values of the policy group.
IDStringID of the policy group.
NameStringName of the policy group.
Other Parameters Under Policy Group

PreemptedValues

KeyTypeDescription
VmwareSettingsListArrayArray for VMware settings.
VolumeShadowCopySettingsListArrayArray for Volume Shadow Copy settings.
AllowedIPSettingsListArrayArray for Allowed IP settings.
FollowLinkSettingsListArrayArray for Follow Link settings.
InFileDeltaSettingsListArrayArray for In File Delta settings.
CompressionsSettingsListArrayArray for Compression settings.
WinUserAuthSettingsListArrayArray for Windows User Authentication settings.
FileSettingsListArrayFor use with v1 UpdatePolicyGroup.do only.
GranularRestoreSettingsListArrayArray for Granular Restore settings.
OpenDirectSettingsListArrayArray for OpenDirect settings.
MswindowsSystemStateSettingsListArrayArray for MS Windows System State settings.
DestinationSettingsListArrayArray for Destination settings.
BandwidthControlSettingsListArrayArray for Bandwidth Control settings.
NameSettingsListArrayArray for Name settings.
MySQLSettingsListArrayArray for MySQL settings.
FilePermissionsSettingsListArrayArray for File Permission settings.
RetentionPolicySettingsListArrayArray for Retention Policy settings.
ShadowProtectSettingsListArrayArray for ShadowProtect settings.
AdvancedSettingsListArrayArray for Advanced settings.
CommandSettingsListArrayArray for Command settings.
TemporaryDirectorySettingsListArrayArray for Temporary Directory settings.
OracleSettingsListArrayArray for Oracle settings.
LotusNotesSettingsListArrayArray for Lotus Notes settings.
ReminderSettingsListArrayArray for Reminder settings.
FilterSettingsListArrayArray for Filter settings.
MswindowsSystemSettingsListArrayArray for MS Windows System settings.
LotusDominoSettingsListArrayArray for Lotus Domino settings.
ScheduleSettingsListArrayArray for Schedule settings.
EncryptionSettingsListArrayArray for Encryption settings.
ArchivedLogDeletionSettingsListArrayArray for Archived Log Deletion settings.
CdpSettingsListArrayArray for Continuous Data Protection settings.
SourceShortcutSettingsListArrayArray for Source Shortcut settings.
MariaDBSettingsListArrayArray for MariaDB settings.
RecycleBinSettingsListArrayArray for Recycle Bin settings.
DeduplicationSettingsListObjectRefer to DeduplicationSettingsList, list of Deduplication settings.
TiberoSettingsListArrayArray for Tibero settings.
PostgreSQLSettingsListArrayArray for PostgreSQL settings.

GranularRestoreSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

VmwareSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

VMwareSetting

KeyTypeDescription
HostStringHost IP for VMware.
PortStringPort for VMware host.
UsernameStringLogin name for VMware host.
PasswordStringPassword to authenticate VMware host.
SshportStringSSH port used, default is 22.
IdStringID of VMware host.
VersionStringVersion of VMware host.
AutoEnableCBTBooleanAutomatically enabled Changed Block Tracking when AhsayOBM detects VDDK mode
AppliedValueSettingsArraySee AppliedValueSettings.

OpenDirectSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

AppliedValueSettings

KeyTypeDescription
IdStringID of Applied Value.
TypeStringFor DefaultValues, this value is “default”. For PreemptedValues, this value is “preempted”.
ModeStringFor DefaultValues, this value is empty. For PreemtedValues, this value can be one of the following: prepend, append and override.
NameStringName of Applied Value.
OsStringThis value can be empty, or one of the following: windows, mac and linux.
AppliedModuleIDListArrayThe string can be any of the following values: 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, Oracle Database Server, Shadow Protect Bare Metal, System State, VMware Virtualization, Office 365 Exchange Online, Tibero Database Server. If a string above is added to the array, that module is selected.
VersionString

This value can be empty, or non-empty for specific modules.

For VMWare module, the value can be one of the following: APPVERSION_ESX_V2, APPVERSION_ESXI_V2, APPVERSION_VMSERVER1, APPVERSION_VMSERVER2, APPVERSION_WORKSTATION, APPVERSION_WORKSTATION8, APPVERSION_PLAYER, APPVERSION_FUSION, APPVERSION_FUSION5, APPVERSION_VCENTER_V2.

For Microsoft Exchange and Exchange Mail module, the value can be one of the following: 8 (For Microsoft Exchange Server 2007), 14 (For Microsoft Exchange Server 2010), 15 (For Microsoft Exchange Server 2013) and DAG13 (For Microsoft Exchange Server 2013 (Database Availability Group))

For Microsoft Hyper-V module, the value can be one of the following: Microsoft Hyper-V Server, Microsoft Hyper-V Server R2, Microsoft Hyper-V Server R2 (FailoverCluster), Microsoft Hyper-V Server 2012, Microsoft Hyper-V Server 2012 (FailoverCluster), Microsoft Hyper-V Server 2012 R2, Microsoft Hyper-V Server 2012 R2 (FailoverCluster).

VolumeShadowCopySettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

VolumeShadowCopySetting

KeyTypeDescription
EnableBooleanTrue / False
IdArrayArray list of settings.
AppliedValueSettingsArraySee AppliedValueSettings.

AllowedIPSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

AllowedIPSetting

KeyTypeDescription
IdStringID of settings.
AllowedIPListArrayArray list of Allowed IPs.
AppliedValueSettingsArraySee AppliedValueSettings.

AllowedIP

KeyTypeDescription
IdStringID of Allowed IP.
StartIPStringStarting IP address, i.e. "From".
EndIPStringEnding IP address, i.e. "To".

SourceShortcutSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

FollowLinkSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

FollowLinkSetting

KeyTypeDescription
EnableBooleanTrue / False
IdStringID of setting.
AppliedValueSettingsArraySee AppliedValueSettings.

InFileDeltaSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

InFileDeltaSetting

KeyTypeDescription
EnableBooleanTrue / False
IdStringID of setting.
WeeklyInFileDeltaScheduleArraySee WeeklyInFileDeltaSchedule.
MonthlyInFileDeltaScheduleArraySee MonthlyInFileDeltaSchedule.
MinDeltaFileSizeLongMinimum delta file size.
MaxNumOfDeltaLongMaximum delta file size.
MaxDeltaRatioLongMaximum delta ratio.
DeltaBlockSizeLongValue of block size.
DefaultDeltaTypeStringDelta type.
AppliedValueSettingsArraySee AppliedValueSettings.

WeeklyInFileDeltaSchedule

KeyTypeDescription
DayArrayThe array contains 7 strings, representing the delta type from Sunday to Saturday. The value of the strings can be one of the following: F (for full backup), D (for differential delta) and I (for incremental delta).

MonthlyInFileDeltaSchedule

KeyTypeDescription
DateLongShows the selected day of the month.
CriteriaStringThe value can be one of the following: Weekday, Weekend, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday and Saturday.
OccurenceStringThe value can be one of the following: First, Second, Third, Fourth and Last.
MonthArrayThe array contains 12 strings, representing the delta type from January to December. The value of the strings can be one of the following: F (for full backup), D (for differential delta) and I (for incremental delta).

CompressionsSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.
OverwriteDefaultCompressionBoolean

If True, overwrite default compression type to "Fast with optimization for local".

When the default compression type is "Fast" and:

  1. Destination of Run on Server backup set is AhsayCBS or,
  2. First destination of Run on Client backup set is local.

Only CompressionsSettingsList of DefaultValues has this parameter.

CommandSetting

KeyTypeDescription
IdStringID of setting.
TypeStringThe value can be empty or one of the following: GzipDefaultCompression (Normal), GzipBestSpeedCompression (Fast) and SnappyDefaultCompression (Fast with optimization for local).
AppliedValueSettingsArraySee AppliedValueSettings.

WinUserAuthSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

WinUserAuthSetting

KeyTypeDescription
IdStringID of setting.
DomainStringDomain name/host name for AhsayOBM/AhsayACB to access network location.
PasswordStringPassword to access domain.
UsernameStringUsername used to access domain.
AppliedValueSettingsArraySee AppliedValueSettings.

SourceShortcutSettingsList

KeyTypeDescription
VersionStringVersion of AhsayCBS where setting was made.
@classStringcom.ahsay.obx.cxp.cpf.policy.values.source.FileSettings com.ahsay.obx.cxp.cpf.policy.values.source.Office365SourceShortcutSettings
WindowsOutlookBooleanBackup source shortcut to Outlook. Applicable for File backup set only.
WindowsOutlookExpressBooleanBackup source shortcut to Outlook Express. Applicable for File backup set only.
WindowsDesktopBooleanBackup source shortcut to Desktop. Applicable for File backup set only.
WindowsFavouritesBooleanBackup source shortcut to Favourites. Applicable for File backup set only.
WindowsMailBooleanBackup source shortcut to Windows Mail. Applicable for File backup set only.
WindowsMyDocumentsBooleanBackup source shortcut to My Documents. Applicable for File backup set only.
WindowsLiveMailBooleanBackup source shortcut to Windows Live Mail. Applicable for File backup set only.
DestinationArrayApplicable for Microsoft 365 backup set only.
OneDriveBooleanBackup source shortcut to OneDrive. Applicable for Microsoft 365 backup set only.
PublicFoldersBooleanBackup source shortcut to Microsoft 365 Public Folders. Applicable for Microsoft 365 backup set only.
SiteCollectionsBooleanBackup source shortcut to Microsoft 365 SharePoint Site Collections. Applicable for Microsoft 365 backup set only.
OutlookBooleanBackup source shortcut to Microsoft 365 Outlook. Applicable for Microsoft 365 backup set only.
RunOnServerBooleanRun on server option. Applicable for Microsoft 365 backup set only.
PersonalSitesBooleanBackup source shortcut to Microsoft 365 SharePoint Personal Sites. Applicable for Microsoft 365 backup set only.
AppliedValueSettingsArraySee AppliedValueSettings.

MswindowsSystemStateSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

MswindowsSystemStateSetting

KeyTypeDescription
IdStringID of the MS Windows System State setting. By default, a standard ‘Default’ setting will be in place should no custom setting be set.
VersionStringVersion of AhsayCBS where setting was made.
BackupTargetStringTemporary location for the system backup.
AppliedValueSettingsArraySee AppliedValueSettings.

DestinationSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

DestinationSetting

KeyTypeDescription
IdStringID of the setting.
SystemDestinationIDListArrayArray of System Destination IDs.
DestinationListArrayArray list of Destinations.
SystemDestinationListArrayArray list of System Destinations.
AppliedValueSettingsArraySee AppliedValueSettings.

Destination

KeyTypeDescription
IdStringID of the setting.

BandwidthControlSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

BandwidthControlSetting

KeyTypeDescription
EnableBooleanTrue / False
IdStringID of the setting.
BandwidthControlListArrayList of existing Bandwidth controls.
ModeStringThe value can be one of the following: independent or share.
AppliedValueSettingsArraySee AppliedValueSettings.

BandwidthControlSetting

KeyTypeDescription
NameStringName of the bandwidth control.
IdStringID of the setting.
StartDayLongStarting day of the bandwidth control, which may be one of the following: Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = 4, Thursday = 5, Friday = 6 and Saturday = 7.
StartHourLongStarting hour of the bandwidth control. Range is between 0 and 23.
StartMinuteLongStarting minute of the bandwidth control. Range is between 0 and 59.
EndDayLongDay when bandwidth control ends. Similar values as StartDay.
EndHourLongEnding hour of the bandwidth control. Range is between 0 and 23.
EndMinuteLongEnding minute of the bandwidth control. Range is between 0 and 59.
MaxTransferRateInBitsPerSecLongTransfer rate per second. Can be measured in Kbit/s, Mbit/s and Gbit/s.

NameSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

NameSetting

KeyTypeDescription
IdStringID of the setting.
NameStringName of the setting.
AppliedValueSettingsArraySee AppliedValueSettings.

MySQLSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

MySQLSetting

KeyTypeDescription
IdStringID of the setting.
HostStringHost of the MySQL server. Default is localhost.
PortStringListening port of MySQL server. Default is 3306.
UsernameStringLogin ID of the MySQL system account.
PasswordStringPassword of the MySQL system account.
MysqldumpPathStringPath to the mysqldump file.
VersionStringAhsayCBS version where the setting was made.
AppliedValueSettingsArraySee AppliedValueSettings.

FilePermissionsSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

FilePermissionsSetting

KeyTypeDescription
EnableBooleanID of the setting.
IdStringID of the setting.
AppliedValueSettingsArraySee AppliedValueSettings.

RetentionPolicySettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

RetentionPolicySetting

KeyTypeDescription
IdStringID of the setting.
PeriodLongNumber of days or jobs until deleted files are removed.
OverlapSensitiveBooleanTrue / False
AdvancedRetentionPolicyListArrayList of all Advanced Retention Policies.
TypeStringThe value can be one of the following: SIMPLE or ADVANCED.
UnitStringThe value can be one of the following: DAYS or JOBS.
AppliedValueSettingsArraySee AppliedValueSettings.

AdvancedRetentionPolicy

KeyTypeDescription
NameStringName of the retention policy.
ReadOnlyBooleanTrue / False
IdLongID of the retention policy.
TypeStringThe value can be one of the following: DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY or CUSTOM.
NumbersToKeepIntegerNumber of X where files are kept within the retention area, with X being the Type. For example, if X is set as Daily, and NumbersToKeep is set to 12, then files are kept for 12 Days, except for the Custom type, where the number will be set to 0. By default this is set to 1.
DayIntegerRefers to the “Day” within each Month when setting the policy’s type to either Monthly, Quarterly, Yearly, or Custom.
WeekIntegerWhen type is Monthly, refers to the order of the week in a month.
MonthInteger

When type is Quarterly, refers to the order of the month per quarter.

Below are the quarter divisions and the months they contain:

  • 1 - All first months of a quarter, i.e. January, April, July and October
  • 2 - All second months of a quarter, i.e. February, May, August and November
  • 3 - All third months of a quarter, i.e. March, June, September and December

When type is Yearly, month refers to the specific month in a year.

YearIntegerRefers to the specified year when retention policy type is Custom.
DateTypeStringIt 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, SatBooleanFor weekly custom retention policy.

ShadowProtectSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

ShadowProtectSetting

KeyTypeDescription
IdStringID of the ShadowProtect setting.
EncryptionAlgorithmLong

Type of algorithm used to encrypt the image file in the temporary directory. This will be displayed as an integer ranging from 0 to 4.

The following are the algorithm that may be used:

  • 0 - No encryption
  • 2 - AES 128-bit (A balance between speed and security)
  • 3 - RCA 128-bit (Fastest, but least secure)
  • 4 - AES 256-bit (The most secure but slowest)
EncryptionPasswordStringPassword used for encryption.
VersionStringAhsayCBS version where the setting was made.
InstallLocationStringPath to the ShadowProtect image.
AppliedValueSettingsArraySee AppliedValueSettings.

AdvancedSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

AdvancedSetting

KeyTypeDescription
IdStringID of the setting.
DeselectedSourceListArrayList of deselected sources.
SelectedSourceListArrayList of selected sources.
EnableBooleanTrue / False
AppliedValueSettingsArraySee AppliedValueSettings.

CommandSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

CommandSetting

KeyTypeDescription
IdStringID of the setting.
PreCommandListArrayList of pre-backup commands.
PostCommandListArrayList of post-backup commands.
AppliedValueSettingsArraySee AppliedValueSettings.

Command

KeyTypeDescription
IdStringID of the command setting.
NameStringName of the command setting.
TypeStringThe value can be one of the following: pre (for Pre-command) or post (for Post-command).
CommandStringPre or post backup command to be run.
WorkingDirStringDirectory or address where the backup command will be run.

TemporaryDirectorySettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

OracleSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

OracleSetting

KeyTypeDescription
IdStringID of the Oracle setting.
HostStringHost of the Oracle server. Default is 127.0.0.1 or localhost.
PortStringListening port of Oracle server. Default is 1521.
LoginIDStringID used to login to Oracle. Default is system login.
PasswordStringPassword used to login to Oracle.
SidStringOracle SID.
VersionStringAhsayCBS version where the Oracle setting was made.
AppliedValueSettingsArraySee AppliedValueSettings.

LotusNotesSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

LotusNotesSetting

KeyTypeDescription
IdStringID of the setting.
NotesIniPathStringPath to the Notes.ini file.
VersionStringAhsayCBS version where the setting was made.
AppliedValueSettingsArraySee AppliedValueSettings.

ReminderSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

ReminderSetting

KeyTypeDescription
OfflineNotificationDayLongThis setting is only applicable for v6 legacy backup users.
BackupIntervalHourLongRange is from 00 - 23.
OfflineBackupEnabledBooleanOn / Off
OfflineBackupReminderComputerNameStringThe computer name for the offline backup reminder.
BackupIntervalDaysLongRange is from 00 - 31.
ShowOfflineBackupReminderBooleanTrue / False
LogoutBackupReminderEnabledBooleanOn / Off
LogoutBackupReminderComputerNameStringThe computer name for the logout backup reminder.
IdStringID of the setting.
AppliedValueSettingsArraySee AppliedValueSettings.

FilterSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

FilterSetting

KeyTypeDescription
EnableBooleanTrue / False
IdStringID of the setting.
FilterListArraySee Filter.
AppliedValueSettingsArraySee AppliedValueSettings.

Filter

KeyTypeDescription
NameStringName of the filter.
PatternListArrayList of patterns.
ApplyToDirBooleanApply filters to directory.
ApplyToFileBooleanApply filters to file.
TopDirStringApply filter to specific directory only.
TypeStringThe value can be one of the following: START_WITH, END_WITH, CONTAIN or CUSTOM.
MatchPatternAgainstFulPathOnlyBooleanMatches pattern to full path.
IncludeBooleanExclude or include the matched files/folders under top directory.
OnlyBooleanIf set to true, will not include all unmatched files/folders. If set to false, will include all unmatched files/folders.

Pattern

KeyTypeDescription
PatternStringPattern used for the filter.

MswindowsSystemSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

MswindowsSystemSetting

KeyTypeDescription
IdStringID of the setting.
VersionStringVersio of AhsayCBS when the setting was made.
BackupTargetStringTemporary storage location of the MS Windows System.
AppliedValueSettingsArraySee AppliedValueSettings.

LotusDominoSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

LotusDominoSetting

KeyTypeDescription
IdStringID of the setting.
VersionStringVersion of AhsayCBS when the setting was made.
NotesIniPathStringPath to the notes.ini file.
AppliedValueSettingsArraySee AppliedValueSettings.

TiberoSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

TiberoSetting

KeyTypeDescription
IdStringID of the setting.
HostStringHostname or IP of the Tibero Database Server.
PortStringPort used by Tibero Database Server. Default is 8629.
LoginIDStringID used to login to Tibero Database Server.
PasswordStringPassword used to login to Tibero Database Server.
SidStringTibero Database Server SID.
VersionStringVersion of AhsayCBS when the setting was made.
AppliedValueSettingsArraySee AppliedValueSettings.

ScheduleSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

ScheduleSetting

KeyTypeDescription
IdStringID of the setting.
EnableBooleanTrue / False
ComputerNameStringName of the computer.
DailyScheduleListArrayList of all Daily Schedules.
WeeklyScheduleListArrayList of all Weekly Schedules.
MonthlyScheduleListArrayList of all Monthly Schedules.
CustomScheduleListArrayList of all Custom Schedules.
AppliedValueSettingsArraySee AppliedValueSettings.

DailyScheduleList

KeyTypeDescription
ReadOnlyBooleanTrue / False
NameStringName of the setting.
IdLongID of the setting.
HourIntegerReferred to as HH. It is the schedule when the backup will start (HH:MM).
MinuteIntegerReferred to as MM. It is the schedule when the backup will start (HH:MM).
DurationInteger(optional) If no value is specified, default value = -1. The value can be one of the following: until full backup completed = -1 or stop backup after xx hours = 1 to 24.
BackupTypeString

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 Shadow Protect 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.

SpaceFreeUpEnabledBooleanRemove obsolete files according to retention policy from backup destination according to retention policy.
LastUpdateTimeLongLast time of update.
@classStringcom.ahsay.obx.cxp.obs.DailySchedule
BackupIntervalIntegerSupport periodic schedule backup for all backup set types. 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

KeyTypeDescription
ReadOnlyBooleanTrue / False
NameStringName of the setting.
IdLongID of the setting.
HourIntegerReferred to as HH. It is the schedule when the backup will start (HH:MM).
MinuteIntegerReferred to as MM. It is the schedule when the backup will start (HH:MM).
BackupTypeStringRefer to BackupType of DailySchedule.
DurationInteger(optional) If no value is specified, default value = -1. The value can be one of the following: until full backup completed = -1 or stop backup after xx hours = 1 to 24.
DaysArrayThe array contains 7 boolean values that corresponds to Sunday to Saturday. If the boolean value is true, the backup will run on that day.
SpaceFreeUpEnabledBooleanRemove obsolete files according to retention policy from backup destination according to retention policy.
LastUpdateTimeLongLast time of update.
@classStringcom.ahsay.obx.cxp.obs.WeeklySchedule
BackupIntervalIntegerSupport periodic schedule backup for all backup set types. 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)

MonthlyScheduleList

KeyTypeDescription
ReadOnlyBooleanTrue / False
NameStringName of the setting.
IdLongID of the setting.
HourIntegerReferred to as HH. It is the schedule when the backup will start (HH:MM).
MinuteIntegerReferred to as MM. It is the schedule when the backup will start (HH:MM).
BackupTypeStringRefer to BackupType of DailySchedule.
DurationInteger(optional) If no value is specified, default value = -1. The value can be one of the following: until full backup completed = -1 or stop backup after xx hours = 1 to 24.
OccurenceStringThe value can be one of the following: First, Second, Third, Fourth or Last.
CriteriaStringThe value can be one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Weekday or Weekend.
SpaceFreeUpEnabledBooleanRemove obsolete files according to retention policy from backup destination according to retention policy.
LastUpdateTimeLongLast time of update.
@classStringcom.ahsay.obx.cxp.obs.MonthlySchedule

CustomScheduleList

KeyTypeDescription
ReadOnlyBooleanTrue / False
NameStringName of the setting.
IdLongID of the setting.
HourIntegerReferred to as HH. It is the schedule when the backup will start (HH:MM).
MinuteIntegerReferred to as MM. It is the schedule when the backup will start (HH:MM).
DurationInteger(optional) If no value is specified, default value = -1. The value can be one of the following: until full backup completed = -1 or stop backup after xx hours = 1 to 24.
DateStringIn yyyy-MM-dd format.
BackupTypeStringRefer to BackupType of DailySchedule.
SpaceFreeUpEnabledBooleanRemove obsolete files according to retention policy from backup destination according to retention policy.
LastUpdateTimeLongLast time of update.
@classStringcom.ahsay.obx.cxp.obs.CustomSchedule

EncryptionSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

EncryptionSetting

KeyTypeDescription
KeyLengthLongLength of encryption key.
KeyStringEncryption key.
TypeStringCan be one of the following: DEFAULT, USER PASSWORD or CUSTOM.
AlgorithmStringType of encryption used (Twofish, DESede, AES).
ModeStringCan be one of the following: ECB or CBC.
IdStringID of the setting.
AppliedValueSettingsArraySee AppliedValueSettings.

ArchivedLogDeletionSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

ArchivedLogDeletionSetting

KeyTypeDescription
IdStringID of the setting.
EnableBooleanTrue / False
DaysLongNumber of days.
AppliedValueSettingsArraySee AppliedValueSettings.

CdpSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

CdpSetting

KeyTypeDescription
EnableBooleanTrue / False
IdStringID of the setting.
TypeString

For version 6, the value can be one of the following: all-volume, backup-source or custom-source.

For version 8+, the value is all-volume

BackupTypeString

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 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.

MinUpdateIntervalLongMinimum frequency of updates.
TimeMarkIntervalLongSet frequency of automatic backup job run.
MaxFileSizeLongMaximum file size CDO setting applies to.
ComputerNameStringName of the computer.
ExcludeSystemFilesBooleanDo not backup system files.
FilterListArrayList of filters.
CdpBackupControlSettingsArraySee CDPBackupControl.
VersionStringThe value can be one of the following: 6, 7 or 8.
SelectedSourceListArrayArray of selected sources.
AppliedValueSettingsArraySee AppliedValueSettings.

CdpBackupControl

KeyTypeDescription
ConsiderCpuUsageBooleanThis setting is only applicable for v6 legacy backup users.
CpuUsageIntegerThis setting is only applicable for v6 legacy backup users.
ConsiderInputBooleanThis setting is only applicable for v6 legacy backup users.
ObserveInputForSecondIntegerThis setting is only applicable for v6 legacy backup users.
ConsiderNetworkTrafficBooleanThis setting is only applicable for v6 legacy backup users.
NetworkTrafficLongThis setting is only applicable for v6 legacy backup users.

RecycleBinSettingsList

KeyTypeDescription
EnableBooleanTrue / False
ListArrayArray list of settings.

RecycleBinSetting

KeyTypeDescription
AppliedValueSettingsArraySee AppliedValueSettings.
EnableBooleanEnable moving the files to the Recycle Bin when remove file from Retention Policy or DIC
RetentionPeriodIntegerNumber of days files will be kept in the recycle bin.

UserSettings

KeyTypeDescription
MaximumBackupSetsSettingsArrayArray setting of maximum amount of backup sets.
HostLimitSettingsArrayArray list of maximum number of hosts.
RunDirectLimitSettingsArrayArray list of maximum number of VMs.
AdvertisementSettingsArrayArray list of advertisement settings.
BackupDestinationSettingsArrayFor v2 ListPolicyGroups.do, the EnableQuota and Quota parameters have been removed from this JSON object. They will be displayed under the UserQuotaSettings JSON object.
LogonSettingsArraySettings for login.
EncryptionKeySettingsArrayArray list of encryption key settings.
EmailReportSettingsArrayArray list of email report settings.
UserQuotaSettingsArrayArray list of quotas for users.
QuotaSettingsArrayArray list of quotas settings.
CloudBackupSourceSettingsArrayArray list of cloud backup source settings.
PasswordSettingsArrayArray list of password settings.
SharedQuotaSettingsArrayArray list of shared quota settings.

MaximumBackupSetsSettings

KeyTypeDescription
EnableBooleanTrue / False
MaximumBackupSetsPerUserLongMaximum amount of allowable backup sets that can be created by user.

HostLimitSettings

KeyTypeDescription
EnableBooleanTrue / False
MaxHostLongMaximum number of hosts per user.

RunDirectLimitSettings

KeyTypeDescription
EnableBooleanTrue / False
MaxVmLongMaximum number of VMs per user.

AdvertisementSettings

KeyTypeDescription
EnableBooleanTrue / False
AdvertisementListArrayArray list of advertising options/settings.

BackupDestinationSettings

KeyTypeDescription
ApplicationNameStringName of application.
CustomDestinationListArrayArray list of custom destinations.
SystemDestIDListArrayArray list of destination IDs.
SystemDestinationListArrayArray list of system destinations.

CustomDestinationList (BackupDestinationSettings)

KeyTypeDescription
NameStringName of the destination.
@classString

The value can be one of the following:

  • com.ahsay.obx.cxp.cpf.policy.userSettings.LocalDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AmazonS3Destination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AWSCompatibleDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleCloudStorageDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleDriveDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.PooledDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.WindowsAzureDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OneDriveDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OneDrive4BizDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.RackspaceDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OpenStackDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.DropboxDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.FtpDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.SftpDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.ObsDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AliyunDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.BackblazeDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.WasabiDestination
EnableBooleanTrue / False
ApplicationSecretStringFor Dropbox only.
ClientIDStringFor Google Drive destination, OneDrive, OneDrive for Business (Global and Germany region) only.
ChinaClientIDStringFor OneDrive for Business (China region) only.
ClientSecretStringFor Google Drive destination and OneDrive only.
RedirectURIStringFor OneDrive and OneDrive for Business (Global and Germany region) only.
ChinaRedirectURIStringFor OneDrive for Business (China region) only.

LogonSettings

KeyTypeDescription
EnableBooleanTrue / False
InvalidLoginAttemptPeriodLongNumber of invalid login attempts.
BlockMinuteLongSpecified time period for invalid login attempt (minutes).
BlockHourLongSpecified time period for invalid login attempt (hours).
NumOfInvalidLoginLongNumber of invalid login attempts allowed within a specified time period.
BlockTypeStringThe value can be one of the following: MINUTE, HOUR or FOREVER.

EncryptionKeySettings

KeyTypeDescription
EnableBooleanTrue / False
UploadBooleanTrue / False

EmailReportSettings

KeyTypeDescription
EnableBooleanTrue / False
ConsolidatedReportSendMinLongTime (minute) consolidated e-mail report will be sent.
ConsolidatedReportSendHourLongTime (hour) consolidated e-mail report will be sent.
SendIndividualReportBooleanTrue / False, sends individual e-mail reports to users.
SendConsolidatedReportBooleanTrue / False, sends consolidated e-mail reports to users.
ContactListArrayArray list of contacts.

UserQuotaSettings

KeyTypeDescription
EnableBooleanTrue / False
QuotaListArrayList of all quota settings.
QuotaTypeStringQuota type, either TOTAL_QUOTA or PER_DESTINATION_QUOTA.
StorageQuotaLongTotal quota in GB.
DefaultModeBooleanTrue / False. If false, this means that “mode” has been set to “Preempted”.

QuotaList (UserQuotaSettings)

KeyTypeDescription
EnableBooleanTrue / False
QuotaLongUnit in byte.
DestinationNameStringName of the backup destination.
DestinationKeyStringID of the backup destination.

QuotaSettings

KeyTypeDescription
EnableBooleanTrue / False
CompressBooleanTrue / False

CloudBackupSourceSettings

KeyTypeDescription
EnableBooleanTrue / False
CloudSourceListArrayArray list of cloud sources.

CloudSourceList (CloudBackupSourceSettings)

KeyTypeDescription
NameStringName of the destination.
@classString

The value can be one of the following:

  • com.ahasy.obx.csp.cpf.policy.userSettings.AmazonS3Source
  • com.ahasy.obx.csp.cpf.policy.userSettings.AWSCompatibleSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.GoogleCloudStorageSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.GoogleDriveSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.WindowsAzureSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.OneDriveSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.OneDrive4BizSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.RackspaceSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.OpenStackSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.DropboxSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.FtpSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.SftpSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.AliyunSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.BackblazeSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.CTYunSource
  • com.ahasy.obx.csp.cpf.policy.userSettings.WasabiSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.LocalDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AmazonS3Destination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AWSCompatibleDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleCloudStorageDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleDriveDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.PooledDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.WindowsAzureDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OneDriveDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OneDrive4BizDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.RackspaceDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OpenStackDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.DropboxDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.FtpDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.SftpDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.ObsDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AliyunDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.BackblazeDestination
  • com.ahsay.obx.cxp.cpf.policy.userSettings.WasabiDestination
ApplicationSecretStringFor Dropbox only.
ClientIDStringFor Google Drive destination, OneDrive, OneDrive for Business (Global and Germany region) only.
ChinaClientIDStringFor OneDrive for Business (China region) only.
ClientSecretStringFor Google Drive destination and OneDrive only.
RedirectURIStringFor OneDrive and OneDrive for Business (Global and Germany region) only.
ChinaRedirectURIStringFor OneDrive for Business (China region) only.
BusinessApplicationKeyStringApplication key of Dropbox for Business, for Dropbox only.
BusinessApplicationSecretStringApplication secret of Dropbox for Business, for Dropbox only.

PasswordSettings

KeyTypeDescription
EnableBooleanTrue / False
TypeStringThe value can be one of the following: DEFAULT or CUSTOM.
NumberBooleanTrue / False
LowercaseBooleanTrue / False
MinimumLengthLongMinimum length allowed for passwords.
EnforcePasswordHistoryBooleanTrue / False
SpecialCharactersBooleanTrue / False
UppercaseBooleanTrue / False
PasswordAgeLongNumber of days password has been in use.
MinimumLengthEnabledBooleanTrue / False
RegexStringRegular expression

SharedQuotaSettings

KeyTypeDescription
EnableBooleanTrue / False
QuotaListArrayArray list of quota settings.

QuotaList (SharedQuotaSettings)

KeyTypeDescription
EnableBooleanTrue / False
MaxPercentageLongMaximum percentage of shared size for each user.
QuotaLongUnit in byte.
DestinationNameStringName of the backup destination.
DestinationKeyStringID of the backup destination.

GuiSettings

KeyTypeDescription
PrivilegeListArrayArray list of settings.

Privilege

KeyTypeDescription
IdStringID of the settings.
EnableReadBooleanTrue / False
EnableWriteBooleanIf write privilege is not available for the privilege, this key is removed from the result
PrivilegeGroupStringName of the privilege group.
PolicyNameStringName of the policy.
DisplayNameStringThe name of privilege defined in properties.

PreemptedBackupSetSettings

KeyTypeDescription
PreemptedBackupSetListArrayRefer to BackupSet JSON Object in ListBackupSets API.

BackupSetSettings

KeyTypeDescription
ExcludeFileSettingsArrayArray list of settings.

ExcludeFileSettings

KeyTypeDescription
EnableBooleanTrue / False
LastModifiedPeriodTypeStringThe value can be "YEAR".
LastModifiedTypeStringThe value can be "PERIOD".
LastModifiedDateLongDate when the setting was last modified.
ExcludeFileSizeBooleanTrue / False
ExcludeMappedDriveBooleanTrue / False
ExcludeLastModifiedBooleanTrue / False
FileSizeLongSize of file.
LastModifiedPeriodLongPeriod when setting was last modified.

BackupSetTypeSettings

KeyTypeDescription
EnableBooleanTrue / False
BackupSetTypeListArrayArray list of settings.

DefaultValues

KeyTypeDescription
VmwareSettingsListArrayArray list; VMware settings.
VolumeShadowCopySettingsListArrayArray list; Volume Shadow Copy settings.
AllowedIPSettingsListArrayArray list; Allowed IP settings.
FollowLinkSettingsListArrayArray list; Follow link settings.
InfileDeltaSettingsListArrayArray list; In File Delta settings.
CompressionSettingsListArrayArray list; Compression settings.
WinUserAuthSettingsListArrayArray list; Windows User Authentication settings.
FileSettingsListArrayFor use with v1 UpdatePolicyGroup.do only.
GranularRestoreSettingsListArrayArray list; Granular Restore settings.
OpenDirectSettingsListArrayArray list; OpenDirect settings.
MswindowsSystemStateSettingsListArrayArray list; Microsoft Windows System State settings.
DestinationSettingsListArrayArray list; Destination settings.
BandwidthControlSettingsListArrayArray list; Bandwidth Control settings.
NameSettingsListArrayArray list; Name settings.
MySQLSettingsListArrayArray list; MySQL settings.
FilePermissionsSettingsListArrayArray list; File Permissions settings.
RetentionPolicySettingsListArrayArray list; Retention Policy settings.
ShadowProtectSettingsListArrayArray list; ShadowProtect settings.
AdvancedSettingsListArrayArray list; Advanced settings.
CommandSettingsListArrayArray list; Command settings.
TemporaryDirectorySettingsListArrayArray list; Temporary Directory settings.
OracleSettingsListArrayArray list; Oracle settings.
LotusNotesSettingsListArrayArray list; Lotus Notes settings.
ReminderSettingsListArrayArray list; Reminder settings.
FilterSettingsListArrayArray list; Filter settings.
MswindowsSystemSettingsListArrayArray list; Microsoft Windows System settings.
LotusDominoSettingsListArrayArray list; Lotus Domino settings.
TiberoSettingsListArrayArray list; Tibero settings.
ScheduleSettingsListArrayArray list; Schedule settings.
EncryptionSettingsListArrayArray list; Encryption settings.
ArchivedLogDeletionSettingsListArrayArray list; Archived Log Deletion settings.
CdpSettingsListArrayArray list; Continuous Data Protection settings.
SourceShortcutSettingsListArrayArray list; Source shortcut settings.
MariaDBSettingsListArrayArray list; MariaDB settings.
RecycleBinSettingsListArrayArray list; Recycle bin settings.
DeduplicationSettingsListArrayArray list; Deduplication settings.
PostgreSQLSettingsListArrayArray list; PostgreSQL settings.

DeduplicationSettingsList

KeyTypeDescription
EnableBooleanEnable or disable the list of Deduplication settings.
ListArrayArray of DeduplicationSettings (Policy).

Array - Deduplication Settings (Policy)

KeyTypeDescription
EnabledBooleanWhether Deduplication is enabled.
@classStringcom.ahsay.obx.cxp.cpf.policy.values.deduplication.DeduplicationSettings
ScopeStringEither SAME_FILE or ALL_FILES, other values will result in error.
BlockSizeInteger
  • 65536 for 64k-256k
  • 131072 for 128k-512k
  • 262144 for 256k-1M
  • 524288 for 512k-2M
  • 1048576 for 1M-4M

Removed in v9.5: -1 (was for "Auto" default choice in earlier v9).

SettingsMigratedBooleanWhether the settings will be migrated from In-File Delta settings in next profile update.
MigrateDataBooleanWhether to migrate data for pre-v9 In-File Delta to v9 Deduplication when backed up.
AppliedValueSettingsObjectAppliedValueSettings object, apply the setting to which module(s).

LoginWebConsoleSettings

KeyTypeDescription
EnableBooleanTrue = policy applies.
AllowWebConsoleLoginBooleanTrue = allow backup user to login to AhsayCBS web console.
Example

Example 1

INPUT

{
	"SysUser":"api",
	"SysPwd":"abc123",
	"LoginName":"username",
	"PolicyGroupNameOnly":true
}

OUTPUT

{
	"Status":"OK",
	"Data":[
		{
			"PolicyGroupName":"Default settings",
			"PolicyGroupID":"2"
		}
	]
}

Example 2 - Snippet Example (Deduplication)

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"LoginName":"username"
}

OUTPUT

{
	
	
“@class”:”com.ahsay.obx.cxp.cpd.policy.values.deduplication.Deduplication
Settings”,
		"MigrateData":false,
		"AppliedValueSettings":{
			"Type":"default",
			"@class":"com.ahsay.obx.cxp.cpf.policy.values.AppliedValueSettings",
			"Os":"",
			"Version":"",
			"Mode":"",
			"BackupMode":"",
			"AppliedModuleSettingsList":[
			{
				"Enable":false,
				"Name":"FILE"
			},
			{
				"Enable":false,
				"Name":"Lotus Domino"
			},
			{
				"Enable":false,
				"Name":"Notes"
			},
			{
				"Enable":false,
				"Name":"Microsoft Exchange Server"
			},
			{
				"Enable":false,
				"Name":"Microsoft Exchange Mail (MAPI)"
			},
			{
				"Enable":false,
				"Name":"Microsoft SQL Server"
			},
			{
				"Enable":true,
				"Name":"Microsoft Windows Virtualization"
			},
			{
				"Enable":false,
				"Name":"Microsoft Windows System Backup"
			},
			{
				"Enable":false,
				"Name":"MySQL"
			},
			{
				"Enable":false,
				"Name":"MariaDB"
			},
			{
				"Enable":false,
				"Name":"Oracle Database Server"
			},
			{
				"Enable":false,
				"Name":"ShadowProtect Bare Metal"
			},
			{
				"Enable":false,
				"Name":"System State"
			},
			{
				"Enable":true,
				"Name":"VMware Virtualization"
			},
			{
				"Enable":false,
				"Name":"Cloud File"
			},
			{
				"Enable":false,
				"Name":"Office 365 Exchange Online"
			}
		],
		"Id":"1434946034923",
		"Name":"Default deduplication settings - VMware & Hyper-V"
		},
		"Scope":"ALL_FILES",
		"Enabled":true,
		"SettingsMigrated":true,
		"BlockSize":524288
...	
}

Example 3 - Snippet Example (RecycleBinSettingsList)

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"LoginName":"username",
	"ID":"1692164125127"
}

OUTPUT

{
	"RecycleBinSettingsList":{
		"Enable":true,
		"List":[
		{
		
"@class”:”com.ahsay.obx.cxp.cpf.policy.values.others.RecycleBinSettings",
			"AppliedValueSettings":{
				"Destination":"".
				"Type":"default",
				
"@class”:”com.ahsay.obx.cxp.cpf.policy.values.AppliedValueSettings",
			"Os":"",
			"Version":"",
			"Mode":"",
			"BackupMode":"",
			"AppliedModuleSettingsList":[
			{
				"Enable":true,
				"Name":"FILE"
			},
			{
				"Enable":false,
				"Name":"Lotus Domino"
			},
			{
				"Enable":false,
				"Name":"Notes"
			},
			{
				"Enable":false,
				"Name":"Microsoft Exchange Server"
			},
			{
				"Enable":false,
				"Name":"Microsoft Exchange Mail (MAPI)"
			},
			{
				"Enable":false,
				"Name":"Microsoft SQL Server"
			},
			{
				"Enable":false,
				"Name":"Microsoft Windows Virtualization"
			},
			{
				"Enable":false,
				"Name":"Microsoft Windows System Backup"
			},
			{
				"Enable":false,
				"Name":"MySQL"
			},
			{
				"Enable":false,
				"Name":"MariaDB"
			},
			{
				"Enable":false,
				"Name":"Oracle Database Server"
			},
			{
				"Enable":false,
				"Name":"ShadowProtect Bare Metal"
			},
			{
				"Enable":false,
				"Name":"System State"
			},
			{
				"Enable":false,
				"Name":"VMware Virtualization"
			},
			{
				"Enable":false,
				"Name":"Cloud File"
			},
			{
				"Enable":false,
				"Name":"Office 365 Exchange Online"
			}
		],
		"Id":"1692164125127",
		"Name":"Setting1"
	},
	"Enabled":true,
	"RetentionPeriod":8
}

 

ListUserGroups

This API can be used to retrieve the information of a User Group.

The settings can be found on the AhsayCBS web console at:

  • Backup/Restore > Users, Groups & Policies > User Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/ListUserGroups.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
UserGroupIDStringReturns information of the user group with this ID. If UserGroupID and UserID are not provided, information of all user groups will be returned.
UserIDStringReturns information of the user groups that contain the user. If UserGroupID and UserID are not provided, information of all user groups will be returned.
UserGroupOnlyBooleanDefault value is false.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
DataUserGroupBasicInfo or UserGroupFullInfoIf UserGroupOnly is true, UserGroupBasicInfo is returned. Otherwise, UserGroupFillInfo is returned.
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
JSON Objects

UserGroupBasicInfo

KeyTypeDescription
IDStringID of the user group.
NameUserGroupBasicInfor or UserGroupFullInfoName of the user group.
TypeStringValue is BACKUP_USER.
OwnerStringOwner of the user group.

UserGroupFullInfo

KeyTypeDescription
IDStringID of the user group
NameUserGroupBasicInfor or UserGroupFullInfoName of the user group.
TypeStringValue is BACKUP_USER.
OwnerStringOwner of the user group.
UsersArray of UserArray list of users assigned to the user group.
PolicyGroupArray of PolicyArray list of assigned policy group to the user group.

User

KeyTypeDescription
LoginNameStringBackup user name.
OwnerStringOwner of the user.
UserIdStringID of the user.

Policy

KeyTypeDescription
IDStringID of the policy.
NameStringName of the policy.
Example

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"UserGroupOnly":true
}

OUTPUT

{
	"Status":"OK",
	"Data":[
		{
			"Type":"BACKUP_USER",
			"Owner":"",
			"ID":"1",
			"Name":"All Users"
		}
	]
}

 

ModifyUserGroup

This API lets you modify the name of the User Group, add users or delete user to / from a User Group.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > User Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/ModifyUserGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
IDStringUser Group ID obtainable from ListUserGroups API.
UserGroupNameStringName of the user group.
UserIdListStringUser names to be added to or removed from the user group. Multiple login names, separated by commas, are accepted. For example: user1, user2, user3.
ModeStringThe value can be one of the following: A (default value) or D. IF the value is "A", users in UserIdList will be added to the user group. If the value is "D", users in the UserIdList will be removed from the user group.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
Examples

Example 1

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"ID":"1447039919940",
	"UserIdList":"user",
	"Mode":"D"
}

OUTPUT

{
	"Status":"OK"
}

OUTPUT - User does not exist

{
	"Status":"Error",
	"Message":"[UserCacheManager.NoSuchUserExpt] User ‘user’ not found.",
	"ExptType":"com.ahsay.obs.core.dbs.Y"
}

Example 2: Incorrect parameter mode

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"ID":"1447039919940",
	"UserIdList":"user",
	"Mode":"S"
}

OUTPUT

{
	"Status":"Error",
	"Message":"[Error] Parameter Mode must either be A or D!",
	"ExptType":"com.ahsay.obs.core.dbs.c"
}

 

UpdatePolicyGroup (v1,v2)

This API can be used to update settings of a Policy Group.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > Policy Group

The Policy Group ID can be created using AddPolicyGroup.do or can be found from the AhsayCBS Policy Group page, by looking at the URL. Example: https://CBS>EXAMPLE.COM/cbs/obs/policy/EditPolicy.do?id=1632367172249

Retrieve all available parameters of policies that you can update by calling the ListPolicyGroups.do API first.

v1 UpdatePolicyGroup.do


URL

https://CBS.EXAMPLE.COM/obs/api/json/UpdatePolicyGroup.do

Deprecated Since Version: 7.15.6.38

 

v2 UpdatePolicyGroup.do


For features related to Quota Management, administrator needs to utilize v2 UpdatePolicyGroup.do

URL

https://CBS.EXAMPLE.COM/obs/api/json/2/UpdatePolicyGroup.do

Available Since Version: 9.5

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
IDStringPolicy Group ID.
NameStringName of the policy group.
OwnerStringSubAdmin name if Policy is to be assigned to a SubAdmin.
For details of all available parameters, please refer to the PolicyGroup JSON objects outlined in ListPolicyGroups.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
JSON Objects

PreemptedValues

KeyTypeDescription
TiberoSettingsListArrayArray for Tibero settings.

AppliedValueSettings

KeyTypeDescription
AppliedModuleSettingsListArrayThe string can be one of the following values: 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, Oracle Database Server, Shadow Protect Bare Metal, System State, VMware Virtualization, Office 365 Exchange Online, Tibero Database Server or PostgreSQL. If a string is added to the array, that module is selected.

CloudSourceList

KeyTypeDescription
@classString

The value can be one of the following:

  • com.ahsay.obx.cxp.cpf.policy.userSettings.AmazonS3Source
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AWSCompatibleSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleCloudStorageSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.GoogleDriveSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.WindowsAzureSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OneDriveSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OneDrive4BizSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.RackspaceSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.OpenStackSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.DropboxSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.FtpSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.SftpSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.AliyunSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.BackblazeSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.CTYunSource
  • com.ahsay.obx.cxp.cpf.policy.userSettings.WasabiSource
BusinessApplicationKeyStringApplication key of Dropbox for Business; for Dropbox only.
BusinessApplicationSecretStringApplication key of Dropbox for Business; for Dropbox only.

TiberoSettingsList

KeyTypeDescription
EnableBoolean"OK" or "Error"
ListArrayArray list of settings.

TiberoSetting

KeyTypeDescription
IdStringID of the setting.
HostStringHostname or IP of the Tibero Database Server.
PortStringPort number of the Tibero Database Server. Default is 8629.
LoginIDStringLogin ID used to login to the Tibero Database Server.
PasswordStringPassword used to login to the Tibero Database Server.
SidStringTibero Database Server SID.
VersionStringTibero Database Server version.
AppliedValueSettingsArraySee AppliedValueSettings.

PostgreSQLSettingsList

KeyTypeDescription
EnableBoolean"OK" or "Error"
ListArrayArray list of settings.

PostgreSQLSetting

KeyTypeDescription
EnableBoolean"OK" or "Error"
UsernameStringUsername used to login to PostgreSQL.
PasswordStringPassword used to login to PostgreSQL.
HostStringHostname or IP of PostgreSQL.
PortStringPort number of PostgreSQL. Default is 5432.
PostgreSQLDumpPathStringDump path of PostgreSQL.

DefaultValues

KeyTypeDescription
TiberoSettingsListArrayArray for Tibero settings.
Examples

Example 1

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"Name":"Default settings",
	"ID":"2",
	"Owner":"",
	"UserSettings":{
		"HostLimitSettings":{
			"Enable":true,
			"MaxHost":45
		}
	}
}

OUTPUT

{
	"Status":"OK"
}

Example 2: Deduplication (snippet)

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"ID":"2",
	"Owner":"",
	"DefaultValues":{
		"DeduplicationSettingsList":{
			"Enable":true,
			"List":[
				{
				
"@class”:”com.ahsay.obx.cxp.cpf.policy.values.deduplication.DeduplicationSettings",
					"MigrateData":false,
					"AppliedValueSettings":{
						"Type":"default",
						
"@class”:”com.ahsay.obx.cxp.cpf.policy.values.AppliedValuesSettings",
						"Os":"",
						"Mode":"",
						"BackupMode":"",
						"AppliedModuleSettingsList":[
							{
								"Enable":false,
								"Name":"FILE"
							},
							{
								"Enable":false,
								"Name":"Lotus Domino"
							},
							{
								"Enable":false,
								"Name":"Lotus Notes"
							},
							{
								"Enable":false,
								"Name":"Microsoft Exchange Server"
							},
							{
								"Enable":false,
								"Name":"Microsoft Exchange Mail (MAPI)"
							},
							{
								"Enable":false,
								"Name":"Microsoft SQL Server"
							},
							{
								"Enable":false,
								"Name":"Microsoft Windows Virtualization"
							},
							{
								"Enable":false,
								"Name":"Microsoft Windows System Backup"
							},
							{
								"Enable":false,
								"Name":"MySQL"
							},
							{
								"Enable":false,
								"Name":"MariaDB"
							},
							{
								"Enable":false,
								"Name":"Oracle Database Server"
							},
							{
								"Enable":false,
								"Name":"ShadowProtect Bare Metal"
							},
							{
								"Enable":false,
								"Name":"System State"
							},
							{
								"Enable":false,
								"Name":"VMware Virtualization"
							},
							{
								"Enable":false,
								"Name":"Cloud File"
							},
							{
								"Enable":false,
								"Name":"Office 365 Exchange Online"
							},
							"Id":"1434946034923",
							"Name":"Default deduplication settings - VMware & Hyper-V"
						}
					]
				}
		}
	}
}

OUTPUT

{
	"Status":"OK"
}

Example 3

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"Name":"api-test-policy",
	"ID":"1632367172249",
	"Owner":"",
	"PreemptedValues":{
		"VmwareSettingsList":{
			"Enable":false,
			"List": []
		},
		"VolumeShadowCopySettingsList":{
			"Enable":false,
			"List": []
		},
		"AllowedIPSettingsList":{
			"Enable":false,
			"List": []
		},
		"FollowLinkSettingsList":{
			"Enable":false,
			"List": []
		},
		"InFileDeltaSettingsList":{
			"Enable":false,
			"List": []
		},
		"CompressionsSettingsList":{
			"Enable":false,
			"List": []
		},
		"WinUserAuthSettingsList":{
			"Enable":false,
			"List": []
		},
		"FileSettingsList":{
			"Enable":false,
			"List": []
		},
		"MswindowsSystemStateSettingsList":{
			"Enable":false,
			"List": []
		},
		"DestinationSettingsList":{
			"Enable":false,
			"List": []
		},
		"BandwidthControlSettingsList":{
			"Enable":false,
			"List": []
		},
		"NameSettingsList":{
			"Enable":false,
			"List": []
		},
		"RetentionPolicySettingsList":{
			"Enable":false,
			"List": []
		},
		"FilePermissionsSettingsList":{
			"Enable":false,
			"List": []
		},
		"MySQLSettingsList":{
			"Enable":false,
			"List": []
		},
		"ShadowProtectSettingsList":{
			"Enable":false,
			"List": []
		},
		"AdvancedSettingsList":{
			"Enable":false,
			"List": []
		},
		"CommandSettingsList":{
			"Enable":false,
			"List": []
		},
		"TemporaryDirectorySettingsList":{
			"Enable":false,
			"List": []
		},
		"OracleSettingsList":{
			"Enable":false,
			"List": []
		},
		"ReminderSettingsList":{
			"Enable":false,
			"List": []
		},
		"LotusNotesSettingsList":{
			"Enable":false,
			"List": []
		},
		"FilterSettingsList":{
			"Enable":false,
			"List": []
		},
		"MswindowsSystemSettingsList":{
			"Enable":false,
			"List": []
		},
		"LotusDominoSettingsList":{
			"Enable":false,
			"List": []
		},
		"ScheduleSettingsList":{
			"Enable":false,
			"List": []
		},
		"ArchivedLogDeletionSettingsList":{
			"Enable":false,
			"List": []
		},
		"EncryptionSettingsList":{
			"Enable":false,
			"List": []
		},
		"CdpSettingsList":{
			"Enable":false,
			"List": []
		}
	},
	"UserSettings":{
		"MaximumBackupSetsSettings":{
			"MaximumBackupSetsPerUser":10,
			"Enable":false
		},
		"BackupDestinationSettings":{
			"ApplicationName":"",
			"CustomDestinationList":[
				{
					"ChinaClientID":"e71a1234-1234-1234-b2f4-ccf1aa830a78",
					"@class":"com.ahsay.obx.cxp.cpf.policy.userSettings.OneDrive4BizDestination",
					"ChinaRedirectURI":"https://backupserverserver/register/oauth2-office365.jsp",
					"Enable":true,
					"ClientID":"d349b19f-0a90-1234-1234-0caa8114da04",
					"RedirectURI":"https://backupserverserver/register/oauth2-office365.jsp",
					"Name":"OneDrive4Biz"
				}
			],
			"SystemDestIDList":[],
			"Enable":false,
			"SystemDestinationList":[]
		},
		"QuotaSettings":{
			"SharedQuota":10737418240,
			"MaxPercentage":50,
			"Enable":true,
			"Compress":true,
			"SharedQuotaEnable":false
		},
		"CloudBackupSourceSettings":{
			"Enable":true,
			"CloudSourceList":[
				{
					"ChinaClientID":"e71a1234-1234-1234-b2f4-ccf1aa830a78",
					"@class":"com.ahsay.obx.cxp.cpf.policy.userSettings.OneDrive4BizSource",
					"ChinaRedirectURI":"https://backupserver/register/oauth2-office365.jsp",
					"ClientID":"d349b19f-0a90-1234-1234-0caa8114da04",
					"RedirectURI":"https://backupserver/register/oauth2-office365.jsp",
					"Name":"OneDrive4Biz"
				}
			]
		},
		"EncryptionKeySettings":{
			"Enable":false,
			"Upload":false
		},
		"EmailReportSettings":{
			"ContactList":[],
			"SendInactiveBSetReport":false,
			"Enable":false,
			"ConsolidatedReportSendMin":0,
			"SendIndividualReport":false,
			"SendConsolidatedReport":false,
			"InactiveBSetReportSendDay":30,
			"ConsolidatedReportSendHour":0
		},
		"PasswordSettings":{
			"EnforcePasswordHistory":true,
			"MinimumLength":6,
			"SpecialCharacters":true,
			"Uppercase":true,
			"Enable":false,
			"Lowercase":true,
			"Number":true,
			"Type":"DEFAULT",
			"PasswordAge":90,
			"MinimumLengthEnabled":true,
			"Regex":""
		},
		"LogonSettings":{
			"InvalidLoginAttemptPeriod":30,
			"Enable":false,
			"NumOfInvalidLogin":3,
			"BlockMinute":60,
			"BlockType":"MINUTE",
			"BlockHour":24
		},
		"Type":"BACKUP_USER",
		"PreemptedBackupSetSettings":{
			"PreemptedBackupSetList":[]
		},
		"GuiSettings":{
			"PrivilegeList":[
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Backup",
					"EnableRead":true,
					"Id":"M-10001",
					"DisplayName":"Backup"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Restore",
					"EnableRead":true,
					"Id":"M-10002",
					"DisplayName":"Restore"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"BackupSets",
					"EnableRead":true,
					"Id":"M-10003",
					"DisplayName":"Backup Sets"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Settings",
					"EnableRead":true,
					"Id":"M-10004",
					"DisplayName":"Settings"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Report",
					"EnableRead":true,
					"Id":"M-10005",
					"DisplayName":"Report"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Utilities",
					"EnableRead":true,
					"Id":"M-10006",
					"DisplayName":"Utilities"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Profile",
					"EnableRead":true,
					"Id":"M-10007",
					"DisplayName":"Profile"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Language",
					"EnableRead":true,
					"Id":"M-10008",
					"DisplayName":"Language"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Information",
					"EnableRead":true,
					"Id":"M-10009",
					"DisplayName":"Information"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"Advertisement",
					"EnableRead":true,
					"Id":"M-10010",
					"DisplayName":"Advertisement"
				},
				{
					"PrivilegeGroup":"MainMenu",
					"PolicyName":"SocialMedia",
					"EnableRead":true,
					"Id":"M-10011",
					"DisplayName":"Links to Social Media"
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"ProfileGeneralTab",
					"EnableRead":true,
					"Id":"P-10001",
					"DisplayName":"General Tab"
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"ProfileGeneralSettings",
					"EnableRead":true,
					"Id":"P-10002",
					"DisplayName":"General Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"ContactsTab",
					"EnableRead":true,
					"Id":"P-10003",
					"DisplayName":"Contacts Tab"
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"ContactsSettings",
					"EnableRead":true,
					"Id":"P-10004",
					"DisplayName":"Contacts Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"TimezoneTab",
					"EnableRead":true,
					"Id":"P-10005",
					"DisplayName":"Timezone Tab"
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"TimezoneSettings",
					"EnableRead":true,
					"Id":"P-10006",
					"DisplayName":"Timezone Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"PasswordTab",
					"EnableRead":true,
					"Id":"P-10007",
					"DisplayName":"Password Tab"
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"PasswordSettings",
					"EnableRead":true,
					"Id":"P-10008",
					"DisplayName":"Password Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"EncryptionRecoveryTab",
					"EnableRead":true,
					"Id":"P-10009",
					"DisplayName":"Encryption Recovery Tab"
				},
				{
					"PrivilegeGroup":"Profile",
					"PolicyName":"EncryptionRecoverySettings",
					"EnableRead":true,
					"Id":"P-10010",
					"DisplayName":"Encryption Recovery Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsName",
					"EnableRead":true,
					"Id":"BS-10003",
					"DisplayName":"General Settings - Name",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsIBMDomino",
					"EnableRead":true,
					"Id":"BS-10004",
					"DisplayName":"General Settings - IBM Domino",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsIBMNotes",
					"EnableRead":true,
					"Id":"BS-10005",
					"DisplayName":"General Settings - IBM Notes",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsMSExchangeServer",
					"EnableRead":true,
					"Id":"BS-10006",
					"DisplayName":"General Settings - MS Exchange Server",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsMSHyper-V",
					"EnableRead":true,
					"Id":"BS-10007",
					"DisplayName":"General Settings - MS Hyper-V",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsMSSQLServer",
					"EnableRead":true,
					"Id":"BS-10008",
					"DisplayName":"General Settings - MSSQL Server",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsWindowsSystemBackup",
					"EnableRead":true,
					"Id":"BS-10009",
					"DisplayName":"General Settings - Windows System Backup",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsWindowsSystemStateBackup",
					"EnableRead":true,
					"Id":"BS-10010",
					"DisplayName":"General Settings - Windows System State Backup",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsMySQLServer",
					"EnableRead":true,
					"Id":"BS-10011",
					"DisplayName":"General Settings - MySQL Server",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsOracleDatabaseServer",
					"EnableRead":true,
					"Id":"BS-10012",
					"DisplayName":"General Settings - Oracle Database Server",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsVMwareHost",
					"EnableRead":true,
					"Id":"BS-10013",
					"DisplayName":"General Settings - VMware Host",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsShadowProtect",
					"EnableRead":true,
					"Id":"BS-10014",
					"DisplayName":"General Settings - Shadow Protect",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralSettingsWindowsUserAuthentication",
					"EnableRead":true,
					"Id":"BS-10015",
					"DisplayName":"General Settings - Windows User Authentication",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"SourceTab",
					"EnableRead":true,
					"Id":"BS-10016",
					"DisplayName":"Source Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"SourceSettingsBackupSource",
					"EnableRead":true,
					"Id":"BS-10017",
					"DisplayName":"Source Settings - BackupSource",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"SourceSettingsFilter",
					"EnableRead":true,
					"Id":"BS-10018",
					"DisplayName":"Source Settings - Filter",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"BackupScheduleTab",
					"EnableRead":true,
					"Id":"BS-10020",
					"DisplayName":"Backup Schedule Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"BackupScheduleSettings",
					"EnableRead":true,
					"Id":"BS-10021",
					"DisplayName":"Backup Schedule Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"ContinuousBackupTab",
					"EnableRead":true,
					"Id":"BS-10022",
					"DisplayName":"Continuous Backup Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"ContinuousBackupSettings",
					"EnableRead":true,
					"Id":"BS-10023",
					"DisplayName":"Continuous Backup Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"DestinationTab",
					"EnableRead":true,
					"Id":"BS-10024",
					"DisplayName":"Destination Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":DestinationSettings",
					"EnableRead":true,
					"Id":"BS-10025",
					"DisplayName":"Destination Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"InFileDeltaTab",
					"EnableRead":true,
					"Id":"BS-10026",
					"DisplayName":"In-File Delta Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"InFileDeltaSettings",
					"EnableRead":true,
					"Id":"BS-10027",
					"DisplayName":"In-File Delta Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"RetentionPolicyTab",
					"EnableRead":true,
					"Id":"BS-10028",
					"DisplayName":"Retention Policy Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"RetentionPolicySettings",
					"EnableRead":true,
					"Id":"BS-10029",
					"DisplayName":"Retention Policy Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"CommandLineToolTab",
					"EnableRead":true,
					"Id":"BS-10030",
					"DisplayName":"Command Line Tool Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"CommandLineToolSettings",
					"EnableRead":true,
					"Id":"BS-10031",
					"DisplayName":"Command Line Tool Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"ReminderTab",
					"EnableRead":true,
					"Id":"BS-10032",
					"DisplayName":"Reminder Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"ReminderSettings",
					"EnableRead":true,
					"Id":"BS-10033",
					"DisplayName":"Reminder Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"BandwidthControlTab",
					"EnableRead":true,
					"Id":"BS-10034",
					"DisplayName":"Bandwidth Control Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"BandwidthControlSettings",
					"EnableRead":true,
					"Id":"BS-10035",
					"DisplayName":"Bandwidth Control Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersTab",
					"EnableRead":true,
					"Id":"BS-10038",
					"DisplayName":"Others Tab"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsTemporaryDirectory",
					"EnableRead":true,
					"Id":"BS-10039",
					"DisplayName":"Others Settings - Temporary Directory",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsFollowLink",
					"EnableRead":true,
					"Id":"BS-10040",
					"DisplayName":"Others Settings - Follow Link",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsVolumeShadowCopy",
					"EnableRead":true,
					"Id":"BS-10041",
					"DisplayName":"Others Settings - Volume Shadow Copy",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsFilePermissions",
					"EnableRead":true,
					"Id":"BS-10042",
					"DisplayName":"Others Settings - File Permissions",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsArchivedLogDeletion",
					"EnableRead":true,
					"Id":"BS-10043",
					"DisplayName":"Others Settings - Archived Log Deletion",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsCompressions",
					"EnableRead":true,
					"Id":"BS-10044",
					"DisplayName":"Others Settings - Compressions",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"OthersSettingsEncryption",
					"EnableRead":true,
					"Id":"BS-10045",
					"DisplayName":"Others Settings - Encryption",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Settings",
					"PolicyName":"ProxyTab",
					"EnableRead":true,
					"Id":"S-10001",
					"DisplayName":"Proxy Tab"
				},
				{
					"PrivilegeGroup":"Settings",
					"PolicyName":"ProxySettings",
					"EnableRead":true,
					"Id":"S-10002",
					"DisplayName":"Proxy Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Settings",
					"PolicyName":"WindowsEventLogTab",
					"EnableRead":true,
					"Id":"S-10005",
					"DisplayName":"Windows Event Log Tab"
				},
				{
					"PrivilegeGroup":"Settings",
					"PolicyName":"WindowsEventLogSettings",
					"EnableRead":true,
					"Id":"S-10006",
					"DisplayName":"Windows Event Log Settings",
					"EnableWrite":true
				},
				{
					"PrivilegeGroup":"Utilities",
					"PolicyName":"DataIntegrityCheck",
					"EnableRead":true,
					"Id":"U-10001",
					"DisplayName":"Data Integrity Check"
				},
				{
					"PrivilegeGroup":"Utilities",
					"PolicyName":"SpaceFreeingUp",
					"EnableRead":true,
					"Id":"U-10002",
					"DisplayName":"Space Freeing Up"
				},
				{
					"PrivilegeGroup":"Utilities",
					"PolicyName":"DeleteBackupData",
					"EnableRead":true,
					"Id":"U-10003",
					"DisplayName":"Delete Backup Data"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"AddAndRemove",
					"EnableRead":true,
					"Id":"BS-10001",
					"DisplayName":"Add and Remove Backup Set"
				},
				{
					"PrivilegeGroup":"BackupSets",
					"PolicyName":"GeneralTab",
					"EnableRead":true,
					"Id":"BS-10002",
					"DisplayName":"General Tab"
				}
			]
		},
		"ID":"1446023471399",
		"BackupSetSettings":{
			"ExcludeFileSettings":{
				"LastModifiedPeriod":10,
				"FileSize":10737418240,
				"ExcludeMappedDrive":true,
				"ExcludeLastModified":true,
				"LastModifiedPeriodType":"YEAR",
				"LastModifiedType":"PERIOD",
				"Enable":false,
				"LastModifiedDate":-1,
				"ExcludeFileSize":true
			}
		},
		"DefaultValues":{
			"VmwareSettingsList":{
				"Enable":false,
				"List":[]
			},
			"VolumeShadowCopySettingsList":{
				"Enable":false,
				"List":[]
			},
			"AllowedIPSettingsList":{
				"Enable":false,
				"List":[]
			},
			"FollowLinkSettingsList":{
				"Enable":false,
				"List":[]
			},
			"InFileDeltaSettingsList":{
				"Enable":false,
				"List":[]
			},
			"CompressionsSettingsList":{
				"Enable":false,
				"List":[]
			},
			"WinUserAuthSettingsList":{
				"Enable":false,
				"List":[]
			},
			"FileSettingsList":{
				"Enable":false,
				"List":[]
			},	
			"MswindowsSystemStateSettingsList":{
				"Enable":false,
				"List":[]
			},
			"DestinationSettingsList":{
				"Enable":false,
				"List":[]
			},
			"BandwidthControlSettingsList":{
				"Enable":false,
				"List":[]
			},
			"NameSettingsList":{
				"Enable":false,
				"List":[]
			},
			"RetentionPolicySettingsList":{
				"Enable":false,
				"List":[]
			},
			"FilePermissionsSettingsList":{
				"Enable":false,
				"List":[]
			},
			"MySQLSettingsList":{
				"Enable":false,
				"List":[]
			},
			"ShadowProtectSettingsList":{
				"Enable":false,
				"List":[]
			},
			"AdvancedSettingsList":{
				"Enable":false,
				"List":[]
			},
			"CommandSettingsList":{
				"Enable":false,
				"List":[]
			},
			"TemporaryDirectorySettingsList":{
				"Enable":false,
				"List":[]
			},
			"ReminderSettingsList":{
				"Enable":false,
				"List":[]
			},
			"LotusNotesSettingsList":{
				"Enable":false,
				"List":[]
			},
			"FilterSettingsList":{
				"Enable":false,
				"List":[]
			},
			"MswindowsSystemSettingsList":{
				"Enable":false,
				"List":[]
			},
			"LotusDominoSettingsList":{
				"Enable":false,
				"List":[]
			},
			"ScheduleSettingsList":{
				"Enable":false,
				"List":[]
			},
			"ArchivedLogDeletionSettingsList":{
				"Enable":false,
				"List":[]
			},
			"EncryptionSettingsList":{
				"Enable":false,
				"List":[]
			},
			"CdpSettingsList":{
				"Enable":false,
				"List":[]
			}
		}
}

OUTPUT 1: If no errors

{
	"Status":"OK"
}

OUTPUT 2: If v1 UpdatePolicyGroup parameter FileSettingsList was in the input

{
	"Status":"Error",
	"Message":"FileSettingsList” is deprecated. It is only supported in UpdatePolicyGroup v1 API. Please use ‘SourceShortcutSettingsList’ instead",
	"ExptType":"java.lang.Exception"
}

OUTPUT 3: If ClientID is empty from the input

{
	"Status":"Error",
	"Message":"ClientID cannot be empty in OneDrive4Biz of CustomDestinationList!",
	"ExptType":"java.lang.Exception"
}

OUTPUT 4: If RedirectURI is empty from the input

{
	"Status":"Error",
	"Message":"RedirectURI cannot be empty in OneDrive4Biz of CustomDestinationList!",
	"ExptType":"java.lang.Exception"
}

OUTPUT 5: If ChinaClientID is empty from the input

{
	"Status":"Error",
	"Message":"ChinaClientID cannot be empty in OneDrive4Biz of CustomDestinationList!",
	"ExptType":"java.lang.Exception"
}

OUTPUT 6: If ChinaRedirectURI is empty from the input

{
	"Status":"Error",
	"Message":"ChinaRedirectURI cannot be empty in OneDrive4Biz of CustomDestinationList!",
	"ExptType":"java.lang.Exception"
}

The same error will also be displayed if the ClientID, RedirectURI, ChinaClientID, or ChinaRedirectURI is empty in the CloudSourceList.

It is highly recommended for administrators to retrieve all policy settings with the v2 ListPolicyGroups API. Update the values of the settings to be changed, based on the response parameters returned by the v2 ListPolicyGroups API.

Example 4: Incorrect Value

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456!@#$%",
	"ID":"2",
	"UserSettings":{
		"UserQuotaSettings":{
			"QuotaType":"perDestinationQuota",
			"StorageQuota":0
		}
	}
}

OUTPUT

{
	"Status":"Error",
	"Message":"Invalid value. 'QuotaType' must be 'TOTAL_QUOTA' or 'PER_DESTINATION_QUOTA'.",
	"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}

Example 5: Incorrect Value

INPUT

{
	"SysUser":"api_user",
	"SysPwd":"qWeRtY123456!@#$%",
	"ID":"2",
	"UserSettings":{
		"UserQuotaSettings":{
			"QuotaType":"TOTAL_QUOTA",
			"StorageQuota":0
		}
	}
}

OUTPUT

{
	"Status":"Error",
	"Message":"Invalid value 'StorageQuota'. Error: Must be a positive number.",
	"ExptType":"java.lang.Exception"
}

 

AddPolicyGroup

This API lets you add (create) a new Policy Group and optionally allocate it to User Group(s), returned is the PolicyGroupID that can be used with UpdatePolicyGroup.do.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > Policy Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/AddPolicyGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
NameStringName of the policy group.
OwnerStringSubAdmin name if Policy is to be assigned to a SubAdmin.
UserGroupIDListArray of StringsArray of User Group ID.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
PolicyGroupIDStringID of the policy group.
Examples

Example 1

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"Name":"Default settings",
	"Owner":"",
	"UserGroupIDList":["1"]
}

OUTPUT

{
	"Status":"Error",
	"Message":"[Error] Parameter Name, Default settings, already exists!",
	"ExptType":"com.ahsay.cbs.mT"
}

Example 2

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"Name":"UG Test",
	"Owner":"test",
	"UserGroupIDList":["1686621934417"]
}

OUTPUT

{
	"Status":"OK",
	"PolicyGroupID":"1686621934417"
}

Example 3

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"Name":"UG Test",
	"Owner":"test",
	"UserGroupIDList":["1","3"]
}

OUTPUT

{
	"Status":"Error",
	"Message":"[Error] Parameter UserGroupID, 3 is not a 13-digit format!",
	"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}

Example 4

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"Name":"UG Test",
	"Owner":"test",
	"UserGroupIDList":[0]
}

OUTPUT

{
	"Status":"OK",
	"Message":"JSONArray[0] is not a String (class java.lang.Integer : 0).",
	"ExptType":"org.json.JSONException"
}

Example 5

INPUT

{
	"SysUser":"api",
	"SysPwd":"pwd",
	"Name":"UG Test",
	"Owner":0,
	"UserGroupIDList":["1"]
}

OUTPUT

{
	"Status":"OK",
	"Message":"[Error] Parameter Owner ‘0’ is not a valid owner.",
	"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}

 

AddPolicyGroupToUserGroup

This API lets you assign Policy Group(s) to a User Group.

The settings can be found on the AhsayCBS web console at:

  • Backup / Restore > Users, Groups & Policies > User Group

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/AddPolicyGroupToUserGroup.do

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
UserGroupIDStringID of user group.
PolicyGroupIDListArray of StringsArray of Policy Group ID.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
Examples

Example 1

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"UserGroupID":"1686621934417",
	"PolicyGroupIDList":["1686625081008"]
}

OUTPUT

{
	"Status":"OK"
}

Example 2

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"UserGroupID":"1686621934417",
	"PolicyGroupIDList":["1686626692901","1686626701490"]
}

OUTPUT

{
	"Status":"OK"
}

Example 3

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"UserGroupID":"1686621934417",
	"PolicyGroupIDList":["1686626692901"]
}

OUTPUT

{
	"Status":"Error",
	"Message":"[Error] Parameter PolicyGroupIDList, 1686626692901, already exists in UserGroupID 1686621934417!",
	"ExptType":"com.ahsay.cbs.mT"
}

Example 4

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"UserGroupID":"2",
	"Owner":"test",
	"PolicyGroupIDList":["1"]
}

OUTPUT

{
	"Status":"Error",
	"Message":"[Error] Parameter UserGroupID, 2 is not 13-digit format!",
	"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}

Example 5

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"UserGroupID":"1111111111111",
	"Owner":"test",
	"PolicyGroupIDList":["2"]
}

OUTPUT

{
	"Status":"Error",
	"Message":"[Error] Parameter UserGroupID, 1111111111111 does not exist!",
	"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}