How to use datameer REST API curl command?


Hi there,

 I am new to Datameer and I am trying to execute a REST API curl command to get "ExportJob" details by executing the below command,

 curl -u jkris03:xxxx -X GET ''.

I am getting error like below

curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here:

Also, If i give my password, it displays in PlainText, so is there a way where i can give my password which is not readable.








Official comment

  • Avatar
    Alan Mark

    Since your environment is SSL secured, you will need to do one of two things:

    1. get the CA certificate and use the --cacert parameter on the curl command to specify your certificate.  

    2. specify --insecure on the curl command so that the certificate isn't validated.

    You can find more information about both of these options in the link noted in your error message:

    As to your second question relating to password visibility, unfortunately there isn't a way to hide your password.  It's just the nature of using cURL.



  • Avatar
    Sravan Xa Kumar



    Can we use the --negotiate option of Curl to connect to Datameer Rest API? It doesn't work when tried in our environment.

    Performed kinit first and used --negotiate in curl to make use of that kerberos ticket. Please let us know how it works.

  • Avatar
    Joel Stewart

    Sravan, there's no SPNEGO authentication on the Datameer HTTP(S) web server. As a result, the --negotiate option in Curl is not useful for Datameer REST API calls. 

Please sign in to leave a comment.