Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement here.

API & Integration, DevOps,NetOps,SecOps

Reply

Add new value to exist extensible Attribute

New Member
Posts: 2
3141     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

Moderator
Moderator
Posts: 287
3142     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.

Re: Add new value to exist extensible Attribute

New Member
Posts: 2
3142     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

 

Re: Add new value to exist extensible Attribute

Techie
Posts: 9
3142     0

did you ever get an answer to this or this working?  I am in the same spot.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You