Creating Workspaces

This section describes how to create workspaces. By default, a workspace named default is created for users who bought a DGC instance. They are also assigned the Administrator role. You can use the default workspace or create a workspace by referring to this section.

Administrators can manage user (member) permissions, resources, and compute engines in a DGC workspace.

The workspace is a basic unit for member management as well as role and permission assignment. Each team has an independent workspace.

You can access the management center, data assets, data quality control, business metrics, data design, data lake mall, data development, data migration, and data ingestion modules, but only after your account is added to a workspace and assigned the permissions required to perform such operations.

In the Workspace Management tab, users can be added to a workspace and assigned roles such as Administrator, Developer, O&M engineer, and Visitor that are preset in DGC.

Prerequisites

A DGC instance has been bought. See Buying DGC Instances for details.

Context

  • A workspace is created for any user who bought a DGC instance by default. That user is also assigned the role of administrator.
  • The HUAWEI CLOUD account (master account) or IAM user (sub-user) who creates the DGC instance has the permissions required to create a workspace. In a DGC instance created by a master account, if an IAM user of the account needs to create a workspace, the IAM user must be assigned the DGC Administrator or Tenant Administrator policy. By default, the master account has all the permissions for a DGC instance created by a sub-user.

    HUAWEI CLOUD accounts or users with the DGC Administrator or Tenant Administrator policy can perform all operations on DGC by default.

    Accounts or users with the Tenant Administrator policy can perform all operations except the IAM user management. For security purposes, you are not advised to grant this permission to IAM users. Exercise caution when performing this operation.

  • After workspaces are created, they cannot be deleted. You can disable workspaces when they are no longer needed and enable them again when you need these workspaces.
  • Only users with the Security Administrator policy and assigned the Administrator role can add workspace members.
  • Users assigned the DGC User policy can access a workspace only after being added as members of the workspace.

Creating a Workspace

  1. Log in to the DGC management console using a master account.
  2. Click Workspace Management.
  3. Click Create. On the Workspace Information page, set parameters described in Table 1. After the configuration is complete, click OK.
    Figure 1 Workspace information
    Table 1 Parameters for creating a workspace

    Parameter

    Description

    Name

    Workspace names can contain only letters, digits, underscores (_), and hyphens (-). They cannot exceed 32 characters. In a DGC instance, workspace names must be unique.

    Description

    A description of the workspace to be created.

    Enterprise Project

    The enterprise project that associated with the workspace. An enterprise project facilitates management of cloud resources. For more information, see Enterprise Management User Guide. You can create enterprise projects based on the enterprise organization structure. Then you can manage resources across different regions by enterprise project, grant different permissions to user groups, and add them to enterprise projects.

    If you have not enabled an enterprise project, you can select enterprise project default. On the management console, click Enterprise in the upper right corner to access the Enterprise Project Management page to create an enterprise project.

    OBS Bucket for Job Logs

    The OBS bucket for storing logs of DGC data development jobs. To use DGC Data Development, workspace members must have the read and write permissions on the OBS bucket for storing job logs. Otherwise, the system cannot read or write job logs generated during data development.

    • Click OBS. You can select a created OBS bucket. The selected OBS bucket is globally configured in the current workspace.
    • If this parameter is not set, job logs generated during data development are stored in the OBS bucket named dlf-log-{projectId} by default. {projectId} indicates the project ID. You can move the pointer to the username in the upper right corner of the console and choose My Credentials from the drop-down list. On the My Credentials page, you can view the project ID you need.

    OBS Bucket for DLI Dirty Data

    The OBS bucket for storing dirty data generated during DLI SQL execution in DGC Data Development. To use DGC Data Development to develop and execute DLI SQL statements, workspace members must have the read and write permissions on the OBS bucket where DLI dirty data is stored. Otherwise, the system cannot read or write the dirty data generated during DLI SQL execution.

    • Click OBS. You can select a created OBS bucket. The selected OBS bucket is globally configured in the current workspace.
    • If this parameter is not set, dirty data generated during DLI SQL execution is stored in the OBS bucket named dlf-log-{projectId} by default.