Updated on 2024-07-01 GMT+08:00

Creating a Metadata Collection Task

After a metadata task is created, the task creates a connection with the default database to obtain the metadata of the instance. This topic describes how to create a metadata collection task.

Prerequisites

Access to cloud assets has been authorized. For details, see Allowing or Disallowing Access to Cloud Assets.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. In the navigation tree on the left, click . Choose Security and Compliance > Data Security Center .
  4. In the navigation pane on the left, choose Asset Management > Metadata Task.
  5. On the Metadata Collection Task page, click Create. Parameter description describes the parameters required for data source configuration.

    Table 1 Parameter description

    Parameter

    Description

    Data Source

    Select a data source. This parameter can be set to MySQL, TDSQL, PostgreSQL, DMDBMS, KingBase, OpenGuass, DWS, Hive, or MRS_HIVE.

    Database Instance

    Select a database instance from the drop-down list box.

  6. Click Next. The configure subtasks page is displayed.

    • Choose or to enable or disable Scan user tables.
    • Choose or to enable or disable Scan systems tables, including information_schema.
    • Choose or to enable or disable Scan column constraints to check whether the constraints contain primary keys or whether there are unique constraints.
    • Choose or to enable or disable Scan views to check whether metadata contains views.
    • Choose or to enable or disable Scan column comments.
    • Click or to enable or disable Scan permissions.

  7. Click Next to configure the task information. Parameter description describes the parameters required for configuring task information.

    Table 2 Parameters description

    Parameter

    Description

    Task Details

    • Task: You can customize the name of a collection task. This parameter is mandatory.
    • Task Description: Task description. This parameter is optional.

    Task Settings

    Click or to enable or disable Delete disconnected metadata.

    When to Execute

    • Identification Period: You can select Once, Daily, Weekly, or Monthly.
    • When to Execute: You can select Now or As scheduled.

  8. Click Next. On the configuration confirmation page that is displayed, confirm the parameters.
  9. Click Finish. A new metadata collection task is created.