Reply
Highlighted

A Record Only with an EA

Zinal
Techie
Posts: 4
749     0


Just wondering if someone can please help me to create a A record in aparticular Zone and then Apply a specific EA to it.

 

At the moment i am just trying to do a Post:

wapi/v2.7/record:a -d '{"ipv4addr":"10.2.0.1","name":"xyz.com"}'/default

 

And i keep getting this Error;

 

"code": "Client.Ibap.Proto",
"text": "Unknown object type (record:a -d '{\"ipv4addr\":\"10.2.0.1\",\"name\":\"xyz.com\"}')"

me\":\"xyz.com\"}')"

Re: A Record Only with an EA

Adviser
Posts: 93
750     0

Here is an example using curl, to create a record with an EA value.  Note: the zone, and the EA defninition, must already exist.

 

curl -k1 -u admin:infoblox -X POST 'https://192.168.1.2/wapi/v2.7/record:a' -H "Content-Type: application/json" -d \
'{
  "ipv4addr":"10.2.0.1",
  "name":"host1.xyz.com",
  "view": "default",
  "extattrs":{"Organization":{"value":"Engineering"}}
}'
Showing results for 
Search instead for 
Do you mean 

Recommended for You