Basically the exact same as going on here: (1) IPAM API: Update IP Address Comments Based On IP Setting - Forum - IP Address Manager (IPAM) - THWACK (solarwinds.com)
But with API calls using e.g. python.
Looking here: Swagger UI (solarwinds.github.io) I can only find an endpoint which can update the status of an IP, but none of the details...
Okay, I figured it out:
import requests, json, urllib3# SolarWinds credentialsusername = "apiuser"password = "apipassword"ip_address = "8.8.8.8"hostname = "bogushostname.local"status = 1url = 'https://127.0.0.1:17778/SolarWinds/InformationService/v3/Json/'# Query to find the IP addressquery = f"SELECT Uri FROM IPAM.IPNode WHERE IPAddress = '{ip_address}'"urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)headers = { "Content-Type": "application/json"}ip_response = requests.post(url + 'Query', auth=(username, password), headers=headers, data=json.dumps({"query": query}), verify=False)payload = { "status": status, "DnsBackward": hostname, "Comments": "Comments from the API"}uri = ip_response.json()['results'][0]['Uri']response = requests.post(url + uri, auth=(username, password), headers=headers, json=payload, verify=False)print(response.status_code)
Havnt used this IPAM feature really, the import section has always worked for me even with break bulkI imagine it'd be one or more of the Invoke/IPAM. calls, else CRUD on a URI on the swagger you posted