Skip to content

Instantly share code, notes, and snippets.

@codyroche
codyroche / gist:62c82715bed6d4501eba866b4e4429c8
Created January 22, 2021 04:13
Cisco CDO API - Device Status Example
import requests
import json
headers = {"Authorization": "Bearer <BEARER_TOKEN_HERE>"}
query = """query {
devices(limit: 50, sortField: NAME, deviceType: [FIREPOWER, ASA, FTD]) {
metadata {
count
}