Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

1- Create the auth.json file ( GUI_username, GUI_password and Tenant_name )

2- do a POST to get in the HTTP response with the auth_tokens ( HTTP response headers saved locally )


1- Create the auth.json file

https://www.juniper.net/documentation/en_US/nfv1.0/topics/task/configuration/ccpe-api-obtain-admin-token.html


https://contrail-juniper.net/

  • Go to:     Administration >>> Users
  • Select the tenant:  tenant_name
  • GUI_ username / GUI_password


2- do a POST to get in the response the auth_tokens

curl -X POST -D headers -H "content-type:application/json" https://contrail-juniper.net/v3/auth/tokens -d@auth.json

-D headers  ( the response header will be save localy)

-d@auth.json ( use the auth.json file for the password authentication )


#  OLD   CSO lab:   curl -X POST -D headers -H "content-type:application/json" http://x48-byod.mycsolab.com:5000/v3/auth/tokens -d@auth.json



3- read the header file

# more headers 







  • No labels