Skip to main content

Attribute Management

Overview

The Attributes tab is used to manage the attribute fields of CI types. Attributes are the basic data units of CIs, defining what information a CI can store.

Attributes Tab

Each CI type can define multiple attributes. For example, the Computer type can define attributes like Memory, FQDN, OS Version, etc.

Attribute Categories

The Attributes tab contains three sub-tabs for viewing attributes from different sources:

Sub-tabDescriptionContent
All AttributesShows all available attributesCurrent type's own attributes + inherited attributes from parent types
Inherited AttributesShows only inherited attributesAll attributes inherited from parent types
Own AttributesShows only own attributesAttributes defined directly by the current type (not inherited)

Inheritance Mechanism

Subtypes automatically inherit all attributes from their parent type. For example:

  • Computer type defines FQDN, OS Version attributes
  • Linux inherits from Computer and automatically has these two attributes
  • Linux can then define its own attributes like Distribution

Attribute Types

The system supports the following attribute types:

TypeDescriptionExample Use
StringLonger textDescription information
IntegerWhole numbersCPU core count, port number
Long IntegerLarge integersMemory size (MB)
FloatDecimal numbersCPU usage
DoubleHigh-precision decimalsGeographic coordinates
DatetimeDate and timeCreation time, update time
BooleanYes/NoEnabled, online status
String ListMultiple string valuesTags, DNS servers
Integer ListMultiple integer valuesOpen port list
Key-Value ListKey-value pair collectionCustom tags, environment variables
OptionPredefined option listOS type, status
CI IDReference to another CIAttached CI
IP AddressIP address formatPrimary IP, backup IP
URLURL formatManagement address, download address
EmailEmail address formatContact email
BinaryBinary dataFile content, certificates

Adding Attributes

Steps

  1. Switch to the "Own Attributes" sub-tab
  2. Click the "Add Attribute" button in the top toolbar
  3. Fill in attribute information in the popup dialog

Attribute Field Reference

FieldDescriptionWhen to Use
NameUnique identifier for the attribute, must start with a letter, can only contain letters, numbers, and underscoresDefined when creating; cannot be modified after creation
Display NameDisplay name for the attributeWhen users need to easily identify it
TypeData type of the attributeDefined when creating; cannot be modified after creation
Option TypeData source for optionsOnly needed when type is "Option"; specifies the source of options
DescriptionPurpose description of the attributeHelps users understand the attribute's purpose
GroupAttribute group membershipFor organizing related attributes; displayed grouped on CI detail pages; attributes in "Basic Information" group are shown as default columns in instance lists
Max LengthMaximum value lengthEffective for string, URL, integer list types; limits character count or element count
Default ValueDefault value for the attributeWhen most instances use the same value
RequiredWhether it's a required fieldKey information should be set as required
Read-onlyWhether the value is read-only on the interfaceAttributes not allowed to be modified by users on the interface (does not affect API)
HiddenWhether the attribute is hidden on the interfaceSensitive or rarely used attributes (does not affect API)
Track HistoryWhether to record attribute change historyWhen attribute changes need auditing
IndexWhether to create an index for the attributeWhen the attribute is frequently queried

Note: "Track History" and "Index" options may affect system performance. Enable with caution:

  • Enabling "Track History" causes the system to record history data for every change to the attribute, significantly increasing data volume
  • Enabling "Index" requires the system to maintain index structures for the attribute, which may affect write performance with large data volumes
  • It's recommended to only enable these for attributes that truly need frequent querying or audit tracking |

Editing Attributes

Steps

  1. Find the attribute to edit in the attribute list
  2. Click the "Edit" button on that row
  3. Modify attribute information in the popup dialog
  4. Click "OK" to save changes

Note:

  • Attribute name cannot be modified after creation
  • Attribute type cannot be modified after creation
  • Modifying attribute definitions may affect existing CI data

Deleting Attributes

Steps

  1. Find the attribute to delete in the attribute list
  2. Click the "Delete" button on that row
  3. Click "OK" in the confirmation dialog

Restrictions:

  • Only own attributes can be deleted; inherited attributes cannot be deleted
  • System built-in attributes cannot be deleted
  • If CIs are already using the attribute to store data, confirm before deleting

Frequently Asked Questions

Q: Where are option type options defined?

A: Option type options are defined in the "Option List" module. When creating an option attribute, you need to select an existing option list. See Option Management documentation for details.