Forum Discussion

ahmedi's avatar
ahmedi
Level 2
6 months ago

backupTime ge invalid OData filter

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.

4 Replies

    • davidmoline's avatar
      davidmoline
      Level 6

      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

      • ahmedi's avatar
        ahmedi
        Level 2

        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.