- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Add new value to exist extensible Attribute
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2019 03:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2019 04:59 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2019 08:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 01:40 PM
did you ever get an answer to this or this working? I am in the same spot.