User Tools

Site Tools


infoblox

add host curl

read -s -p 'password: ' passwd
#echo -e "\n"
read -p 'host: ' host
read -p 'ip: ' ip
curl -k -u admin:${passwd} -H 'content-type: application/json' -X POST "https://<ip infoblox>/wapi/v2.3/record:host?_return_fields%2B=name,ipv4addrs&_return_as_object=1" -d'{"name":"'"$host".<domain name>'","ipv4addrs":[{"ipv4addr":"'"$ip"'"}]}';
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
infoblox.txt · Last modified: 2024/11/10 07:59 by 127.0.0.1