Skip to content

NBI API

Avi Mehenwal edited this page Aug 5, 2019 · 4 revisions

Link to postman NBI-API call documentation

postman-api-documentation

How to fetch NBI access token from command-line?

Following cURL command could be used to get NBI access-token.

curl -X POST --insecure \
https://131.234.29.187:9999/osm/admin/v1/tokens \
-H 'Content-Type: application/json' \
--data '{
    "username": "admin",
    "password": "admin",
    "project": "admin",
    "project_id" : "6edb5643-bc69-4c9d-8623-b4eee539a458"
}'

curl request to get token from OSM NBI API

Link to postman NBI-API call documentation

Issues you might face

Self-signed certificates

User --insecure with cURL commands or Turn-off SSL Certificate Verification when using Postman