Skip to content

Commit cf47d32

Browse files
author
igor-feoktistov
committed
Initial commit
0 parents  commit cf47d32

File tree

2 files changed

+839
-0
lines changed

2 files changed

+839
-0
lines changed

README.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Infoblox API
2+
3+
This project implements the subset of Infoblox API via REST API
4+
5+
## Infoblox API python module
6+
7+
Class **Infoblox** implements the following methods:
8+
9+
- create_network
10+
- delete_network
11+
- create_networkcontainer
12+
- delete_networkcontainer
13+
- create_host_record
14+
- delete_host_record
15+
- add_host_alias
16+
- delete_host_alias
17+
- create_cname_record
18+
- delete_cname_record
19+
- create_dhcp_range
20+
- delete_dhcp_range
21+
- get_next_available_ip
22+
- get_host
23+
- get_host_by_ip
24+
- get_ip_by_host
25+
- get_host_by_extattrs
26+
- get_host_extattrs
27+
- get_network
28+
- get_network_by_ip
29+
- get_network_by_extattrs
30+
- get_network_extattrs
31+
- update_network_extattrs
32+
- delete_network_extattrs
33+
34+
* * *
35+
36+
### How to use
37+
38+
Example:
39+
40+
```
41+
import infoblox
42+
43+
iba_api = infoblox.Infoblox('10.10.20.32', 'admin', 'secret', '1.0', 'internal', 'default')
44+
45+
try:
46+
ip = iba_api.get_next_available_ip('192.168.0.0/24')
47+
iba_api.create_host_record(ip, 'mytest.example.com')
48+
except Exception as e:
49+
print e
50+
51+
```
52+
53+
### Limitations
54+
55+
Currently supports WAPI 1.0 only. 1.2.1 is coming soon.

0 commit comments

Comments
 (0)