THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

IPv6 API for create/delete fixaddress, network and network container

Authority
Posts: 20
4412     0
hi all, I'm doing some integration project from a ticket portal to IPAM. I'd done with ipv4 with create and delete of fixadd, netowrk & container, but found no reference on the ipv6. anyone can share /guide me on ipv6 ? thanks. Sample of API used for ipv4 creation -> ######################################## Create an IP address ######################################## POST https://172.28.0.82/wapi/v2.7/fixedaddress?_return_fields%2B=ipv4addr,mac&_return_as_object=1 {"ipv4addr":"202.146.69.51","network_view":"Public View","mac":"aa:bb:cc:11:22:21","extattrs":{"Services":{"value":"Metro"},"Requestor Name":{"value":"Menjit"},"IP Owner":{"value":"James Bond"}}} ######################################## Create newtowrk with EA ######################################## POST https://172.28.0.82/wapi/v2.7/network?_return_fields%2B=network,extattrs&_return_as_object=1 {"network": "14.1.1.0/24","network_view":"Lab View","extattrs":{"Services":{"value":"Metro"},"IP Owner":{"value":"James Bond"}}} ######################################## Create newtwork container with EA ######################################## POST https://172.28.0.82/wapi/v2.7/networkcontainer?_return_fields%2B=network,extattrs&_return_as_object=... {"network": "14.4.4.0/24","network_view":"Lab View","extattrs":{"Services":{"value":"MetroE"},"Application Name":{"value":"FTTx services"},"Requestor Name":{"value":"Steve"},"IP Owner":{"value":"James Bond"}}}

Re: IPv6 API for create/delete fixaddress, network and network container

Authority
Posts: 20
4412     0

successful to create network and container based on below,but not ipv6addr

 

########################################
Create newtowrk v6 with EA
########################################
POST
https://172.28.0.82/wapi/v2.7/ipv6network?_return_fields%2B=network,extattrs&_return_as_object=1

{"network": "2001:c10:80:2::958/126","network_view":"Lab View","extattrs":{"Services":{"value":"Metro"},"IP Owner":{"value":"James Bond"}}}

########################################
Create newtwork container v6 with EA
########################################
POST
https://172.28.0.82/wapi/v2.7/ipv6networkcontainer?_return_fields%2B=network,extattrs&_return_as_obj...

{"network": "2001:d08::/32","network_view":"Lab View","extattrs":{"Services":{"value":"MetroE"},"Application Name":{"value":"FTTx services"},"Requestor Name":{"value":"Steve"},"IP Owner":{"value":"James Bond"}}}

 

 

 

while i try to delete the network above , below error pop up:

 

{
    "Error""AdmConProtoError: Invalid reference: network/ipv6network/ZG5zLm5ldHdvcmskMjAwMTpjMTA6ODA6Mjo6OTU4LzEyNi8z:2001:c10:80:2::958/126/Lab View",
    "code""Client.Ibap.Proto",
    "text""Invalid reference: network/ipv6network/ZG5zLm5ldHdvcmskMjAwMTpjMTA6ODA6Mjo6OTU4LzEyNi8z:2001:c10:80:2::958/126/Lab View"
}
 
 
can anyone share their rest API for ivp6? thank s 

Re: IPv6 API for create/delete fixaddress, network and network container

Moderator
Moderator
Posts: 315
4412     0

The URL with the ref contains a space, try replacing the space with a percent-20 "%20" instead to escape the space.

Re: IPv6 API for create/delete fixaddress, network and network container

Adviser
Posts: 181
4413     0

Hi,

 

The reference you are using seems to be wrong. There should be no "network" preceding the ipv6network:

network/ipv6network/ZG5zLm5ldHdvcmskMjAwMTpjMTA6ODA6Mjo6OTU4LzEyNi8z:2001:c10:80:2::958/126/Lab View

 

Please verify.

 

Also, to create a IPv6 fixed address, you need to use the ipv6fixedaddress endpoint like below:

curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://grid-master/wapi/v2.11/ipv6fixedaddress?_return_fields%2B=ipv6addr,duid&_return_as_object=1" -d '{"ipv6addr":"2001:0db8:85a3:0000:0000:8a2e:0370:7334","duid":"00:02:00:01:02:03:04:05:07:a0"}'

Re: IPv6 API for create/delete fixaddress, network and network container

[ Edited ]
Authority
Posts: 20
4413     0

hi  

 

thanks for your guide, i manage to create ipv6 and done. thanks alot. 

 

 

#staysafe

#stayhome

Showing results for 
Search instead for 
Did you mean: 

Recommended for You