02-02-2024 03:37 AM
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.
Solved! Go to Solution.
02-03-2024 06:31 AM
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.
02-02-2024 04:08 AM
Hi @davidmoline , can you help me with this.
02-02-2024 02:45 PM
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
02-03-2024 01:26 AM - edited 02-03-2024 01:53 AM
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.
02-03-2024 06:31 AM
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.