11-03-2021 11:45 PM
Hello,
I've got some experience in using API's but I'm new to the Cisco API's.
According to Cisco my account has the correct permissions using CCW-R (we're PSS) and Service API's. We registered the API's we want to use to two apps due to different auth methods - one for the CCW-R and one for Service API's.
While some API's are working fine (e.g. EoX and Advisories) I've goth 'Access Denied' on other API's. For example:
GET https://api.cisco.com/sn2info/v2/coverage/status/serial_numbers/FCW2323G0TV
GET https://api.cisco.com/product/v1/information/product_ids/UBR10012,ASR1001
GET https://apx.cisco.com/cs/api/v1/customer-info/customer-details
GET https://apx.cisco.com/cs/api/v1/customer-info/customer-details
POST https://api-test.cisco.com/ccw/renewals/api/v1.0/search/contractSummary
Can someone please give me a hint if I'm doing it wrong?
Here are the API's registered for the service (please ignore, that the CCW-R is added as well):
The token request is working fine (using it for EoX and Advisories as well because it's the same app):
My request header is looking like the following:
According to the API and their documentation I add JSON information to the body. For example the customerID when trying to receive respective information.
The response is always the same:
I really appreciate your help! Thanks, David.
Solved! Go to Solution.
11-05-2021 12:50 AM
Ok, yesterday I had a call with Cisco and the problem ist solved.
1) My permissions were insufficient and
2) I did not know, that api* und apx* URL's are behind different gateways and need different authentication / client credentials due to different applications in use.
api* URL is behind Mashery GW and uses the application(s) on https://apiconsole.cisco.com while
apx* URL is behind Mulesoft GW and uses the application(s) on https://anypoint.mulesoft.com/apiplatform/apx/#/portals
With having both in place and the correct permissions granted API access is working for CCW-R and Service APIs.
11-05-2021 12:50 AM
Ok, yesterday I had a call with Cisco and the problem ist solved.
1) My permissions were insufficient and
2) I did not know, that api* und apx* URL's are behind different gateways and need different authentication / client credentials due to different applications in use.
api* URL is behind Mashery GW and uses the application(s) on https://apiconsole.cisco.com while
apx* URL is behind Mulesoft GW and uses the application(s) on https://anypoint.mulesoft.com/apiplatform/apx/#/portals
With having both in place and the correct permissions granted API access is working for CCW-R and Service APIs.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide