How to use datameer REST API curl command?

4 followers
1
Avatar

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 'https://xxx.com:8443/rest/export-job/100'.

I am getting error like below

curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://curl.haxx.se/docs/sslcerts.html

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.

 

Thanks,

 

 

 

 

Jee

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: https://curl.haxx.se/docs/sslcerts.html

    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.

    0

3 comments

  • Avatar
    Sravan Xa Kumar

    Hi

     

    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.

    0
  • 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. 

    0
Please sign in to leave a comment.