Skip to main content

Report

This subcategory provides users with APIs that generates reports for backup and restore jobs.

 

GetBackupJobReport

This API can be used to retrieve a detailed report of a specific backup job.

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

  • Monitoring > Backup / Restore Logs > Backup Jobs

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/GetBackupJobReport.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.
OwnerStringOwner of the backup user.
BackupSetIDStringID of the backup set. Obtainable by calling the GetBackupSet API.
DestinationIDStringFor backup run by AhsayOBM v6 or older, this parameter can be omitted. For backup run by AhsayOBM v7, this parameter must be provided to get correct result.
BackupJobIDStringID of the backup job. Obtainable by calling the GetBackupSet API.
CdpBooleanTrue / False
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
DataStringSee JSON Objects
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, will only be displayed if the status is "Error".
JSON Objects

Report

KeyTypeDescription
IDStringID of the report.
StartTimeStringIn yyyy-MM-dd HH:mm:ss format.
EndTimeStringIn yyyy-MM-dd HH:mm:ss format.
BackupJobStatusStringJob status. BS_STOP_SUCCESS if successful backup. Error varies if the backup failed.
NumOfWarnEntriesLongNumber of warning entries.
NumOfErrorEntriesLongNumber of error entries.
NumOfNewFilesLongNumber of new files.
TotalNewFilesSizeLongTotal size of new files.
TotalUnzipNewFilesSizeLongTotal size of unzipped new files.
NewFilesZipRatioLongRatio of zipped new files.
NumOfUpdatedFilesLongNumber of updated files.
TotalUpdatedFilesSizeLongTotal size of updated files.
TotalUnzipUpdatedFilesSizeLongTotal size of unzipped updated files.
UpdatedFilesZipRationLongRatio of zipped updated files.
NumOfUpdatedPermissionFilesLongNumber of updated permission files.
TotalUpdatedPermissionFilesSizeLongTotal size of updated permission files.
TotalUnzipUpdatedPermissionFilesSizeLongTotal size of unzipped updated permission files.
UpdatedPermissionFilesZipRatioLongRatio zipped updated permission files.
NumOfDeletedFilesLongNumber of deleted files.
TotalDeletedFilesSizeLongTotal size of deleted files.
TotalUnzipDeletedFilesSizeLongTotal size of unzipped deleted files.
DeletedFilesZipRatioLongRatio of zipped deleted files.
NumOfMovedFilesLongNumber of moved files.
TotalMovedFilesSizeLongTotal size of moved files.
TotalUnzipMovedFilesSizeLongTotal size of unzipped moved files.
MovedFilesZipRatioLongRatio of zipped moved files.
SuccessDatabaseLongThis key does not exist in VM backup.
MissedDatabaseLongThis key does not exist in VM backup.
SuccessVirtualMachineLongThis key exists in VM backup.
MissedVirtualMachineLongThis key exists in VM backup.
SuccessPublicFolderLongPublic folder of successful jobs.
MissedPublicFolderLongPublic folder of missed jobs.
infoArray of InfoLogSee InfoLog.
newArray of FileLogSee FileLog.
updArray of FileLogSee FileLog.
pmtArray of FileLogSee FileLog.
delArray of FileLogSee FileLog.
movArray of MoveLogSee MoveLog.
cpyArray of FileLogSee FileLog.
DedupeEnabledBooleanWhether deduplication is enabled or not.
DedupeOriginalSizeLongSize of deduplication.
DedupeSavingLongDifference between the original size of dedupe and current dedupe size.

InfoLog

KeyTypeDescription
TypeStringType of log.
LogTypeStringType of log
TimestampStringIn yyyy/MM/dd HH:mm:ss format.
MessageStringDescription of log.

FileLog

KeyTypeDescription
TypeStringType of log.
LastModifiedStringIn yyyy/MM/dd HH:mm:ss format.
NameStringName of the log.
FileSizeLongSize of files.
UnzipFilesSizeLongSize of unzipped files.
RatioStringRatio of files.

MoveLog

KeyTypeDescription
TypeStringType of log.
LastModifiedStringIn yyyy/MM/dd HH:mm:ss format.
FromFileStringSource file.
ToFileStringDestination file.
FileSizeLongSize of files.
UnzipFilesSizeLongSize of unzipped files.
RatioStringRatio of files.
Example

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"LoginName":"obm",
	"Owner":"",
	"BackupSetID":"1692320086130",
	"DestinationID":"-169224967005",
	"BackupJobID":"2024-08-23-10-00-36",
	"Cdp":"false"
}

OUTPUT

