Welcome, Guest. Please login or register.

Author Topic: Integration of Cisco Support API? (get-coverage-summary-by-serial-numbers)  (Read 10600 times)

SchmuFoo

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Hello,

just wondering if maybe someone already is using the following Cisco Suppport API in an NeDi Plugin/"Hack" etc ;) ?

https://developer.cisco.com/docs/support-apis/#serial-number-to-information/get-coverage-summary-by-serial-numbers

Cheers,
Jan

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2901
    • View Profile
    • NeDi
I know, some have looked into it. I'll certainly do it, if a customer pays (some of) my time...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

SchmuFoo

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
I know, some have looked into it. I'll certainly do it, if a customer pays (some of) my time...

Thanks Remo, I will forward this info to my specific customer .. ;)

SchmuFoo

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
.. until then I have to figure out, how I can extract the "Devices-List.php?in[]=vendor&op[]=~&st[]=Cisco" List (Serial Number only) from the NeDi Database via the Bash  8) .. and Integrate this query command in my Alpha script  :P

Code: [Select]
# Script Alpha

## Lookup against Cisco API to get Service Coverage Status

json=$( curl -s -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "client_id=..." -d "client_secret=..." -d "grant_type=client_credentials" https://cloudsso.cisco.com/as/token.oauth2 )
token=$( jq -r ".access_token" <<<"$json" )

# Use received Token now for an individual Request
curl -X GET -s -k -H "Accept: application/json" -H "Authorization: Bearer $token" https://api.cisco.com/sn2info/v2/coverage/status/serial_numbers/JMX...