- Can login to APIC-EM system, with the default username (admin) and pwd (secrete) Via POSTMAN, now want to get the ticket in order to fill in the x-auth-token header.
- here's the REST API I am trying to do:
- POST - url: https://sandboxapic.cisco.com:9443/api/v1/ticket
- Body:
- {"username": "admin" , "password": "secrete"}
- return error:
- {"response":{"errorCode":"INVALID_CREDENTIALS","message":"Please provide valid credentials","detail":"Authentication Failed"},"version":"1.0"}
- Any idea what is missing here.
Please check Sandbox APIC-EM always on Lab.
to get the right password.
First of all, https://sandboxapic.cisco.com/ is old EFT2 version and https://sandboxapic.cisco.com:9443 is GA1, the latest release.
They are all real APIC-EM servers, just DB only lab the inventory is getting from DB (which is a snapshot of real devices).
It depends on what would you like to test. The DB only lab already can be used for a lot of things(like REST API application test) but if you need to use "live" devices then you use the reservation lab which everything is live.
To use API in Sandbox please try to use:
url = "https://devnetapi.cisco.com/sandbox/apic_em/api/v1/ticket"
payload = {"username":"devnetuser","password":"Cisco123!"}
Comments
0 comments
Please sign in to leave a comment.