{
    "Status":"OK",
	"Data":{
	     "ID":"2024-06-26-13-24-35",
         "FromIp":"10.3.121.64",
	     "SuccessDatabase":"",
	     "MissedDatabase":"",
	     "SuccessPublicFolder":"",
	     "MissedPublicFolder":"",
	     "Logs":[
		      {
			       "Type":"start",
			       "LogType":"start",
			       "Timestamp":"2024/06/26 13:24:37",
			       "Message":"Start [AhsayOBM v 9.11.0.0]"
		      },
		      {
			       "Type":"info",
			       "LogType":"info",
			       "Timestamp":"2024/06/26 13:24:38",
			       "Message":"Using Temporary Directory C:\\Users\\Administrator\\temp\\1687755057644\\OBS@1687755083984"			
		      },
		      {
			       "Type":"info",
			       "LogType":"info",
			       "Timestamp":"2024/06/26 13:24:40",
			       "Message":"Index file does not exist in the destination backup job folder \"null\""			
		      }
	     ],
	     "NumOfNewFiles":1169,
	     "NumOfNewDirCount":24,
	     "NumOfNewLinkDirCount":3,
	     "NumOfNewLinkFileCount":0,
	     "NumOfDeletedDirCount":0,
	     "NumOfDeletedLinkFileCount":0,
	     "TotalNewFilesSize":6827033,
	     "TotalUnzipNewFilesSize":10268480,
	     "NewFilesZipRatio":"33%",
	     "NumOfUpdatedFiles":0,
	     "TotalUpdatedFilesSize":0,
	     "TotalUnzipUpdatedFilesSize":0,
	     "UpdatedFilesZipRatio":"0%",
	     "NumOfUpdatedPermissionFiles":0,
	     "TotalUpdatedPermissionFilesSize":0,
	     "TotalUnzipUpdatedPermissionFilesSize":0,
	     "UpdatedPermissionFilesZipRatio":"0%",
	     "NumOfDeletedFiles":0,
	     "TotalDeletedFilesSize":0,
	     "TotalUnzipDeletedFilesSize":0,
	     "DeletedFilesZipRatio":"0%",
	     "NumOfMovedFiles":0,
	     "TotalMovedFilesSize":0,
	     "TotalUnzipMovedFilesSize":0,
	     "MovedFilesZipRatio":"05",
	     "NumOfCopiedFiles":0,
	     "TotalCopiedSize":0,
	     "TotalUnzipCopiedFilesSize":0,
	     "CopiedFilesZipRatio":"0%",
	     "StartTime":"2024-06-26 13:24:37",
	     "EndTime":"2024-06-26 13:24:58",
	     "BackupJobStatus":"BS_STOP_SUCCESS",
	     "NumOfWarnEntries":0,
	     "NumOfErrorEntries":0,
	     "DedupeEnabled":true,
	     "DedupeOriginalSize":2384,
	     "DedupeSaving":0
	}
}

 

GetBackupJobReportSummary

This API can be used to retrieve a summary report of a backup job.

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

  • Monitoring > Backup / Restore Logs > Backup Jobs

 

URL

https://CBS.EXAMPLE.COM/obs/api/json/GetBackupJobReportSummary.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.
OwnerStringOwner of the backup user.
BackupSetIDStringID of the backup set. Obtainable by calling the GetBackupSet API.
DestinationIDStringFor backup run by AhsayOBM v6 or older, this parameter can be omitted. For backup run by AhsayOBM v7, this parameter must be provided to get correct result.
BackupJobIDStringID of the backup job. Obtainable by calling the GetBackupSet API.
CdpBooleanTrue / False
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
DataStringSee JSON Objects
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, it appears only if status is "Error".
JSON Objects

Report

