SOAP(y) Powershell fun w/ BT Diamond's IPAM (Part 1)
PreReq: API Access Powershell 2.0 + I'm using 3.0 now. I assume these examples work in 2.0 as well, but I'm too lazy to test. This was a bit of an interesting exercise for me since I've mostly only ever used cmdlets. I'm still using cmdlets, but calling SOAP based web services to gather information. Here is what I've been experimenting with: #Credentials are needed when working w/ a secure web service. $Creds = Get-Credential #I was able to find the correct API address by clicking the help link on the login page. They seem to have a different web service per API instruction type. In this case, I just want to 'get' address information thusly demonstrated below. $IPControlGetService = New-WebServiceProxy "https://myIPControlServerNameorIP/inc-ws/services/Gets?wsdl" -Credential $creds #This is where it gets interesting, from here I can essentially browse what properties and methods are available to me by calling the $IPC...