How to Access Contrail REST API using curl
1)
Export keystone credentials
export OS_USERNAME=admin
export OS_PASSWORD=secret123
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://127.0.0.1:35357/v2.0
2)
Access REST API with keystone token
#curl -s -H "X-Auth-Token: $(keystone token-get | awk '/ id / {print $4}')" 192.168.56.102:8082/projects | python -mjson.tool
1)
Export keystone credentials
export OS_USERNAME=admin
export OS_PASSWORD=secret123
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://127.0.0.1:35357/v2.0
2)
Access REST API with keystone token
#curl -s -H "X-Auth-Token: $(keystone token-get | awk '/ id / {print $4}')" 192.168.56.102:8082/projects | python -mjson.tool
What kind of authentication do I use if I'm using POSTMAN
ReplyDelete