This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

IPAM + PowerShell

Greetings,

Used the following to get an available IP:How to use the IPAM API and get "Free IP Address"

Getting an error while trying to update any information:

Set-SwisObject : Operation not supported on IPAM.IPNode

While using the following:

$ip = Get-SwisData $swis 'SELECT TOP 1 I.DisplayName FROM IPAM.IPNode I WHERE Status=2 AND I.Subnet.DisplayName = ''1.1.0.0/24'''

$ipobject = Get-SwisObject -Uri (Get-SwisData $swis ('SELECT Uri from IPAM.IPNode where IPAddress = ''' + $ip + '''')) -SwisConnection $swis

$customProps = @{

  Description="TACOS";

}

Set-SwisObject -Uri $ipobject.Uri -SwisConnection $swis -Properties $customProps

Anyone trying to reserve IPs???