- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-26-2012 09:03 AM
Does someone have an example on how to invoke the "next_available_ip" function via WAPI? Thanks.
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-15-2012 07:35 AM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-15-2012 07:37 AM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-15-2012 08:45 AM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-15-2012 11:48 AM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-15-2012 01:36 PM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-16-2012 06:43 AM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-21-2012 04:18 AM
@Axel: Yes. Seems like there are more people from the lowlands here. I suspect "rdevries" to be one too
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-21-2012 06:31 AM
Hey Guys; yeah, I am originally from the Netherlands but currently live and work in the USA
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-21-2012 12:17 PM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-26-2012 09:03 AM
you guys are funny.
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-27-2012 12:01 AM
Well it depends : which sense do you put behind "funny" ? The good one or the bad one :-D
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-03-2013 06:11 AM
Hi Guys,
I have tried same command against InfoBlox box, but could get successful result.
The first query was ok.
https://10.1.1.104/wapi/v1.0/networkview?_return_type=xml-pretty&name=default
it returns
<?xml version="1.0"?><list> <value type="object"> <is_default type="boolean">true</is_default> <_ref>networkview/XXXXXXXXXXXXX:default/true</_ref> <name>default</name> </value></list>
Once I try to get next available IP in the range, it fails.
https://10.1.1.104/wapi/v1.0/network/XXXXXXXXXXX:10.0.0.0/24/default?_function=next_available_ip&num...
I build the URL as described in WAPI Doc v1.0.
Am I missing something? This is very important for us.
We are planing to develop .net client app which would talk to InfoBlox over WAPI ?
{ "Error": "AdmConProtoError: Function next_available_ip illegal with this method", "code": "Client.Ibap.Proto", "text": "Function next_available_ip illegal with this method"}
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-03-2013 11:26 PM
Is there any specific reason to get unsaccesfull message ?
I did follow the rules written under
1.4 General Syntax and Options.( WAPI doc v1.0 )
thanks
HY
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-04-2013 07:03 AM
what API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-23-2014 04:00 AM
you have to get the _ref
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-23-2014 11:36 AM
you have to get the _ref to the network before you can cal the function, so you can't use a GET and reference the network by name.
'_function' params only work with a POST ( not a GET ).
and you can only have the _function as a param. the 'num' field has to be passed in the body:
go you would need :
GET /wapi/v1.4.1/network?network=1.2.3.0/24
POST /wapi/v1.2/network/ZG5zLm5ldHdvcmskMS4xLjEuMC8yNC83?_function=next_available_ip
Content-Type: application/json
{"num": 1}
Hi Geoff
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-26-2014 05:14 AM
Hi Geoff
I am trying to integrate this into our helpdesk system so that when a user requets a new VM we can provision as soon as it is approved.
Getting the next IP address if the current issue
taking what you have explained above, I now have the system sending our a GET command for a subnet and returning good data
*** Script: [
{
"_ref": "network/1234567890:10.193.152.0/24/default",
"comment": "something goes here",
"network": "10.193.152.0/24",
"network_view": "default"
}
]
I then try a post
var r = new RESTMessageScripted("post","https://<server>/wapi/v1.4.1/network/1234567890?function=next_available_ip");
r.addHeader("Content-Type", "application/json");
r.addRequestParameter("num","1");
r.execute()
I am getting no returned data, but looking at the XML that is retrieved I am getting
<results error="Method failed: (/wapi/v1.4.1/network/1234567890) with code: 400" probe_time="125">
<result error="Method failed: (/wapi/v1.4.1/network/1234567890) with code: 400">
<output>
{ "Error": "AdmConProtoError: JSON Decoding: No JSON object could be decoded", "code": "Client.Ibap.Proto.JSONDecoding", "text": "JSON Decoding: No JSON object could be decoded" }
</output>
I assume it is to do with the content that is sent, but I have tried numerous values with no success so far
I shall persevere, but if you have any suggestions they would be appreciated
I have it working now. I had
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-26-2014 07:45 AM
I have it working now. I had two issues.
First, the app I am using was truncating the url. I have shortened the URL by removing the FQDN and that is good. I have asked how to increase in case I get more issues with long URL's
the second is that I had ?function and not ?_function
Cheers
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-19-2019 01:03 AM
Re: next_available_ip()
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-15-2020 10:56 AM