API & Integration

Reply
Highlighted

REST API example for creating a List-type Extensible Attribute and Values

Adviser
Posts: 63
1801     2

Here's a REST example using curl, for creating a list-type extensible attribute in the grid ad a set of values.  It is for U.S. states, and includes the 50 two-letter state abbreviations.

 

curl -k1 -u admin:infoblox -X POST 'https://10.9.16.6/wapi/v2.2/extensibleattributedef' -H "Content-Type: application/json" -d '{"name":"State","type":"ENUM","list_values":[{"value":"AL"},{"value":"AK"},{"value":"AZ"},{"value":"AR"},{"value":"CA"},{"value":"CO"},{"value":"CT"},{"value":"DE"},{"value":"DC"},{"value":"FL"},{"value":"GA"},{"value":"HI"},{"value":"ID"},{"value":"IL"},{"value":"IN"},{"value":"IA"},{"value":"KS"},{"value":"KY"},{"value":"LA"},{"value":"ME"},{"value":"MD"},{"value":"MA"},{"value":"MI"},{"value":"MN"},{"value":"MS"},{"value":"MO"},{"value":"MT"},{"value":"NE"},{"value":"NV"},{"value":"NH"},{"value":"NJ"},{"value":"NM"},{"value":"NY"},{"value":"NC"},{"value":"ND"},{"value":"OH"},{"value":"OK"},{"value":"OR"},{"value":"PA"},{"value":"RI"},{"value":"SC"},{"value":"SD"},{"value":"TN"},{"value":"TX"},{"value":"UT"},{"value":"VT"},{"value":"VA"},{"value":"WA"},{"value":"WV"},{"value":"WI"},{"value":"WY"}]}'

Showing results for 
Search instead for 
Do you mean 

Recommended for You