Extreme API with Python
Table Of Contents
- 1 Preface
- 2 Introduction
- 3 EXOS APIs
- 4 VOSS API
- 5 XMC API
- 6 ExtremeCloud IQ API
- 7 Extreme Campus Controller API
Extreme API with Python
Page | 101
Part no.9036931-00 Rev AA February 2021
else:
print "\nSuccessfully created Site {}".format(SiteName)
The string starts with the mutation field. Browse the GraphiQL interface to the createSite field. Enter the
required arguments, such as the siteLocation (which is mandatory when creating a new site).
Specify the output you want to receive from this action. Select from the GraphiQL list.
Print the result to display the data returned, and print a comment depending on the outcome.
If you run this script before the new site exists, you can also confirm that the site has been created.
Script Name: NBI Mutation
Date and Time: 2020-06-28T16:00:20.726
XMC User: root
XMC User Domain:
IP: 192.168.56.122
Data returned: {network: {createSite={status=SUCCESS, message=, siteId=10}}}
Successfully created Site /World/NewSite
When the site exists, if you run the script again, you will see an error:
Script Name: NBI Mutation
Date and Time: 2020-06-28T16:02:23.390
XMC User: root
XMC User Domain:
IP: 192.168.56.121










