phpipam-api-clients
phpipam-api-clients copied to clipboard
Collection of API clients for phpipam API
Hi, I have a problem when i try to create a subnet after calling /api/my_app/sections/{id}/subnets/. When i create the subnet alone without doing a get request to /api/my_app/sections/{id}/subnets/, it creates...
ansible@server4:~> curl --header 'token: FtUVhJ0XO9lFbgOYTzOaVieLMi1nor_d' -X GET "https://host/phpipam/api/api/subnets/?filter_value=10.15.0.0&filter_by=subnet" | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 81...
ansible@server4:~> curl --header 'token: ...' -X POST "https://host/phpipam/api/api/subnets/?subnet=10.10.3.0&mask=24§ionId=3&masterSubnetId=8&allowRequests=1&pingSubnet=1&discoverSubnet=1&description=10.10.3.0/24" | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 77...
Hi We use the php-client API , but struggling with the die() after a cURL exception: https://github.com/phpipam/phpipam-api-clients/blob/74d67c44dd2221f880917678929c9e6b71b7c4a4/php-client/class.phpipam-api.php#LL266C15-L266C15 If the IPAM server is not reachable or other error occurs, we would...
I'm tring to execute api-example.php, thi si error: PHP Notice: Array to string conversion in /var/www/html/phpipam/functions/classes/class.phpipam-api.php on line 652 PHP Notice: Undefined variable: response_headers in /var/www/html/phpipam/functions/scripts/api-test.php on line 26 Array...
Hi, I've been using php-client for a couple years now to sync the subnets in phpIPAM to some internal systems. Since update to phpIPAM 1.4, it started failing. We've got...
"php -v" PHP 7.2.11-2+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Oct 15 2018 11:40:35) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache...
I try to do a Patch UPDATE of a Subnet description using CURL. Please verify the syntax. $API->execute ("PATCH", "subnets", array(26), array('description'=>'mytest'), $token_file); $url = $this->api_url.$this->api_app_id.str_replace("//", "/", "/".$this->api_server_controller."/".$this->api_server_identifiers)."/"."?".http_build_query($params); $url="https://phpipam-staging.gconnect.co.za/api/123456789/subnets/7/?description=mytest"; ERROR:...
Hi, I have just recently started using the php-api client and am trying to get upto speed with how to use it. I am having trouble assigning the next free...
I have upgraded from 1.2 to 1.3 because the crypt method with multiple parameters wasn't working. Now, in 1.3 I can't get a response from phpipam The command is ----"...