Updated on 2024-10-29 GMT+08:00

Managing Custom Types

Scenario

This section describes how to manage custom object types.

Limitations and Constraints

  • Built-in types and sub-types cannot be associated with layouts, edited, deleted, enabled, or disabled.
  • After a custom type is added, its values of Data Class, Type Name, and Type ID cannot be modified.
  • After a subtype is added, its values of Data Class, Type Name, Type ID, and Subtype ID cannot be modified.

Adding a Custom Type

  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. On the displayed page, click Add.

    Figure 1 Add Type

  6. On the Add Type page, set type parameters.

    Table 1 User-defined type parameters

    Parameter

    Description

    Data Class

    Select an existing data class.

    Type Name

    Create a name for the type you want to define.

    Type Tag

    Enter a type tag. The keyword must comply with the upper camel case naming rules, for example, TypeTag.

    Startup Status

    The enabling status of the type:

    Description

    Description of a custom type.

    After a user-defined type is added, the Data Class, Type Name, and Type ID cannot be modified.

  7. In the lower right corner of the page, click OK.

    After the type is added, you can view the new type in the Type List on the User-Defined Types page.

Adding a Subtype for a User-Defined Type

  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. In the type list on the left, click the name of the custom type for which you want to add a subtype. Details about the custom type are displayed on the right.
  6. On the Custom Types page on the right, click Add.

    Figure 2 Adding a subtype

  7. On the Add Subtype page, set parameters.

    Table 2 Subtype parameters

    Parameter

    Description

    Data Class

    Name of the current data class.

    Type Name

    Name of the current type.

    Type ID

    ID of the current type.

    Subtype

    User-defined subtype keyword.

    Subtype ID

    Custom subtype ID. The keyword must comply with the upper camel case naming rules, for example, SubTypeTag.

    Status

    Indicates the enabling status of the subtype:

    SLA

    Set the SLA processing time of the subtype.

    Description

    Description of a subtype

  8. Click OK.

Associating a Custom Type/Subtype with a Layout

Built-in types and subtypes have been associated with layouts by default. You cannot customize associated layouts.

  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. On the displayed page, perform operations based on the type.

    • For a type:
      1. In the Type List on the left of the Custom Type page, select the type to be associated with a layout.
      2. In the detailed information about the type on the right, click Associate Layout. The Associate Layout dialog box is displayed.
      3. In the Associate Layout dialog box, select the target layout and click OK.
    • For a subtype:
      1. In the Type List on the left of the Custom Type page, select the type to be associated with a layout.
      2. In the subtype list of this type displayed on the right, click Associate Layout in the Operation column of the target type to associate with the layout. The Associate Layout dialog box is displayed.
      3. In the Associate Layout dialog box, select the target layout and click OK.

Editing a Custom Type/Subtype

  • Built-in types and subtypes cannot be edited.
  • After a user-defined type is added, the Data Class, Type Name, and Type ID cannot be modified.
  • After a subtype is added, its Data Class, Type Name, Type Tag, Sub Type, and Sub Type Tag cannot be modified.
  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. On the displayed page, perform operations based on the type.

    • For a type:
      1. In the Type List on the left of the Custom Type page, select the type to be edited.
      2. Click Edit on the target type detail page. The Edit Type page is displayed on the right.
      3. On the Edit Type page, edit the parameters of the type.
        Table 3 Type parameters

        Parameter

        Description

        Data Class

        Data class to which the type belongs, which cannot be modified.

        Type Name

        Name of a user-defined type, which cannot be modified.

        Type ID

        Vulnerability type ID, which cannot be modified.

        Status

        The enabling status of the type.

        Description

        Description of a custom type

      4. In the lower right corner of the page, click Confirm.
    • For a subtype:
      1. In the Type List on the left of the Custom Type page, select the type you want to edit.
      2. In the subtype list of this type on the right, click Edit in the Operation column of the target subtype. The Edit Subtype page is displayed on the right.
      3. On the Edit Subtype page, edit the parameters of the subtype.
        Table 4 Subtype parameters

        Parameter

        Description

        Data Class

        Data class to which the type belongs, which cannot be modified.

        Type Name

        Name of a user-defined type, which cannot be modified.

        Type ID

        Vulnerability type ID, which cannot be modified.

        Subtype Name

        Name of the sub type, which cannot be edited.

        Subtype ID

        Subtype ID, which cannot be modified.

        Startup Status

        The enabling status of the subtype.

        SLA

        SLA processing time of the subtype

        Description

        Description of a custom subtype

      4. In the lower right corner of the page, click OK.

Enabling/Disabling a User-defined Subtype

Built-in subtypes are enabled by default and cannot be disabled.

  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. In the type list on the left of the page, select the type you want to associate with the layout.
  6. In the subtype list displayed on the right, enable or disable the target subtype in the Startup Status column.

    You can batch enable or disable subtypes. To do so, select them and click Batch enable or Batch Disable in the upper left corner above the type list.

  7. In the dialog box displayed, click OK.

    If the system displays a message indicating that the operation is successful and the status of the target type changes to Disabled (or Enabled), the target type is disabled (or enabled).

Viewing Custom Types or Subtypes

  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. On the displayed page, view details about existing custom types or subtypes.

    • The type list is displayed on the left, showing the existing types.
    • To view details about a type, click the type name in the type list. The type details are displayed on the right. The detailed information is as follows:
      • Basic information about the target type: name, creator, creation time, and associated layout.
      • Subtype list: information about existing subtypes, subtype names, and layouts associated with subtypes.

Deleting a Custom Type or Subtype

Built-in types and subtypes cannot be deleted.

  1. Log in to the management console.
  2. Click in the upper part of the page and choose Security > SecMaster.
  3. In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace.
  4. In the navigation pane on the left, choose Security Orchestration > Objects. On the displayed page, click the Type Management tab.
  5. On the Type Management page, click the Custom Type tab. On the displayed page, perform operations based on the type.

    • For a type:
      1. In the Type List on the left of the Custom Type page, select the target.
      2. In the right pane, click Delete on the target type page to delete the type. A dialog box is displayed for you to confirm the deletion.
      3. In the displayed dialog box, click OK.
    • For a subtype:
      1. In the Type List on the left of the Custom Type page, select the target type.
      2. In the subtype list of this type on the right, click Delete in the Operation column of the target type to be deleted. The deletion confirmation dialog box is displayed.
      3. In the displayed dialog box, click OK.