Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Attributes endpoint allows you to add customized customised values to different attributes in Open-AudIT, at the moment this feature works on the Class, Environment, Status and Type attributes on Devices only.

How Does it Work?

Attributes are stored for Open-AudIT to use for particular fields, at present all fields are based on the devices (system) table.
The attributes you can edit are associated with the following columns: Class, Environment, Status & Type.

Notes:

If you add a device type, to display the associated icon you will have to manually copy the .svg formatted file to the directory:
 Linux: /usr/local/open-audit/www/open-audit/device_images
 Windows: c:\xampplite\htdocs\open-audit\device_images 

Creating an Attribute Entry

A user An attribute entry can be created using the web interface if the current user logged in has a role that contains the userattribute::create permission. Go to menu: Manage -> Users Attributes -> Create UsersAttributes. Also can be created from the Users Attributes View, using the "Create" button.

...

The schema for the database is below. It can also be found in the application is the user has attributes::read permission by going to menu: Manage -> Database -> List Database, then clicking on the "attributes" table.

No Format
Create Table: CREATE TABLE `attributes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `org_id` int(10) unsigned NOT NULL DEFAULT '1',
  `resource` varchar(200) NOT NULL DEFAULT '',
  `type` varchar(200) NOT NULL DEFAULT '',
  `name` varchar(200) NOT NULL DEFAULT '',
  `value` varchar(200) NOT NULL DEFAULT '',
  `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=103 DEFAULT CHARSET=utf8

...