Skip to main content

Can you please provide API to Fetch "Reason for job delay" message (error/Failure message of job)

 

 

 

 

Hi @Heemansu Gehlot,

We can use job summary API to get the error/failure reason for a job. Reason will be listed under “pendingReason”.

 

You can find more details here.

 

Example of the API: 

GET {{ServerUrl}}/Job/1405

 

Response:

{

    "totalRecordsWithoutPaging": 1,

    "jobs":

        {

            "jobSummary": {

                "sizeOfApplication": 0,

                "vsaParentJobID": 0,

                "backupSetName": "defaultBackupSet",

                "opType": 4,

                "isAnomalous": true,

                "totalFailedFolders": 0,

                "distributedAppsClusterType": 7007,

                "totalFailedFiles": 0,

                "jobAttributes": 288230376151711744,

                "isAged": false,

                "sizeOfMediaOnDisk": 0,

                "currentPhase": 7,

                "status": "Waiting",

                "percentSavings": 0,

                "localizedOperationName": "Backup",

                "estMediaSize": 0,

                "backupLevel": 1,

                "jobElapsedTime": 0,

                "jobStartTime": 1716829211,

                "currentPhaseName": "Backup",

                "isPreemptable": 1,

                "attemptStartTime": -1,

                "appTypeName": "Big Data Apps",

                "currentThroughput": 0,

                "subclientName": "default",

                "destClientName": "azurecloudplan_IndexServer",

                "jobEndTime": 0,

                "commcellId": 2,

                "thresholdTime": 264,

                "phasePercentagesList": "",

                "alertColorLevel": 16,

                "currentPhaseType": 8656384,

                "jobAttributesEx": 65536,

                "isVisible": true,

                "localizedStatus": "Waiting",

                "totalNumOfFiles": 0,

                "jobId": 1405,

                "lastUpdateTime": 0,

                "statusColor": "black",

                "pendingReason": "Library azurecloud], MediaAgent vishnu-ws], Drive Pool DrivePool(vishnu-ws)3], Media]: Mount path is offline. Advice: Please check if the mount path is online and accessible.  The offline reason shown on mount path properties will indicate why it's unavailable. <br>Source: vishnu-cs, Process: JobManager",

                "errorType": 500,

                "jobType": "Backup",

                "backupLevelName": "Full",

                "pendingReasonErrorCode": "32:406",

                "percentComplete": 20,

                "phaseTimingsList": "",

                "averageThroughput": 0,

                "localizedBackupLevelName": "Full",

                "destinationDisplayClient": {

                    "clientId": 0

                },

                "plan": {

                    "planId": 0

                },

                "destinationClient": {

                    "clientId": 13,

                    "clientName": "azurecloudplan_IndexServer",

                    "displayName": "azurecloudplan_IndexServer"

                },

                "clientGroups": p

                    {

                        "_type_": 28,

                        "clientGroupId": 6,

                        "clientGroupName": "Index Servers"

                    }

                ],

                "dataSource": {

                    "dataSourceId": 0

                },

                "subclient": {

                    "clientName": "azurecloudplan_IndexServer",

                    "instanceName": "classicIndexInstance",

                    "backupsetId": 16,

                    "commCellName": "vishnu-cs",

                    "instanceId": 6,

                    "workloadId": 7007,

                    "subclientId": 19,

                    "clientId": 13,

                    "appName": "Big Data Apps",

                    "backupsetName": "defaultBackupSet",

                    "applicationId": 64,

                    "subclientName": "default"

                },

                "company": {

                    "companyId": 0,

                    "companyName": "Commcell"

                },

                "storagePolicy": {

                    "storagePolicyName": "azurecloudplan",

                   "storagePolicyId": 8

                },

                "userName": {

                    "userName": "admin",

                    "userId": 1

                }

            }

        }

    ]

}

 

 

Thanks,

Vishnu


Reply