3 Replies Latest reply on Jul 6, 2018 1:59 AM by vMan

    Anyone knows how I can authenticate to vRNI using curl command?

    00rellana Lurker

      Greetings,

       

      I am trying to automate some vRNi tasks like monitoring state of services.

      Something similar to:  show-service-status from  CLI

      But I am trying to do this using the REST API, something like : /api/ni/entieis/services

      I am first trying to authenticate using a curl command:

      url -d 'username=user_name@local&password=Secret_pwd&domain={domain_type=local}&submit=Login' --dump-header headershttps://$vrni_ip/api/ni/auth-token

       

      Any tips and direction will be greatly appreciated  :- )

       

      OaO