l4rzzz / infoblox-wapi
Interact with some Infoblox WAPI endpoints
This package's canonical repository appears to be gone and the package has been frozen as a result.
0.1.14
2019-12-02 20:21 UTC
Requires
README
PHP Component to interact with Infoblox WAPI (REST)
Usage
- Examples
DNS: Get object reference from A record
<?php use \L4rzzz\InfobloxWapi\Dns\Dns; $ib = new Dns('infoblox-grid.mydomain.com', 'user', 'password', '/path/to/infoblox_web.crt'); $objString = $ib->getAObj('test.mydomain.com', '192.168.10.10', 'interne'); print $objString;
DNS: Create CNAME Record
<?php use \L4rzzz\InfobloxWapi\Dns\Dns; $ib = new Dns('infoblox-grid.mydomain.com', 'user', 'password', '/path/to/infoblox_web.crt'); // optional parameters with extensible attributes $optParams = [ 'view' => 'internal' , 'ttl' => '14400', 'extattrs' => [ 'User' => ['value' => 'john.smith@mydomain.com'], 'Group' => ['value' => 'admins'] ] ]; $objString = $ib->setCname('mycname.mydomain.com', 'mydomain.com', $optParams);