THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

Add new value to exist extensible Attribute

New Member
Posts: 2
4154     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: 315
4155     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
4155     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
4155     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