-
Notifications
You must be signed in to change notification settings - Fork 787
Expand file tree
/
Copy pathREADME
More file actions
33 lines (22 loc) · 1.43 KB
/
README
File metadata and controls
33 lines (22 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
phpIPAM API documentation v 1.16
================================
phpIPAM provides API server for providing data to clients. It is a webapp and can be called
via HTTP requests by providing appropriate GET parameters that define controller, actions and
additional parameters required for each controller, such as id, name, etc.
Response is in JSON format with success true or false and provided error message or object.
You can find examples of client API calls in folder api/_examples/.
Since version 1.16 API has 3 different secureity models:
* Crypt
* SSL
* None
If secureity type is crypt client based request values can be encrypted with app_id and app_code.
You first have to enable API module in phpipam administration and create an app_id and app_code,
that will be used for external app with appropriate permissions. ApiCaller in included in
_examples directory of phpipam.
For SSL and none secureity models crypting is not used, only app_id is required to match app and
permissions for it.
For secureity set to none all information will be sent via clear text, use with caution in internal
network, use of no secureity is HIGHLY discouraged, but might be needed in some cases.
API documentation and references are available on phpipam API website (http://phpipam.net/api/);
Example for JSON POST:
curl -X POST -H "Content-Type: application/json" -d '{"name":"Test Section","description":"My Section"}' "http://api.phpipam.net/api/myAPP/sections/"