cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2369
Views
0
Helpful
3
Replies

403 Forbidden on Support API

GregJohnston21989
Community Member

I wrote an application to query the SN2Info API (https://api.cisco.com/sn2info/v2/coverage/summary/serial_numbers/) using a seed file of serial numbers (a few thousand devices), queried in batches of 25.

The application was working great until it tried to query using an invalid serial number (either N/A or a serial number containing a space).  Since then, I've been getting a 403 Forbidden response from the API.

I'm concerned my app or IP address has been blacklisted because it's been detected as an attack.😞

In the meantime, I've fixed the error correction code in my application.🙂

Thanks

 

 

 

3 Replies 3

GregJohnston21989
Community Member

FYI - I tried to register a new application (client id and client secret) and I get the same error code.

GregJohnston21989
Community Member

Immediate problem resolved (hooray!).  After a couple of hours, it started working again.  A couple of 500 internal server errors but within a hour I had all 8,000-odd serial numbers done.  These APIs are great!  Saves hours of manual effort!

GregJohnston21989
Community Member

I'm still having problem accessing the Services API (e.g. https://apx.cisco.com/cs/api/v1/customer-info/customer-details).  I have API Developer access but I'm wondering if I need additional access permissions in the SAMT tool.

 

All of the Support APIs are working fine.

 

In saying that, I found a few instances where the Production Information API appears appears to be returning incorrect information.  For example, the request:

"https://api.cisco.com/product/v1/information/product_ids/WS-C3750X-24P-E,WS-C3750X-24P-S,WS-C3750X-24S-S,WS-C3750X-24T-S,WS-C3750X-48PF-S?page_index=1"

Returned two records for the WS-C3750X-24T-S:

 

 {
"id": "1",
"product_id": "WS-C3750X-24T-S",
"product_name": "Cisco ASA 5515-X Adaptive Security Appliance",
"product_type": "MULTIPROD",
"product_series": "Cisco ASA 5500-X Series Firewalls",
"product_category": "Security",
"product_subcategory": "SYSTEM",
"release_date": "2012-02-28",
"orderable_status": "O",
"dimensions": {
"dimensions_format": "Dimensions (H x W x D)",
"dimensions_value": "1.67 x 16.7 x 15.6 inches (4.24 x 42.9 x 39.5 cm)"
},
"weight": "13.39 lb (6.07 kg) with AC power supply",
"form_factor": "1 RU, 19-in. rack-mountable",
"product_support_page": "http://www.cisco.com/content/en/us/support/security/asa-5515-x-adaptive-security-appliance/model.html",
"visio_stencil_url": "http://www.cisco.com/content/dam/assets/prod/visio/visio/products_visio_icon0900aecd8050a7d7.zip",
"rich_media_urls": {
"small_image_url": "",
"large_image_url": "http://www.cisco.com/content/dam/en/us/products/vpndevc/ps6032/ps6094/ps6120/prod_large_photo0900aecd804dd800.jpg"
}
},

 

And:

 

 {
"id": "3",
"product_id": "WS-C3750X-24T-S",
"product_name": "Cisco Catalyst 3750X-24T-S Switch",
"product_type": "MULTIPROD",
"product_series": "Cisco Catalyst 3750-X Series Switches",
"product_category": "Switches",
"product_subcategory": "SYSTEM",
"release_date": "2010-03-15",
"orderable_status": "O",
"dimensions": {
"dimensions_format": "",
"dimensions_value": ""
},
"weight": "",
"form_factor": "",
"product_support_page": "http://www.cisco.com/content/en/us/support/switches/catalyst-3750x-24t-s-switch/model.html",
"visio_stencil_url": "",
"rich_media_urls": {
"small_image_url": "",
"large_image_url": "http://www.cisco.com/content/dam/en/us/products/switches/ps5718/ps10745/3750x-lg-photo.jpg"
}
},

Note: It's interesting that the "large_image_url" isn't the same image used on the product support page for the same device but that's just a cosmetic thing.

 

So, despite a few minor issues, the APIs are very welcome!

 

Greg