KeyTypeDescription
IDStringID of the report.
StartTimeStringIn yyyy-MM-dd HH:mm:ss format.
EndTimeStringIn yyyy-MM-dd HH:mm:ss format.
BackupJobStatusStringJob status. BS_STOP_SUCCESS if successful backup. Error varies if the backup failed.
NumOfWarnEntriesLongNumber of warning entries.
NumOfErrorEntriesLongNumber of error entries.
NumOfNewFilesLongNumber of new files.
TotalNewFilesSizeLongTotal size of new files.
NumOfUpdatedFilesLongNumber of updated files.
TotalUpdatedFilesSizeLongTotal size of updated files.
NumOfDeletedFilesLongNumber of deleted files.
TotalDeletedFilesSizeLongTotal size of deleted files.
NumOfMovedFilesLongNumber of moved files.
TotalMovedFilesSizeLongTotal size of moved files.
NumOfUpdatedPermissionFilesLongNumber of updated permission files.
TotalUpdatedPermissionFilesSizeLongTotal size of updated permission files.
SuccessDatabaseLongThis key does not exist in VM backup.
MissedDatabaseLongThis key does not exist in VM backup.
SuccessVirtualMachineLongThis key exists in VM backup.
MissedVirtualMachineLongThis key exists in VM backup.
SuccessPublicFolderLongPublic folder of successful jobs.
MissedPublicFolderLongPublic folder of missed jobs.
DedupeEnabledBooleanWhether deduplication is enabled or not.
DedupeOriginalSizeLongSize of deduplication.
DedupeSavingLongDifference between the original size of dedupe and current dedupe size.
Example

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"LoginName":"obm",
	"BackupSetID":"1687755057644",
	"BackupJobID":"2024-06-26-13-24-35",
	"DestinationID":"1687755083984"
}

OUTPUT

{
	"Status":"OK",
	"Data":{
		"TotalCopiedSize":0,
		"DedupeEnabled":true,
		"DedupeOriginalSize":2384,
		"DedupeSaving":0,
		"EndTime":"2024-08-23 10:00:59",
		"TotalDeletedFilesSize":0,
		"NumOfMovedFiles":0,
		"SuccessPublicFolder":"",
		"TotalUpdatedFilesSize":726,
		"TotalUpdatedPermissionFilesSize":0,
		"NumOfWarnEntries":0,
		"NumOfNewFiles":0,
		"NumOfUpdatedFiles":1,
		"NumOfCopiedFiles":0,
		"ID":"2024-08-23-10-00-36",
		"NumOfErrorEntries":0,
		"BackupJobStatus":"BS_STOP_SUCCESS",
		"TotalNewFilesSize":0,
		"MissedDatabase":"",
		"NumOfUpdatedPermissionFiles":0,
		"SuccessDatabase":"",
		"StartTime":"2024-08-23 10:00:37",
		"NumOfDeletedFiles":0,
		"MissedPublicFolder":"",
		"TotalMovedFilesSize":0
	}
}

 

GetRestoreJobReport

This API can be used to retrieve a detailed report of a restore job.

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

  • Monitoring > Backup / Restore Logs > Restore Jobs

 

URL

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

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
LoginNameStringUsername of the backup user.
OwnerStringOwner of the backup user.
BackupSetIDStringID of the backup set. Obtainable by calling the GetBackupSet API.
JobIDStringID of the restore job. Obtainable from the client restore log or in the user how at: %Clientprofile%\.obm\log\%backupset_id%\Restore\YYYY-MM-DD\YYYY-MM-DD-hh-mm-ss.log or %Userhome%\username\pdf\restore\%backupset_id%\YYYY-MM-DD\YYYY-MM-DD-hh-mm-ss.pdf. Where the JobID is YYYY-MM-DD-hh-mm-ss (e.g. file name of the .log / .pdf file).
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
DataJSON ObjectSee JSON Objects.
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, it appears only if status is "Error".
JSON Objects

Report

KeyTypeDescription
IDStringID of the report.
StartTimeLongStart time of the restore job.
EndTimeLongEnd time of the restore job.
FromIpStringRestore from specified IP address.
DestinationIDStringID of the destination.
StatusStringStatus of the restore. Can be one of the following: RESTORE_STOP_SUCCESS_WITH_ERROR, RESTORE_STOP_SUCCESS_WITH_WARNING, RESTORE_STOP_SUCCESS, RESTORE_STOP_BY_USER or RESTORE_STOP_BY_ERROR.
TotalFileCountLongTotal number of files restored.
TotalFileSizeLongTotal size of files restored.
LogsArray of LogArray list of logs.

Log

KeyTypeDescription
TypeStringType of log, can either be file or info.
StartTimeLongStart time of the restore job.
EndTimeLongEnd time of the restore job.
NameStringName of the restore job.
FileSizeLongSize of the file.
UncompressedSizeLongSize of the uncompressed file.
LastModifiedLongDate of last modification.
MessageStringThis key exists only if "Type" is "info".
LogTypeStringThis key exists only if "Type" is "info".
TimestampStringThis key exists only if "Type" is "info". In yyyy/MM/dd hh:mm:ss format.
Example

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"LoginName":"obm",
	"BackupSetID":"1687755057644",
	"JobID":""
}

OUTPUT

{
	"Status":"OK",
	"Data":{
		"Status":"RESTORE_STOP_SUCCESS",
		"EndTime":"2024-06-26 14:27;08",
		"TotalFileCount":0,
		"StartTime":"2024-06-26 14:26:59",
		"TotalFileSize":0,
		"Logs":[
			{
				"Type":"start"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_CDP.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \”C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_CDP_Filter.html\” exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_Create_CloudFile_Source.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_Create_File_Source.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_Create_IBMDomino_Encryption.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_Create_IBMDomino_Source.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_Create_IBMDomino_WinUserAuthen.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			},
			{
				"Type":"info",
				"Message":"Same file \"C:\\Users\\Administrator\\Desktop\\Help Files\\ACB\\BS_Create_IBMNotes_Dest.html\" exists already.",
				"LogType":"info",
				"Timestamp":"2024/06/26 14:27:03"
			}
		],
		"FromIp":"10.3.121.64",
		"DestinationID":"1687755083984"
	}
}

 

GetRestoreDrillJobReportSummary

This API can be used to display the summary of specified restore drill job.

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

  • Monitoring > Backup / Restore Logs > Restore Drill Jobs

 

URL

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

Available Since Version: 9.1

Parameters

KeyTypeDescription
SysUserStringUsername of an AhsayCBS System User with Admin or API role.
SysPwdStringPassword matching SysUser.
LoginNameStringUsername of the backup user.
JobIDStringID of the restore drill job in timestamp format (yyyy-MM-dd-HH-mm-ss). Obtainable by calling the ListRestoreDrillJobs API.
BackupSetIDStringID of the backup set. Obtainable by calling the ListRestoreDrillJobs API.
DestinationIDStringID of the destination. Obtainable by calling the ListRestoreDrillJobs API.
Return Values
KeyTypeDescription
StatusString"OK" or "Error"
DataJSON ObjectSee Data.
MessageStringError message, it only appears if status displays "Error".
ExptTypeStringThe type of exception, it appears only if status is "Error".
JSON Objects

Data

KeyTypeDescription
StatusStringStatus of the restore drill job. SUCCESS if restore drill is successful otherwise error message varies if the restore drill failed.
BackupSetIDStringID of the backup set.
DestinationIDStringID of the destination.
StartTimeLongStart time of the restore drill job in millisecond time format.
EndTimeLongEnd time of the restore drill job in millisecond time format.
LastBackupRunStringDate and time when last backup was run, in yyyy-MM-dd-HH-mm-ss format.
RunOnClientBooleanWhether backup set is run on client or not.
TotalChunkSizeLongSize of total data chunks, in bytes.
TotalChunkCountLongNumber of total data chunks.
ValidChunkSizeLongSize of data chunks in valid status, in bytes.
ValidChunkCountLongNumber of data chunks in valid status.
CorruptedChunkSizeLongSize of corrupted data chunks, in bytes.
CorruptedChunkCountLongNumber of corrupted data chunks.
ToBeVerifiedChunkSizeLongSize of data chunks in unknown status, in bytes.
ToBeVerifiedChunkCountLongNumber of data chunks in unknown status.
LogoPathStringPath for logo used in PDF reports.
FooterStringFooter in PDF reports.
Examples

Example 1

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"LoginName":"obm",
	"BackupSetID":"1686639360356",
	"DestinationID":"1697505829484",
	"JobID":"2024-10-17-09-32-47"
}

OUTPUT

{
	"Status":"OK",
	"Data":{
		"Status":"INVALID_DETECTED",
		"ValidChunkSize":491185025,
		"LogoPath":"D:\\AhsayCBS\\webapps\\cbs\\images\\default.large.gif",
		"EndTime":1697506377112,
		"LastBackupRun":"2024-10-17-09-24-12",
		"StartTime":1697506367000,
		"CorruptedChunkCount":120,
		"BackupSetID":"1697505782921",
		"TotalChunkCount":1913,
		"DestinationID":"1697505829484",
		"RunOnClient":false,
		"ValidChunkCount":1793,
		"ToBeVerifiedChunkSize":0,
		"CorruptedChunkSize":33432652,
		"ToBeVerifiedChunkCount":0,
		"Footer":"1999-2024 (C) Ahsay Systems Corporation All rights reserved.",
		"TotalChunkSize":524617677
	}
}

Example 2: Incorrect Destination ID / Backup Set ID

INPUT

{
	"SysUser":"system",
	"SysPwd":"system1",
	"LoginName":"obm",
	"BackupSetID":"1686639360356",
	"DestinationID":"xxxx",
	"JobID":"2024-10-17-09-32-47"
}

OUTPUT

{
	"Status":"Erro",
	"Message":"[Error] Restore drill job not found.",
	"ExptType":"java.lang.Exception"
}