python - Read groups with extensible attributes from Infoblox API (WAPI) -


i have no experience infoblox api. need write little script reads configured networks extensible attributes (i need "location" attribute). after need re-writing , posting via api different machine.

i searched net , have found examples nothing can read networks location attribute.

has done before?

thanks

andre

not sure can answer of - perhaps add more detail precise problem facing...

however, recommend requests python library. you'll need set variables url of infoblox wapi infoblox_address , version. can query network , json response external attributes.

attribs_request =  requests.get(infoblox_address + infoblox_version + network_reference  + "?_max_results=5&_return_fields=network,extattrs")  response = attribs_request.json()  print response['extattrs']['location']['value'] 

you query each network in range , store value in list when value exists in location external attribute.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -