...
You will see a list of networks. You can view a networks by clicking on the blue view icon. You can also edit or delete your networks.
Database Schema
Code Block | ||||
---|---|---|---|---|
| ||||
Create Table: CREATE TABLE `networks` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) NOT NULL DEFAULT '', `network` varchar(200) NOT NULL DEFAULT '', `org_id` int(10) unsigned NOT NULL DEFAULT '1', `description` text NOT NULL, `edited_by` varchar(200) NOT NULL DEFAULT '', `edited_date` datetime NOT NULL DEFAULT '2000-01-01 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; |
Example Database Entry
Credentials are Networks are stored in the database in the "networks" table. A typical entry will look as below.
NOTE - org_id is not used at present.
Code Block | ||||
---|---|---|---|---|
| ||||
id: 3 name: 192.168.1.0/24 network: 192.168.1.0/24 org_id: 1 description: Auto inserted local server subnet edited_by: Administrator edited_date: 2017-05-29 10:47:33 |
...
Request Method | ID | Action | Resulting Function | URL Example | Notes |
---|---|---|---|---|---|
GET | n | create | create_form | /networks/create | Displays a standard web form for submission to POST /networks. |
GET | y | update | update_form | /networks/{id}/update | Show the networks details with the option to update attributes using PATCH to /networks/{id} |
...