System Config
This subcategory provides users with APIs that allows for the configuration of settings such as servers and system settings, addition of predefined destinations, and updates to AhsayCBS licenses among other functions.
- UpdateServerConfig (v1), UpdateSystemSettings (v2) - Backup Server
- UpdateConfig - Backup Server
- GetSystemSettings (v1,v2) - Backup Server
- UpdateReplicationConfig
- UpdateLicense
- GetLicense (v1,v2)
- GetReplicationMode
- AddPredefinedDestination
UpdateServerConfig (v1), UpdateSystemSettings (v2) - Backup Server
This API can be used to update Backup Server related configuration such as the User Home and Free Trial user registration settings only for the Admin, not SubAdmin.
The settings can be found on the AhsayCBS web console at:
- Backup/Restore > Basic > User Home or Free Trial Options
v1 UpdateServerConfig.do
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateServerConfig.do
Deprecated Since Version: 7.15.6.38
v2 UpdateSystemSettings.do
UpdateSystemSetting.do was introduced for handling of features related to Quota Management.
A TrialQuotaList JSON Object (list of quota for multiple backup destinations for free trial users) was introduced to replace the single BackupQuotaSize parameter (v1 API).
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/UpdateSystemSetting.do
Available Since Version: 9.5
Parameters
Key | Type | Description |
---|---|---|
SysUser | String | Username of an AhsayCBS System User with Admin, API or Read-Only API role. |
UserHomes | Array | When new user home is added, you need to include your existing user home in the array. |
EnableFreeTrial | Boolean | Enable/Disable the Free Trial Registration option. |
TrialQuotaList | Array | List of quota of backup destination for trial user, unit in byte. |
ExpTrialStatus | String | Either "reset" or "suspend". |
ExpTrialQuota | String | The quota of expired trial users, in number of bytes. |
SuspendUserDays | Integer | The number of days when a user will be suspended. The value can be any one of the following: 7, 8,..., 29, 30, 45, 60, 75 and 90. |
TrialMsExchange | Boolean | Enable/Disable the trial of Microsoft Exchange Server add-on module. |
TrialMsSql | Boolean | Enable/Disable the trial of Microsoft SQL Server add-on module. |
TrialMySQL | Boolean | Enable/Disable the trial of MySQL Database Server add-on module. |
TrialMariaDB | Boolean | Enable/Disable the trial of MariaDB Database Server add-on module. |
TrialOracle | Boolean | Enable/Disable the trial of Oracle Database Server add-on module. |
TrialDomino | Boolean | Enable/Disable the trial of Lotus Domino add-on module. |
TrialNotes | Boolean | Enable/Disable the trial of Lotus Notes add-on module. |
TrialWinServer2008BareMetal | Boolean | Enable/Disable the trial of Windows System Backup add-on module. |
TrialWinSysState | Boolean | Enable/Disable the trial of Windows System State Backup add-on module. |
TrialVMware | Boolean | Enable/Disable the trial of VMware add-on module. |
TrialVMwareQuota | String | VMware VM module quota. Integer value in string format. |
TrialVMwareQuotaType | String | Default value is GUESTVM if not provided. The value can either be GUESTVM or SOCKET. |
TrialMsVm | Boolean | Enable/Disable the trial of Hyper-V add-on module. |
TrialMsVmQuota | String | Hyper-V module quota. Integer value in string format. |
TrialMsVmQuotaType | String | Default value is GUESTVM if not provided. The value can either be GUESTVM or SOCKET. |
TrialMsExchangeMailbox | Boolean | Enable/Disable the trial of Microsoft Exchange Mailbox add-on module. |
TrialEMBQuota | String | Microsoft Exchange mailbox module quota. Integer value in string format. |
TrialNasClient | Boolean | Enable/Disable the trial of NAS - Synology add-on module. |
TrialQnap | Boolean | Enable/Disable the trial of NAS - QNAP add-on module. |
TrialShadowProtectBareMetal | Boolean | Enable/Disable the trial of ShadowProtect System Backup add-on module. |
TrialShadowCopy | Boolean | Enable/Disable the trial of Volume Shadow Copy add-on module. |
TrialCdp | Boolean | Enable/Disable the trial of Continuous Data Protection add-on module. |
TrialDeltaBlock | Boolean | Enable/Disable the trial of In-File Delta add-on module. |
TrialMobile | Boolean | Enable/Disable the trial of Mobile add-on module. |
TrialMobileQuota | String | Mobile add-on module quota. Integer value in string format. |
TrialOffice365Mail | Boolean | Enable/Disable the trial of Microsoft 365 Backup add-on module. |
TrialOffice365MailQuota | String | Microsoft 365 Backup add-on module quota. Integer value in string format. |
TrialOpenDirect | Boolean | Enable/Disable the trial of OpenDirect / Granular Restore add-on module. |
TrialOpenDirectQuota | String | OpenDirect / Granular Restore add-on module quota. Integer value in string format. |
EnableRemoveUser | Boolean | Enable/Disable the remove trial user. |
RemoveUserDays | String | Number of days after registration the free trial user will be removed. Integer value in string format. |
SinceInactive | Boolean | Time period in which user has been inactive. |
TrialQuotaType | String | Quota type, either TOTAL_QUOTA or PER_DESTINATION_QUOTA. |
TrialStorageQuota | Long | Total quota in GB. Value validity examined when used by TOTAL_QUOTA. |
TrialDeduplication | Boolean | Enable/Disable the trial of Deduplication add-on module. |
TrialTibero | Boolean | Enable/Disable the trial of Tibero Database Server add-on module. |
TrialLinuxBareMetal | Boolean | Enable/Disable the trial of Linux Bare Metal Backup add-on module. |
TrialPostgreSql | Boolean | Enable/Disable the trial of PostgreSQL Server add-on module. |
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
UserHome
Key | Type | Description |
---|---|---|
Path | String | Path of user home, e.g. "F:\\new_home". |
Quota | String | Maximum QPS ratio of the user home. The value can be any one of the following: Unlimited, 300, 250, 200, 150, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10 and 0. "0" refers to "Not Used". |
status | String | Build status, can be: uploaded, waiting (idle), queued, building and finished. |
Id | String | System user ID (0='system' username). |
TrialQuotaList
Key | Type | Description |
---|---|---|
Enabled | Boolean | Enables or disables "Destinations" added/listed when "Per Destination Quota" is enabled. |
Quota | Long | Quota of the backup destination, unit in byte. Value validity examined when used by PER_DESTINATION_QUOTA. |
DestinationKey | String | ID of the backup destination, or "OBS" for AhsayCBS. |
DestinationName | String | Name of the backup destination, example "AhsayCBS". |
Examples
Example 1: INPUT = UpdateUserHomes
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"TrialQuotaList":[
{
"Enable":true,
"Quota":549750000,
"DestinationKey":"OBS"
},
{
"Enable":true,
"Quota":549750000,
"DestinationKey":"-1585973679332"
}
]
}
OUTPUT
{
"Status":"OK",
}
Example 2: INPUT = DisableTrialMariaDB
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"TrialMariaDB":false
}
OUTPUT
{
"Status":"OK",
}
UpdateConfig - Backup Server
The UpdateConfig.do API can be used to update the following settings of AhsayCBS: Proxy Server, Admin Contacts, System Homes, SNMP Settings, Windows Event Logs and Connectors.
The settings can be found on the AhsayCBS web console at:
- System Settings > Basic > General or Email
- System Settings > Advanced > Proxy or Logging
URL
https://CBS.EXAMPLE.COM/cbs/api/json/UpdateConfig.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. |
UseEventLog | Boolean | Whether event log is enabled. |
EventLogName | String | Name of event log. |
Hostname | String | Hostname of the AhsayCBS server. |
SystemHome | String | The directory containing all system files. |
WebServers | Array of WebServer | Connectors |
SmtpServers | Array of SmtpServer | Smtp server settings. |
AdminContacts | Array of Contact | Admin contacts in array. |
UseProxy | Boolean | Enable/Disable proxy server. |
ProxyUsername | String | User name of the proxy server. |
ProxyPassword | String | Password of the user of the proxy server. |
ProxyType | String | The value can either be: HTTP or SOCK. |
ProxyHost | String | Hostname of the proxy server. |
ProxyPort | String | Port used by the proxy server. |
ProxyExcludeHosts | Array of ProxyExcludeHost | Excluded hostnames and IP addresses for proxy connection. |
EnableSnmp | Boolean | Enable / Disable SNMP. |
SnmpStartIP | String | Starting IP for SNMP. |
SnmpEndIP | String | Ending IP for SNMP. |
SnmpTrapInfo | Boolean | SNMP trap level information. |
SnmpTrapWarn | Boolean | SNMP trap level warning. |
SnmpTrapErr | Boolean | SNMP trap level error. |
SnmpPort | Integer | SNMP trap port numbers. |
SnmpTrapRecv1 | SnmpTrapRecv | Receiver 1 |
SnmpTrapRecv2 | SnmpTrapRecv | Receiver 2 |
SnmpTrapRecv3 | SnmpTrapRecv | Receiver 3 |
PreventSessionHijackingEnabled | Boolean | Enable/Disable prevent session hijacking. |
Query Parameters
Key | Type | Description |
---|---|---|
Product | String | Either "CBS" or "OBC". |
Mode | String | (optional) "all" or "single" |
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
WebServer
Key | Type | Description |
---|---|---|
Id | Integer | Usually starts from 0, in ascending order. |
Ip | String | This is designed for servers with multiple IP addresses. This attribute specifies which IP address will be used for listening on the specified port. If only one (1) IP address is used on your system, the default value 0.0.0.0 can be used. |
Port | String | The TCP port number on which this connector will create a server socket and await incoming connections. Please make sure this port is not occupied by other applications in your system. |
Protocol | String | The can either be: http or https. |
MaxConn | String | Maximum number of connections allowed to the server. |
MaxKeepAliveReq | String | Maximum number of requests to serve on a TCP connection. |
ConnTimeout | String | Connection timeout in milliseconds. |
SslCertificateId | String | Name of an existing SSL Certificate present in AhsayCBS. Empty string if not applicable. |
RxBufSize | String | Size in bytes of the receive buffer socket. Default is 25188. |
TxBufSize | String | Size in bytes of the send buffer socket. Default is 43800. |
SmtpServer
Key | Type | Description |
---|---|---|
HostName | String | Host name of the SMTP server. |
Port | Integer | Connection port of the SMTP server. |
SecureProtocol | Boolean | If set to true, it will require a secure protocol for login. |
Auth | Boolean | Set to false, if SMTP server does not require login credentials. |
AuthUser | String | Username used to login. |
AuthPwd | String | User password. |
ReportSender | Contact | Contact that sends reports. |
Owner | String | Name of owner, empty if owner is Admin. |
Contact
Key | Type | Description |
---|---|---|
Name | String | Primary name of contact. |
Owner | String | Name of owner, empty if owner is Admin |
String | Email address of contact. | |
Address | String | Address detail of contact. |
ReceiveBccEmail | Boolean | Allows BCC of outgoing emails |
ProxyExcludeHost
Key | Type | Description |
---|---|---|
Host | String | Hostname or IP address of the proxy server. |
SnmpTrapRecv
Key | Type | Description |
---|---|---|
Enable | Boolean | True / False |
Host | String | Hostname of SNMP. |
TrapPort | String | Port to be used for the trap. |
ReportSettingsBean
Key | Type | Description |
---|---|---|
SendLowDiskSpaceReminderAlertReport | Boolean | Whether Low Disk Space Reminder/Alert report will be sent to the admin/subadmin. |
LowDiskSpaceReminderThreshold | Integer | Threshold value for sending reminder when disk space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
LowDiskSpaceAlertThreshold | Integer | Threshold value for sending alert when disk space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
SendLowDestinationSpaceReminderAlertReport | Boolean | Whether Low Destination Space Reminder/Alert report will be sent to the admin/subadmin. |
LowDestinationSpaceReminderThreshold | Integer | Threshold value for sending reminder when destination space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
LowDestinationSpaceAlertThreshold | Integer | Threshold value for sending alert when destination space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
SendAdministratorConsolidatedReport | Boolean | Whether Consolidated Admin report will be sent to the admin/subadmin. |
ConsolidatedReportSendHour | Integer | Hour when consolidated report is sent. |
ConsolidatedReportSendMin | Integer | Minute when consolidated report is sent. |
Examples
Example 1
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"SendBccReports":true,
"AdminContacts":[{"Name":"New1","Email":"New1@example.com"}]
}
OUTPUT
{
"Status":"OK"
}
Example 2 - ReportSettingsBean
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"ReportSettingsBean":{
"SendLowDiskSpaceReminderAlertReport":true,
"SendLowDestinationSpaceReminderAlertReport":true,
"LowDestinationSpaceAlertThreshold":90,
"LowDestinationSpaceReminderThreshold":65,
"LowDiskSpaceAlertThreshold":85,
"LowDiskSpaceReminderThreshold":70,
"SendAdministratorConsolidatedReport":true,
"ConsolidatedReportSendHour":13,
"ConsolidatedReportSendMin":45
}
}
OUTPUT
{
"Status":"OK"
}
GetSystemSetting (v1,v2) - Backup Server
This API can be used to retrieve backup server related configuration such as the User Home and Free Trial Options only for the Admin, not SubAdmin.
The settings can be found on the AhsayCBS web console at:
- Backup/Restore > Basic > User Home or Free Trial Options
v1 GetSystemSetting.do
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetSystemSetting.do
Deprecated Since Version: 7.15.6.38
v2 GetSystemSetting.do
GetSystemSetting.do was introduced for handling of features related to Quota Management.
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/GetSystemSetting.do
Available Since Version: 9.5
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. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | ConfigData | Particulars of a user's configuration data. |
Message | String | Error message, it only appears if status displays "Error". |
ExptType | String | The type of exception, will only be displayed if the status is "Error". |
JSON Objects
UserHomes
Key | Type | Description |
---|---|---|
QuotaSum | Long | Consolidated total of a user's Quota in UserHomes. |
Quota | String | Maximum quota of a user. |
PasswordProtected | Boolean | Whether it is located in a password protected network drive. |
Password | String | Password used to login to user account. |
Username | String | Login name of a user account. |
CurrentRatio | Long | Current QPS ratio. |
Path | String | Path to the user home. |
Size | Long | Size of the user home. |
ConfigData
Key | Type | Description |
---|---|---|
EnableFreeTrial | Boolean | Enable/Disable the Free Trial Registration option. |
ExpTrialStatus | String | "reset" or "suspend" |
SuspendUserDays | Integer | The number of days before the user account gets suspended. The value can be any one of the following: 7, 8, ..., 29, 30, 45, 60, 75 and 90. |
SinceInactive | Boolean | Time period in which user has been inactive. |
TrialMsExchange | Boolean | Trial option of Microsoft Exchange Server add-on module. |
TrialMsSql | Boolean | Trial option of Microsoft SQL Server add-on module. |
TrialMySql | Boolean | Trial option of MySQL Database Server add-on module. |
TrialOracle | Boolean | Trial option of Oracle Database Server add-on module. |
TrialDomino | Boolean | Trial option of Lotus Domino add-on module. |
TrialNotes | Boolean | Trial option of Lotus Notes add-on module. |
TrialWinServer2008BareMetal | Boolean | Trial option of Windows System Backup add-on module. |
TrialMsWinSysState | Boolean | Trial option of Windows System State Backup add-on module. |
TrialVMware | Boolean | Trial option of VMware add-on module. |
TrialVMwareQuotaType | Array | Default value is GUESTVM if not provided. The value can either be: GUESTVM or SOCKET. |
TrialMsVm | Boolean | Trial option of Hyper-V add-on module. |
TrialMsVmQuotaType | Array | Default value is GUESTVM if not provided. The value can either be: GUESTVM or SOCKET. |
TrialMsExchangeMailbox | Boolean | Trial option of Microsoft Exchange Mailbox add-on module. |
TrialEMBQuota | String | Microsoft Exchange Mailbox module quota. |
TrialNasClient | Boolean | Trial option of NAS - Synology add-on module. |
TrialQnap | Boolean | Trial option of NAS - QNAP add-on module. |
TrialShadowProtectBareMetal | Boolean | Trial option of ShadowProtect System Backup add-on module. |
TrialShadowCopy | Boolean | Trial option of Volume Shadow Copy add-on module. |
TrialCdp | Boolean | Trial option of Continuous Data Protection add-on module. |
TrialDeltaBlock | Boolean | Trial option of In-File Delta add-on module. |
TrialMariaDB | Boolean | Trial option of MariaDB Database Server add-on module. |
TrialMobile | Boolean | Trial option of Mobile add-on module. |
TrialMobileQuota | String | The quota of mobile add-on module. |
TrialOpenDirect | Boolean | Trial option of OpenDirect / Granular Restore add-on module. |
TrialOpenDirectQuota | String | The quota of OpenDirect / Granular Restore add-on module. Only works on pre-v9.13 AhsayCBS. |
EnableRemoveUser | Boolean | Option to remove trial user account. |
RemoveUserDays | String | The number of days when to remove user after registration. The value can be any one of the following: 30, 60, 90, 120, 150 and 180. |
UserHomes | Array | Path of the User Home. |
TrialQuotaType | String | Quota type, either TOTAL_QUOTA or PER_DESTINATION_QUOTA. |
TrialStorageQuota | Long | Total quota in GB. Value validity examined when used by TOTAL_QUOTA. |
TrialDeduplication | Boolean | Trial option of Deduplication add-on module. |
TrialTibero | Boolean | Trial option of Tibero Database Server add-on module. |
TrialLinuxBareMetal | Boolean | Trial option of Linux Bare Metal Backup add-on module. |
TrialPostgreSql | Boolean | Trial option of PostgreSQL Server add-on module. |
ReportSettingsBean
Key | Type | Description |
---|---|---|
SendLowDiskSpaceReminderAlertReport | Boolean | Whether Low Disk Space Reminder/Alert report will be sent to the admin/subadmin. |
LowDiskSpaceReminderThreshold | Integer | Threshold value for sending reminder when disk space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
LowDiskSpaceAlertThreshold | Integer | Threshold value for sending alert when disk space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
SendLowDestinationSpaceReminderAlertReport | Boolean | Whether Low Destination Space Reminder/Alert report will be sent to the admin/subadmin. |
LowDestinationSpaceReminderThreshold | Integer | Threshold value for sending reminder when destination space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
LowDestinationSpaceAlertThreshold | Integer | Threshold value for sending alert when destination space is low. Value can be one of the following: 60, 65, 70, 75, 80, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99. |
SendAdministratorConsolidatedReport | Boolean | Whether Consolidated Admin report will be sent to the admin/subadmin. |
ConsolidatedReportSendHour | Integer | Hour when consolidated report is sent. |
ConsolidatedReportSendMin | Integer | Minute when consolidated report is sent. |
TrialQuotaList
Key | Type | Description |
---|---|---|
Name | String | Name of the backup destination. |
Quota | String | Unit in bytes. Value validity examined when used by PER_DESTINATION_QUOTA. |
DestinationKey | String | ID of the predefined destination, or OBS for quota on AhsayCBS. |
Quota | Integer | Unit in bytes. |
Example
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%"
}
OUTPUT
{
"Status":"OK",
"Data":{
"TrialMsVmQuotaType":[],
"TrialMsVmQuota":"5",
"TrialDeduplication":false,
"TrialCdp":false,
"TrialMySql":false,
"TrialQuotaType":"TOTAL_QUOTA",
"TrialMobileV2":false,
"ExpTrialStatus":"suspend",
"TrialShadowCopy":true,
"TrialMobile":false,
"TrialShadowProtectBareMetal":false,
"TrialWinServer2008BareMetal":false,
"TrialMsVmQuotaType":"GUESTVM",
"TrialQuotaList":[
{
"DestinationKey":"OBS",
"Quota":52428800,
"Enabled":true,
"Name":"AhsayCBS"
}
]
"TrialMobileQuotaV2":"0",
"TrialVMware":false,
"TrialOracle":false,
"TrialVMwareQuotaType":[],
"RemoveUserDays":"90",
"ReportSettingsBean":{
"SendLowDiskSpaceReminderAlertReport":true,
"SendLowDestinationSpaceReminderAlertReport":true,
"ConsolidatedReportSendHour":13,
"LowDestinationSpaceAlertThreshold":90,
"LowDestinationSpaceReminderThreshold":65,
"LowDiskSpaceAlertThreshold":80,
"LowDiskSpaceReminderThreshold":70,
"SendAdministratorConsolidatedReport":true,
"ConsolidatedReportSendMin":45
},
"TrialStorageQuota":85,
"TrialOffice365Mail":false,
"TrialMsVm":false,
"TrialMobileQuota":"0",
"TrialOpenDirect":false,
"TrialNasClient":false,
"TrialMsSql":false,
"TrialNotes":false,
"TrialOpenDirectQuota":"10",
"UserHomes":[
{
"Path":"C:\\Users\username\Documents",
"QuotaSum":53896806400,
"Quota":"Unlimited",
"Username":"",
"Size":959637876737,
"CurrentRatio":5.613692,
"PasswordProtected":false,
"Password":""
},
{
"Path":"C:\\Users\username\Desktop",
"QuotaSum":104857600,
"Quota":"Unlimited",
"Username":"",
"Size":959637876736,
"CurrentRatio":0.010926789,
"PasswordProtected":false,
"Password":"y8.BxMA="
}
],
"TrialEMBQuota":"20",
"TrialDomino":false,
"TrialQnap":false,
"TrialMsExchangeMailbox":false,
"EnableFreeTrial":true,
"TrialMsExchange":false,
"TrialOffice365MailQuota":"10",
"EnableRemoveUser":true,
"TrialDeltaBlock":false,
"SinceInactive":false,
"SuspendUserDays":25,
"TrialMariaDB":true,
"TrialLinuxBareMetal":false,
"TrialVMwareQuotaType":"GUESTVM",
"TrialMsWinSysState":false,
"TrialTibero":false,
"TrialPostgreSql":false
}
}
UpdateReplicationConfig
This API can be used to update the following replication settings: replication destination, replication proxy server, replication traffic limmit and replication backup set.
The settings can be found on the AhsayCBS web console at:
- Replication > Sending Data > Replication
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateReplicationConfig.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. |
EnableReplication | Boolean | Enable/disable the option to replicate back up data to predefined cloud storage. |
RepDestId | String | Destination ID of the replication destination. |
ReplicationUseProxy | Boolean | Enable/disable the use of proxy option in replication profile. |
ReplicationUseTrafficLimit | Boolean | Enable/disable the use of replication traffic limit. |
TrafficLimits | Array of TrafficLimit | Configure the traffic limit settings to contro traffic at a specific time. |
ReplicateIndividualBSet | Boolean | Enable/disable the option to replicate individual backup set. |
ReplicateNewPaidBSet | Boolean | Enable/disable the option to replicate new backup sets of paid users. |
ReplicateNewTrialBSet | Boolean | Enable/disable the option to replicate new backup sets of trial users. |
RepBSet | Array of RepBSet | List of individual backup sets marked for individual replication. |
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
TrafficLimit
Key | Type | Description |
---|---|---|
StartDayOfWeek | Integer | The start day of traffic limit. "1" stands for Sunday, "2" stands for Monday and so on. |
StartHour | Integer | The start hour of traffic limit. |
StartMin | Integer | The start minute of traffic limit. |
EndDayOfWeek | Integer | The end day of traffic limit. "1" stands for Sunday, "2" stands for Monday and so on. |
EndHour | Integer | The end hour of traffic limit. |
EndMin | Integer | The end minute of traffic limit. |
MaxTransferPerSec | String | Maximum number of Kbytes transferred per second. |
RepBSet
Key | Type | Description |
---|---|---|
Value | String | The username and backup set ID of the replicated backup set, joined with “++” as separator. For example, UserABC++123456789. |
Examples
Example 1: Traffic Limit
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"EnableReplication":true,
"ReplicationUseTrafficLimit":true,
"TrafficLimits":[
{
"StartDayOfWeek":"4",
"StartHour":"3",
"StartMin":"30",
"EndDayOfWeek":"5",
"EndHour":"4",
"EndMin":"30",
"MaxTransferPerSec":"300"
}
]
}
OUTPUT
{
"Status":"OK"
}
Example 2: Create or Update RepBSet List (not necessary to include subadmin#)
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"EnableReplication":true,
"ReplicateIndividualBSet":true,
"RepBSet":[
{"Value":"user12345++1578027193000"},
{"Value":"user67890++1578059639000"}
]
}
OUTPUT
{
"Status":"OK"
}
Example 3: Enable replication of new trial backup sets
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"EnableReplication":true,
"ReplicateNewTrialBSet":true
}
OUTPUT
{
"Status":"OK"
}
UpdateLicense
This API can be used to update the license name and license key on the AhsayCBS server (for backup server).
The settings can be found on the AhsayCBS web console at:
- System Settings > License > Backup
URL
https://CBS.EXAMPLE.COM/obs/api/json/UpdateLicense.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. |
Licensee | String | Licensee name. |
Key | String | Product key. |
UseProxy | Boolean | Enable/disable the use of proxy defined in the AhsayCBS to connect to the internet. |
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":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"Licensee":"ABC_Backup",
"Key":"XyZ98-AbcDE-fGhU-98bcd-YZ"
}
OUTPUT 1 - When License status is normal
{
"Status":"OK",
"Key":"XyZ98-AbcDE-fGhU-98bcd-YZ",
"Deactivated":false,
"Licensee":"ABC_Backup"
}
OUTPUT 2 - User action required (e.g. click the Update button on the web console)
{
"Status":"OK","Key":"XyZ98-AbcDE-fGhU-98bcd-YZ","Deactivated":false,"Info":
"Internal Error 1012. Please press the [Update] button in license page to correct this problem.
If the problem persists, please contact our technical support team to resolve this problem","Licensee":"ABC_Backup"
}
OUTPUT 3 - When incorrect License Key was provided
{
"Status":"Error",
"Message":"License key incorrect. Please try again."
}
OUTPUT 4 - When AhsayCBS service was stopped
{
"Status":"OK","Key":"XyZ98-AbcDE-fGhU-98bcd-YZ","Deactivated":false,"Info":"[OEM-License.checkLicTime] License expired on 2024-01-01. Backup server is stopped","Licensee":"ABC_Backup"
}
GetLicense (v1,v2)
This API can be used to collect the license and usage information of your AhsayCBS server.
The settings can be found on the AhsayCBS web console at:
- System Settings > License > Backup
v1 GetLicense.do
URL
https://CBS.EXAMPLE.COM/cbs/api/json/GetLicense.do
Available Since Version: 8.3
v2 GetLicense.do
Since AhsayCBS version 8.3, the following add-on modules are combined into one add-on module, to make these modules that were previously separated, interchangeable:
- Hyper-V and VMware (per Guest VM)
- Hyper-V and VMware (per Socket)
- NAS - Synology and NAS - QNAP
- AhsayOBM and AhsayACB Microsoft 365
To facilitate such changes, a new version of the GetLicense.do API (v2 GetLicense.do) was introduced with the following parameters:
Key | Type | Description |
---|---|---|
VMQuota | String | Hyper-V or VMware Guest VM quota |
UsedVMQuota | String | Used Hyper-V or VMware Guest VM quota |
RemainVMQuota | String | Available Hyper-V or VMware Guest VM quota |
HypervisorSocketQuota | String | Hyper-V or VMware Socket quota |
UsedHypervisorSocketQuota | String | Used Hyper-V or VMware Socket quota |
RemainHypervisorSocketQuota | String | Available Hyper-V or VMware Socket quota |
NasQuota | String | Synology or QNAP NAS client quota |
UsedNasQuota | String | Used Synology or QNAP NAS client quota |
RemainNasQuota | String | Available Synology or QNAP NAS client quota |
Office365Quota | String | AhsayOBM or AhsayACB Microsoft 365 quota |
UsedOffice365Quota | String | Used AhsayOBM or AhsayACB Microsoft 365 quota |
RemainOffice365Quota | String | Available AhsayOBM or AhsayACB Microsoft 365 quota |
For AhsayCBS pre-8.3, you should use the v1 API instead. For all other new versions, use the v2 API to get accurate licensing details.
URL
https://CBS.EXAMPLE.COM/obs/api/json/2/GetLicense.do
Available Since Version: 9.1
Parameters
Key | Type | Description |
---|---|---|
SysUser | String | Username of an AhsayCBS System User with Admin, API or Read-Only API role. |
SysPwd | String | Password matching SysUser. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | ConfigData | Contains the particulars of a user's license. |
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
Licensing Data
Key | Type | Description |
---|---|---|
Key | String | Product key |
Licensee | String | Licensee name |
ProductName | String | Name of the product, e.g. "Offsite Backup Software, OEM Edition". |
Version | String | Version of the AhsayCBS. |
UseProxy | Boolean | Enable / disable the use of proxy defined in the AhsayCBS to connect to the internet. |
LicTypeName | String | Name of license type. |
MaxObmUsers | String | Maximu number of AhsayOBM user CALs. |
UsedObmQuota | String | Used AhsayOBM user CALs. |
RemainObmQuota | String | Remaining AhsayOBM user CALs. |
ExpiryDate | String | Expiry date of the license key. |
SupExpDate | String | Expiry date of the software support. |
MaxQuota | String | Maximum backup quota of a user. |
Ip | String | The IP address of AhsayCBS registered. |
Port | String | The connection port of AhsayCBS registered. |
Mac | String | The MAC address of the network card that AhsayCBS registered. |
MaxUsers | String | Maximum number of users allowed. |
AcbClientEnabled | Boolean | Enable / disable the use of the AhsayACB client module. |
DagUseObm | String | Used AhsayOBM CALs due to DAG usage. |
AcbUseObm | String | Used AhsayOBM CALs due to no AhsayACB CALs. |
EnableReplication | Boolean | Enable / disable the use of the replication module. |
EnableMSExchangeMailbox | Boolean | Enable / disable the use of the Exchange Mailbox module. |
ExchangeMailboxQuota | String | Exchange Mailbox quota. |
UsedExchangeMailboxQuota | String | Used Exchange Mailbox quota. |
RemainExchangeMailboxQuota | String | Remaining Exchange Mailbox quota. |
VMQuota | String | Hyper-V / VMware (Per Guest VM) quota. |
UsedVMQuota | String | Used Hyper-V / VMware (Per Guest VM) quota. |
RemainVMQuota | String | Remaining Hyper-V / VMware (Per Guest VM) quota. |
HypervisorSocketQuota | String | Hyper-V / VMware (Per Socket) quota. |
Used HypervisorSocketQuota | String | Used Hyper-V / VMware (Per Socket) quota. |
RemainHypervisorSocketQuota | String | Remaining Hyper-V / VMware (Per Socket) quota. |
EnableMobile | Boolean | Enable / disable the use of Ahsay Mobile. |
MobileQuota | String | AhsayMOB quota. |
UsedMobileQuota | String | Used AhsayMOB quota. |
RemainMobileQuota | String | Remaining AhsayMOB quota. |
Office365Quota | String | AhsayACB / AhsayOBM Microsoft 365 quota. |
UsedOffice365Quota | String | Used AhsayACB / AhsayOBM Microsoft 365 quota. |
RemainOffice365Quota | String | Remaining AhsayACB / AhsayOBM Microsoft 365 quota. |
OpenDirectQuota | String | Granular Restore / OpenDirect quota. Only works on pre-v9.13 AhsayCBS. |
UsedOpenDirectQuota | String | Used Granular Restore / OpenDirect quota. Only works on pre-v9.13 AhsayCBS. |
RemainOpenDirectQuota | String | Remaining Granular Restore / OpenDirect quota. Only works on pre-v9.13 AhsayCBS. |
NasQuota | String | Synology / QNAP - NAS client quota. |
UsedNasQuota | String | Used Synology / QNAP - NAS client quota. |
RemainNasQuota | String | Remaining Synology / QNAP - NAS clien quota. |
Deactivated | Boolean | Disable / enable license key. |
EnableNasServer | Boolean | Enable / disable the NAS server module. |
EnableUbs | Boolean | Enable / disable the AhsayUBS module. |
EnableHa | Boolean | Enable / disable the HA module. |
MobileQuotaV2 | String | Ahsay Mobile backup quota. |
UsedMobileV2Quota | String | Used Ahsay Mobile backup quota. |
RemainMobileV2Quota | String | Remaining Ahsay Mobile backup quota. |
Example
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%"
}
OUTPUT
{
"Status":"OK",
"Data":{
"MobileQuota":"2000",
"HypervisorSocketQuota":"4000",
"ExpiryDate":"12/31/2024",
"RemainMobileV2Quota":"32980",
"ProductName":"Ahsay Cloud Backup Suite",
"MaxUsers":"7100",
"Port":"8081",
"RemainVMQuota":"22000",
"LicenseFile":"",
"RemainObmQuota":"5099",
"Version":"9.5.4.0",
"NasQuota":"2010",
"EnableCbs":true,
"UsedNasQuota":"2",
"Licensee":"EvaluationOnly",
"RemainMobileQuota":"2000",
"RemainOffice365Quota":"4000",
"UsedObmQuota":"1",
"UsedAcbRepQuota":0,
"RemainAcbRepQuota":2000,
"MaxObmUsers":"5100",
"RemainOpenDirectQuota":"2000",
"EnableUbs":true,
"Mac":"08-00-27-72-37-A8",
"RemainAcbQuota":"1999",
"AcbRepQuota":2000,
"UsedMobileQuota":"0",
"RemainNasQuota":"2008",
"UsedMobileV2Quota":"20",
"RemainExchangeMailboxQuota":"2000",
"RemainHypervisorSocketQuota":"4000",
"Key":"62pMG-YPD6I-3ggaG-b5MCT-XX",
"EnableHa":false,
"ObmRepQuota":5100,
"Description":"",
"Ip":"127.0.0.1",
"MaxAcbUsers":"2000",
"UsedHypervisorSocketQuota":"0",
"DagUseObm":"0",
"UsedVMQuota":"0",
"MobileQuotaV2":"33000",
"AcbUseObm":"0",
"UsedExchangeMailboxQuota":"0",
"RemainObmRepQuota":5100,
"UsedAcbQuota":"1",
"OpenDirectQuota":"2000",
"LicType":4,
"UseProxy":false,
"SupExpDate":"12/31/2024",
"LicTypeName":"OEM License",
"VMQuota":"22000",
"Office365Quota":"4000",
"AcbUseObmRep":0,
"BrandedProductName":"",
"UsedOffice365Quota":"0",
"ExchangeMailboxQuota":"2000",
"DateFormat":"MM/dd/yyyy",
"MaxQuota":"UNLIMITED",
"UsedOpenDirectQuota":"0",
"UsedObmRepQuota":0
}
}
GetReplicationMode
This API can be used to retrieve the current replication status on the backup server.
The settings can be found on the AhsayCBS web console at:
- Monitoring > Replication Logs
URL
https://CBS.EXAMPLE.COM/obs/api/json/GetReplicationMode.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. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Data | ConfigData | Contains the particulars of replication settings. |
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
ReplicationData
Key | Type | Description |
---|---|---|
Enable | Boolean | Enable / Disable the replication. |
Replicators | Array of Replicator | Shows details of all Replicators enlisted in the Backup Server. |
Replicator
Key | Type | Description |
---|---|---|
LoginName | String | Client user name. |
BackupSetID | String | The 13-digit backup set ID. |
Mode | String | The value can be any one of the following: RESYNC, REPLAY, PENDING and SLEEPING. |
File | String | The file that is currently replicating. |
Example
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%"
}
OUTPUT
{
"Status":"OK",
"Data":{
"Enable":true,
"Replicators":[
{
"LoginName":"userA",
"File":"",
"BackupSetID":"1463141188151",
"Mode":"RESYNC"
}
]
}
}
AddPredefinedDestination
This API can be used to add (create) a predefined destination on the backup server.
The settings can be found on the AhsayCBS web console at:
- System Settings > Basic > Predefined Destinations
URL
https://CBS.EXAMPLE.COM/obs/api/json/AddPredefinedDestination.do
Available Since Version: 9.7
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. |
Type | String | The type of the predefined destination, please use one of the available type within the set provided in the table "Destination Type". |
DestinationName | String | The name of the predefined destination, if not provided, the name will be auto-generated by the server. |
DestinationSettings | JSON Object | The settings for the predefined destination, the underlying parameters are specific to each destination type. Please refer to the tables labeled with “DestinationSettings (DESTINATION_TYPE)” for the correct format of each destination type. |
Owner | String | The owner administrator name of the newly added predefined destination, defaults to ADMIN. |
Return Values
Key | Type | Description |
---|---|---|
Status | String | "OK" or "Error" |
Message | String | Error message, it only appears if status displays "Error". |
DestinationID | String | The ID for the newly added predefined destination, available only for successful addition. |
ExptType | String | The type of exception (Java-class name), available only in error response body. |
JSON Objects
Additional Fields (to merge with return values on error)
Key | Type | Description |
---|---|---|
InstructionID | String | The instruction id of this error, please refer to the table “Instruction ID” for the value set. |
AvailableOptions | JSON Object | The available options for certain missing parameters, this field will be set when InstructionID equals MISSING_PARAMETER. |
OAuthUrl | String | The authorization url for retrieving the authorization token, this field will be set when InstructionID equals OAUTH_OPEN_URL. |
Message | String | The detailed message of this error. |
Destination Type
Type | Description |
---|---|
FTP | An FTP-based destination. |
SFTP | An SFTP-based destination. |
Local | A local destination (local to the client). |
OBS | A destination ("User Home") provided by the AhsayCBS server. |
Pooled | A destination pool. |
RPS | Used for replication. |
Aliyun | Alibaba Aliyun |
AWSCompatible | AWS Compatible |
Azure | Microsoft Azure. |
Backblaze | Backblaze |
CTYun | China Telecom CTYun |
Dropbox | Dropbox |
GCS | Google Cloud Service |
GDrive | Google Drive |
OneDrive | Microsoft OneDrive |
OneDrive4Biz | Microsoft OneDrive for Business |
OpenStack | OpenStack |
Rackspace | Rackspace |
S3 | Amazon S3 |
Wasabi | Wasabi |
Instruction ID
Value | Description |
---|---|
MISSING_PARAMETER | Returned from a failed addition of a predefined destination, due to a missing parameter with predefined value set. If this ID is encountered, please refer to the RESPONSE_BODY. Message for instructions and RESPONSE_BODY_AvailableOptions for the value set. |
OAUTH_OPEN_URL | Returned from a failed addition of predefined destination, due to undefined or empty authorization token in the request body. If encountered, please refer to RESPONSE_BODY. Message for instructions and RESPONSE_BODY.OAuthUrl for the url to kick start the authorization procedure. |
Destination Settings - OBS
Key | Type | Description |
---|---|---|
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
TempDelete | Boolean | Whether temporary delete is enabled for AhsayCBS destination; defaults to false. |
TempDeleteDate | String | Temporary delete date in yyyy-mm-dd format; defaults to tomorrow’s date. |
Hour | Integer | The end hour of temporary delete. "0", "1"..."23" can be set; defaults to 0. |
Minute | Integer | The end minute of temporary delete. "0", "1"..."59" can be set; defaults to 0. |
Destination Settings - FTP
Key | Type | Description |
---|---|---|
Host | String | The hostname of the FTP server. |
Port | String | The port of the FTP server. |
Username | String | The username of the FTP account. |
Password | String | The password of the FTP account. |
Ssl | Boolean | Whether the FTP connection will be in SSL mode. |
Destination Settings - SFTP
Key | Type | Description |
---|---|---|
Host | String | The hostname of the SFTP server. |
Port | String | The port of the SFTP server. |
Username | String | The username of the SFTP account. |
Password | String | The password of the SFTP account. |
Destination Settings - Local
Key | Type | Descriptions |
---|---|---|
TopDir | String | The path to the target directory can be network locations. |
Username | String | The username of the account. |
Password | String | The password of the account. |
Destination Settings - Pooled
Key | Type | Description |
---|---|---|
DestinationIDList | JSON Array | An array of predefined destination ids, all of the ids should reference any existing predefined destination within the AhsayCBS server. |
Destination Settings - RPS
Key | Type | Description |
---|---|---|
Host | String | The hostname of the target replication AhsayCBS server. |
Port | String | The port of the target replication AhsayCBS server. |
Username | String | The username of the replication account created within the replication AhsayCBS server. |
Password | String | The password of the replication account created within the replication AhsayCBS server. |
Ssl | Boolean | Whether the connection uses SSL, defaults to "false". |
Destination Settings - Aliyun
Key | Type | Description |
---|---|---|
AccessKey | String | The access key. |
SecretKey | String | The secret key. |
Location | String | The location of this destination, please refer to Aliyun Locations for the value set. |
BucketName | String | The bucket name, optional. |
Destination Settings - Aliyun Locations
Location | Value |
---|---|
China (Hangzhou) | oss-cn-hangzhou |
China (Shanghai) | oss-cn-shanghai |
China (Qingdao) | oss-cn-qingdao |
China (Beijing) | oss-cn-beijing |
China (Zhangjiakou) | oss-cn-zhangjiakou |
China (Hohhot) | oss-cn-huhehaote |
China (Ulanqab) | oss-cn-wulanchabu |
China (Shenzhen) | oss-cn-shenzhen |
China (Heyuan) | oss-cn-heyuan |
China (Guangzhou) | oss-cn-guangzhou |
China (Chengdu) | oss-cn-chengdu |
China (Hong Kong) | oss-cn-hongkong |
Singapore | oss-ap-southeast-1 |
Australia (Sydney) | oss-ap-southeast-2 |
Malaysia (Kuala Lumpur) | oss-ap-southeast-3 |
Indonesia | oss-ap-southeast-5 |
Japan (Tokyo) | oss-ap-northeast-1 |
India (Mumbai) | oss-ap-south-1 |
Germany (Frankfurt) | oss-eu-central-1 |
UK (London) | oss-eu-west-1 |
US (Silicon Valley) | oss-us-west-1 |
US (Virginia) | oss-us-east-1 |
UAE (Dubai) | oss-me-east-1 |
Destination Settings - AWSCompatible
Key | Type | Description |
---|---|---|
Host | String | The hostname of the AWS Compatible service. |
Port | String | The port of the AWS Compatible service. |
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
AccessKey | String | The access key. |
SecretKey | String | The secret key. |
BucketName | String | The bucket name. |
Destination Settings - Azure
Key | Type | Description |
---|---|---|
StorageAccountName | String | The storage account name. |
AccessKey | String | The access key of the storage account. |
Region | String | The region of the destination, please refer to Azure Regions section for the value set. |
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
Destination Settings - Azure Regions
Region | Value |
---|---|
Global | GLOBAL |
China | CHINA |
Germany | GERMANY |
USGOV | USGOV |
Destination Settings - Backblaze
Key | Type | Description |
---|---|---|
KeyId | String | The key ID. |
ApplicationKey | String | The application key. |
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
BucketName | String | The bucket name, optional. |
Destination Settings - CTYun
Key | Type | Description |
---|---|---|
AccessKey | String | The access key. |
AccessSecretKey | String | The access secret key. |
Destination Settings - Dropbox
Key | Type | Description |
---|---|---|
AccessToken | String | The authorization token retrieved from the Dropbox site, when this field is undefined or empty, the request will fail, with RESPONSE_BODY. InstructionID set to OAUTH_OPEN_URL and RESPONSE_BODY. OAuthUrl set to the url for kick-starting the authorization procedure. |
Destination Settings - Google Cloud Storage
Key | Type | Description |
---|---|---|
AccessKey | String | The access key. |
Secret | String | The access secret key. |
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
LocationType | String | The location type of this destination, please refer to GCS Location Types section for the value sets. |
Location | String | The location of this destination, please refer to GCS Locations for the value set. |
StorageClass | String | The storage class name of this destination, please visit this page for the latest documentation. |
BucketName | String | The bucket name, optional. |
Destination Settings - GCS Location Types
Type | Value |
---|---|
Region | REGION |
Multi-Region | MULTI_REGION |
Dual-Region | Dual-Region_REGION |
Destination Settings - GCS Locations
Region | Value |
---|---|
Montreal | NORTHAMERICA-NORTHEAST1L |
Iowa | US-CENTRAL1 |
South Carolina | US-EAST1 |
Northern Virginia | US-EAST4 |
Oregon | US-WEST1 |
Los Angeles | US-WEST2 |
Salt Lake City | US-WEST3 |
Las Vegas | US-WEST4 |
Sao Paulo | SOUTHAMERICA-EAST1 |
Warsaw | EUROPE-NORTH1 |
Belgium | EUROPE-WEST1 |
London | EUROPE-WEST2 |
Frankfurt | EUROPE-WEST3 |
Netherlands | EUROPE-WEST4 |
Zurich | EUROPE-WEST6 |
Taiwan | ASIA-EAST1 |
Hong Kong | ASIA-EAST2 |
Tokyo | ASIA-NORTHEAST1 |
Osaka | ASIA-NORTHEAST2 |
Seoul | ASIA-NORTHEAST3 |
Mumbai | ASIA-SOUTH1 |
Singapore | ASIA-SOUTHEAST1 |
Jakarta | ASIA-SOUTHEAST2 |
Sydney | AUSTRALIA-SOUTHEAST1 |
Destination Settings - Google Drive
Key | Type | Description |
---|---|---|
Token | String | The authorization token retrieved from Google Drive site, when this field is undefined or empty, the request will fail, with RESPONSE_BODY. InstructionID set to OAUTH_OPEN_URL and RESPONSE_BODY. OAuthUrl set to the url for kick-starting the authorization procedure. |
Destination Settings - Microsoft OneDrive
Key | Type | Description |
---|---|---|
Token | String | The token for the destination, if the provided value is undefined or empty, the request will fail, with RESPONSE_BODY. InstructionID set to OAUTH_OPEN_URL and RESPONSE_BODY. OAuthUrl set to the url for kick-starting the authorization procedure. |
Destination Settings - Microsoft OneDrive4Biz
Key | Type | Description |
---|---|---|
Token | String | The token for the destination, if the provided value is undefined or empty, the request will fail, with RESPONSE_BODY. InstructionID set to OAUTH_OPEN_URL and RESPONSE_BODY. OAuthUrl set to the url for kick-starting the authorization procedure. |
Region | String | The region of the destination, please refer to the section OneDrive4Biz Regions for the value set. |
Destination Settings - Microsoft OneDrive4Biz Regions
Region | Value |
---|---|
Global | GLOBAL |
China | CHINA |
Germany | GERMANY |
Destination Settings - OpenStack
Key | Type | Descriptions |
---|---|---|
Host | String | The hostname of the OpenStack service. |
Port | String | The port of the OpenStack service. |
Username | String | The username of the service account. |
Password | String | The password of the service account. |
Project | String | The project name for this destination. If the provided value is undefined, RESPONSE_BODY. InstructionID set to MISSING_PARAMETERS, please follow the instruction provided in RESPONSE_BODY. Message to select the project for this destination. |
Destination Settings - Rackspace
Key | Type | Description |
---|---|---|
Username | String | The username of the Rackspace account. |
ApiKey | String | The API key for accessing Rackspace APIs. |
Region | String | The region name of the Rackspace service, please refer to Rackspace Regions section for the value set. |
ContainerName | String | The container name of the destination. |
Destination Settings - Rackspace Regions
Region | Value |
---|---|
Chicago | ORD |
Dallas Ft. Worth | DFW |
Hong Kong | HKG |
London | LON |
Northern Virginia | IAD |
Sydney | SYD |
Destination Settings - Amazon S3
Key | Type | Description |
---|---|---|
AccessKey | String | The access key. |
SecretKey | String | The secret key. |
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
Location | String | The location of the destination, please refer to Amazon S3 Locations for the value sets. |
StorageClass | String | The storage class of the destination, please refer to Amazon S3 Storage Classes for the value sets. |
BucketName | String | The bucket name, optional. |
Destination Settings - Amazon S3 Locations
Region | Value |
---|---|
Africa (Cape Town) | af-south-1 |
Asia Pacific (Hong Kong) | ap-east-1 |
Asia Pacific (Mumbai) | ap-south-1 |
Asia Pacific (Osaka-Local) | ap-northeast-3 |
Asia Pacific (Seoul) | ap-northeast-2 |
Asia Pacific (Singapore) | ap-southeast-1 |
Asia Pacific (Singapore) | ap-southeast-1 |
Asia Pacific (Sydney) | ap-southeast-2 |
Asia Pacific (Tokyo) | ap-northeast-1 |
Canada (Central) | ca-central-1 |
China (Beijing) | cn-north-1 |
China (Ningxia) | cn-northwest-1 |
Europe (Ireland) | eu-west-1 |
Europe (Frankfurt) | eu-central-1 |
Europe (London) | eu-west-2 |
Europe (Milan) | eu-south-1 |
Europe (Stockholm) | eu-north-1 |
AWS GovCloud (US-East) | us-gov-east-1 |
AWS GovCloud (US) | us-gov-west-1 |
Middle East (Bahrain) | me-south-1 |
South America (Sao Paulo) | sa-east-1 |
US East (Ohio) | us-east-2 |
US West (Northern California) | us-west-2 |
Destination Settings - Amazon S3 Storage Classes
Type | Value | Description |
---|---|---|
Standard | STANDARD | Ideal for performance sensitive use cases and frequently accessed data. This is the default storage class. |
Standard - Infrequent Access Storage | STANDARD_IA | (IA, for infrequent access) is optimized for long-lived and less frequently accessed data, for example backups and older data where access has diminished, but the use case still demands high performance. |
Intelligent - Tiering Storage | INTELLIGENT_TIERING | Long-lived data with changing or unknown access patterns. |
One Zone - Infrequent Access Storage | ONEZONE_IA | Long-lived, infrequently accessed, non-critical data. |
Reduced Redundancy Storage (RRS) | REDUCED_REDUNDANCY | (RSS) Storage class is designed for non-critical, reproducible data stored at lower levels of redundancy than the STANDARD storage class, which reduces storage costs. |
Destination Settings - Wasabi
Key | Type | Description |
---|---|---|
AccessKey | String | The access key. |
SecretKey | String | The secret key. |
Immutable | Boolean | Whether stored data cannot be changed, modified, or deleted after being created; defaults to false. |
BucketName | String | The bucket name, optional. |
Location | String | The location of the Wasabi service, please refer to Wasabi Locations section for the value sets. |
Destination Settings - Wasabi Locations
Region | Value |
---|---|
Toronto | ca-central-1 |
Oregon | us-west-1 |
Plano, Texas | us-central |
Northern Virginia | us-east-1 |
Southern Virginia | us-east-2 |
Amsterdam | eu-central-1 |
Frankfurt | eu-central-2 |
London | eu-west-1 |
Paris | eu-west-2 |
Tokyo | ap-northeast-1 |
Osaka | ap-northeast-2 |
Singapore | ap-southeast-1 |
Sydney | ap-southeast-2 |
Examples
Example 1: Creating a Google Drive Predefined Destination
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"Type":"GDrive",
"SkipVerify":false,
"DestinationSettings":{
"Token":"9/abc0e-g5bc2XX2jepVtYRSiA6J4Q03rgVPfssYVu3xhyl9PiHqkiabmwM3i"
}
}
OUTPUT
{
"Status":"OK",
"DestinationID":"-1620712268943"
}
Example 2: Invalid Token for Google Drive Predefined Destination
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"Type":"GDrive",
"DestinationSettings":{
"Token":"FAKE"
}
}
OUTPUT
{
"Status":"Error",
"Message":"[GDriveManager$GDriveAuthorization.getOAuth2TokensByTempKey] Failed to get Oauth2Tokens after retrieved from GDrive",
"ExptType":"java.lang.Exception"
}
Example 3: Creating AhsayCBS (OBS) Destination with no 2FA Setup
INPUT
{
"SysUser":"api_user",
"SysPwd":"qWeRtY123456!@#$%",
"Type":"OBS",
"DestinationSettings":{
"Immutable":true,
"TempDelete":true,
"TempDeleteDate":"2024-08-25",
"Hour":6,
"Minute":13
}
}
OUTPUT
{
"Status":"Error",
"Message":"Please setup 2FA devices to proceed with adding immutable destination.",
"ExptType":"com.ahsay.obs.core.dbs.DbsException"
}