cancel
Showing results for 
Search instead for 
Did you mean: 

backupTime ge invalid OData filter

ahmedi
Level 2

Hello all.

I'm trying to query the NetBackup 9 API 5 to get a list of images with the filter below, but it says that the filter is invalid.

"filter": "backupTime ge '2017-11-20T23:20:50Z'"

error: {'errorCode': 9401, 'errorMessage': 'The OData filter criteria is invalid.', 'attributeErrors': {}, 'fileUploadErrors': [], 'errorDetails': ['The filter is invalid.']}

 

Can you please help me.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @davidmoline 

I found this link: https://github.com/VeritasOS/netbackup-api-code-samples/issues/46 

There are no quotes around the date-time.

Thanks for your support.

View solution in original post

4 REPLIES 4

ahmedi
Level 2

Hi @davidmoline , can you help me with this.

Hi @ahmedi 

What API call are you attempting? - I don't recognize the filter parameter which I would have thought should be startTime not backupTime. 

David

Hi @davidmoline ,

i'm trying to call GET /netbackup/catalog/images

in the api-doc, it is said that i should use "backupTime ge" and "backupTime le" to get images in a time frame.

And that in API 5, the time format is now ISO 8061.

Br.

Hello @davidmoline 

I found this link: https://github.com/VeritasOS/netbackup-api-code-samples/issues/46 

There are no quotes around the date-time.

Thanks for your support.