customer use following command to collect data from Prime Infra (version 2.1) but got error message.
is it because our API syntax error or we need to upgrade PI version ?
curl -k -u root:password 'https://10.10.1.100/webacs/api/v1/data/ClientDetails.json?.full=true&.firstResult=0&.maxResults=500'
Result:
{"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'; nested exception is org.hibernate.HibernateException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'","exception":"org.springframework.orm.hibernate3.HibernateSystemException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'; nested exception is org.hibernate.HibernateException: Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientProtocolEnum'","uriPath":"data\/ClientDetails","queryParams":"{.full=[true], .firstResult=[0], .maxResults=[500]}"}}