4 Replies Latest reply on Feb 2, 2018 11:15 AM by DDtAM

    Imported json - how do I specify a dup object name

    DDtAM Novice

      I was able to pull in a json with invoke-webrequest.

      When I look at $x.y.z.ipaddress, it displays two values.  one is our public and one backup.  How can I assign the public IP to $PubIP  There is an object $x.y.z.networkType that defines the public vs backup.

      something like...

      $PubIP = $x.y.z.ipaddress(Where $x.y.z.networktype = public)

      $BkpIP = $x.y.z.ipaddress(Where $x.y.z.networktype = backup)

      Thank you!