Extreme API with Python

Table Of Contents
Extreme API with Python
Page | 96
Part no.9036931-00 Rev AA February 2021
You can access the GraphQL schema description as an IDL file or a JSON file, at the following URLs on an
XMC server:
HTTPS://<xmc-ip-address>:8443/nbi/graphql/schema.idl
HTTPS://<xmc-ip-address>:8443/nbi/graphql/schema.json
Using the GraphiQL interface, you can browse the fields available to us. Let’s have an example and say
you want to retrieve the list of devices managed by XMC, and have their MAC address, firmware version
and site location.
By expanding the Docs panel (on the far right), you have access to all the information available.
Here you can find available fields, field types and sub-fields. Typically, the field type is on the left (in
blue) and the field value is on the right (in orange).
Start at the top with the Query field, then browse the sub-fields to find the Network section.