I am trying to mark an reserved ip address to available.
# Get first available ip address
query = "SELECT TOP 1 I.DisplayName, I.Uri FROM IPAM.IPNode I WHERE Status=4 AND I.Subnet.DisplayName = '{0}'".format(vlan)
swis = orionsdk.SwisClient(server, user, password)
results = swis.query(query)
for result in results['results']:
uri = result['Uri']
print("IP address: {0}".format(result['DisplayName']))
#Now that I have the uri I then try to set it to "available"
swis.update(uri, Status='Available')
Getting the below error:
400 Client Error: The given key was not present in the dictionary. for url: 192.168.80.95:17778/.../IpNodeId=152,<class 'requests.exceptions.HTTPError'>