Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepowershell
themeFadeToGrey
$ curl -k -u admin: "https://10.155.101.214/rest/ip/address?network=10.155.101.0&dynamic=true"
[{".id":"*8","actual-interface":"sfp12","address":"10.155.101.214/24","disabled":"false",
"dynamic":"true","interface":"sfp12","invalid":"false","network":"10.155.101.0"}]

If you want Another example to return only specific properties, you can use the '.proplist', followed by the '=' and a lost of comma-separated properties. For example, to show only the address and if it's disabledaddresses on the "dummy" interface and with the comment "test":

Code Block
languagepowershell
themeFadeToGrey
$ curl -k -u admin: 'https://10.155.101.214/rest/ip/address?.proplist=address,disabledcomment=test&interface=dummy'
[{"address.id":"10.0.0.111/24*3","disabledactual-interface":"falsedummy"},{"address":"10192.0168.099.1092/24","disabledcomment":"true"}]

The GET method also implements basic filtering, for example, return only addresses on the "dummy" interface and with a comment "test":

test",
"disabled":"false","dynamic":"false","interface":"dummy","invalid":"false","network":"192.168.99.0"}]


If you want to return only specific properties, you can use the '.proplist', followed by the '=' and a lost of comma-separated properties. For example, to show only the address and if it's disabled:

Code Block
languagepowershell
themeFadeToGrey
$ curl -k -u admin: 'https://10.155.101.214/rest/ip/address?comment=test&interface=dummy'
[{".id":"*3","actual-interface":"dummy",.proplist=address,disabled
[{"address":"19210.1680.990.2111/24","comment":"test",
"disabled":"false"},{"dynamicaddress":"false10.0.0.109/24","interfacedisabled":"dummy","invalid":"false","network":"192.168.99.0true"}]

PATCH

This method is used to update a single record. Set PATCH call body as a JSON object which contains fields and values of the properties to be updated. For example, add a comment:

...