Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

API & Integration

Reply

Add new value to exist extensible Attribute

amal
Techie
Posts: 2
243     0

Hello all,

 

I have an extensible Attribute (Location )with some values

each day there is new location added to our system so i extract and add them manually to Infoblox  

 

I made some research but i didn´t find solution to add new value to my List_values 

 

I want to know if it's possible to do this automatically i m using WAPI V2.10

 

Thanks

 

 

 

Re: Add new value to exist extensible Attribute

MRichard Community Manager
Community Manager
Posts: 134
243     0

When adding a location, you need to pull down the current list as an array, add the new one to the array, and then replace the list with the new array.  There isn't a way to append the list in-place.

Highlighted

Re: Add new value to exist extensible Attribute

amal
Techie
Posts: 2
243     0

i extract the values_List im Array

 

$ListValues=Invoke-WebRequest -Uri "https://x.x.x.x/wapi/v2.10/extensibleattributedef?name=Location&_return_fields=list_values" -Credential $Credential -Method GET -ContentType application/json

 

$List= ConvertFrom-Json $ListValues.Content

 

$ListArray=$List.list_values

 

[System.Collections.ArrayList]$NewListArray=$ListArray

 

$NewListArray.add("New Location")

 

But Now how can i replace the list with the new Array 

 

Could you help me please

 

Thanks

 

Showing results for 
Search instead for 
Do you mean 

Recommended for You