...
A connection can be created using the web interface if a user has a role that contains the connection::create permission. Go to menu: Manage -> Connections -> Create Connection. Also can be created from the Connection View, using the "Create" button.
'
View Connection Details
...
Database Schema
The database schema
...
can
...
be found in the application is the user has database::read permission by going to menu: Admin ->
...
Database -> List
...
Tables, then clicking on the
...
Code Block | ||||
---|---|---|---|---|
| ||||
Create Table: CREATE TABLE `connections` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`org_id` int(10) unsigned NOT NULL DEFAULT '1',
`name` varchar(200) NOT NULL,
`description` text NOT NULL,
`provider` varchar(100) NOT NULL,
`service_type` varchar(100) NOT NULL,
`product_name` varchar(100) NOT NULL,
`service_identifier` varchar(100) NOT NULL,
`speed` float(7,3) NOT NULL DEFAULT '0.000',
`location_id_a` int(10) unsigned NOT NULL DEFAULT '1',
`location_id_b` int(10) unsigned NOT NULL DEFAULT '1',
`system_id_a` int(10) unsigned DEFAULT NULL,
`system_id_b` int(10) unsigned DEFAULT NULL,
`line_number_a` varchar(100) NOT NULL,
`line_number_b` varchar(100) NOT NULL,
`ip_address_external_a` varchar(30) NOT NULL,
`ip_address_external_b` varchar(30) NOT NULL,
`ip_address_internal_a` varchar(30) NOT NULL,
`ip_address_internal_b` varchar(30) 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=2 DEFAULT CHARSET=utf8; |
Example Database Entry
Connections are stored in the database in the "connections" table. A typical entry will look as below.
...
theme | Eclipse |
---|---|
language | text |
...
details button for the table.
API / Web Access
You can access the
...
collection using the normal Open-AudIT JSON based API. Just like any other collection. Please
...
see The Open-AudIT API documentation for further details
...
API Routes
...
...
...
...
...
...
...
.
...
Web Application Routes
Request Method | ID | Action | Resulting Function | Permission Required | URL Example | Notes |
---|---|---|---|---|---|---|
GET | n | create | create_form | connections::create | /connections/create | Displays a standard web form for submission to POST /connections. |
GET | y | update | update_form | connections::update | /connections/{id}/update | Show the connection's details with the option to update attributes using PATCH to /connections/{id} |
GET | n | import | import_form | connections::create | /connections/import | Displays a standard web form for submission to POST /connections/import. |
POST | n | import | import | connections::create | /connections/import | Import multiple connections using a CSV. |
...