Python API Example
Step 1: Import required library (CaaSClient)
from cfxdx.dataapi import CaaSClientStep 2: Credentials to connect to the system.
credentials = { "login-method": "access-key", "host": "hostname or ipaddress", "access-key": "value for API-access-key", "secret-key": "value for API-secret-key"}client = CaaSClient(credentials, page_size=500)inv = client.assetInventory()Step 5: Get the number of rows in inventory table
count = inv.count(cfxql_query="Equipment_Type is 'MODULE'")df = inv.get_data(cfxql_query="Equipment_Type is 'CHASSIS'", max_rows=1000)Last updated