Forum Discussion

DanJennings76's avatar
6 months ago

Netbackup 11 API - Unexpected Error

I'm creating an interface that extracts data from Veritas NetBackup for reporting purposes. I've run into an issue with the API where the filter doesn't work as expected. 

 

My issue :

If I call the REST API like this:

curl -X 'GET' \

     'https://nbu-veritas/netbackup/admin/jobs?filter=startTime%20gt%202025-07-20%2000%3A00%3A00.000z&page%5Blimit%5D=10' \

      -H 'accept: application/vnd.netbackup+json;version=13.0'

This returns the jobs with startTime > 2025-07-20 00:00:00.000z

When I run the same call; but then with 'lastUpdateTime

curl -X 'GET' \

     'https://nbu-veritas/netbackup/admin/jobs?filter=lastUpdateTime%20gt%202025-07-20%2000%3A00%3A00.000z&page%5Blimit%5D=10' \

     -H 'accept: application/vnd.netbackup+json;version=13.0'

 

It returns an error:

 

Bad response: 400 

Method: GET |

Response body:

    {

    "errorCode":9401,

    "errorMessage":"The OData filter criteria is invalid.",

    "attributeErrors":{},

    "fileUploadErrors":[],

    "errorDetails":["The filter is invalid."]

    }

As we want to collect job status updates the lastUpdateTime seems the best way to get recent updates. The field is available in the dataset returned and is documented as a filter criteria. 

No RepliesBe the first to reply