solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
401 stars 144 forks source link

Change IPNode status not working after Orion upgrade #257

Closed markatdxb closed 4 years ago

markatdxb commented 4 years ago

Hello we have recently upgraded to 2020.2.1 version Today i figured out that following code doesnt work as expected: This is a standard REST API call from Ansible to IPAM to change the status of the IP. Im able to perform the same change using GUI. Strange is that im actually getting 200 on result but IP status is not changed

- name: POST to SLW to reserve static IP
      uri:
        url: 'https://{{slw_server}}:17778/SolarWinds/InformationService/v3/Json/Invoke/IPAM.SubnetManagement/ChangeIPStatus'
        method: POST
        return_content: yes
        user: '{{ slw_username }}'
        password: '{{ slw_password }}'
        validate_certs: no
        body_format: json
        body:
          - "{{alv_server_ip}}"
          - "Reserved"
wjch-krl commented 4 years ago

What the version you had prior to the update (I am not aware of any recent changes in that area 😕)?

markatdxb commented 4 years ago

I believe we were on 2019.4

wjch-krl commented 4 years ago

That is strange (this works for me) - can you check if StatusBy property on IPAM.IPNode changes for given IP (even if Status property doesn't change)? Or try enabling debug logs and searching for 'error' in logs: C:\ProgramData\SolarWinds\InformationService

markatdxb commented 4 years ago

Im closing this case - thanks for confirmation from your side. After doing several more tests it turned out that it works as expected.