Managing Workspaces

By default, a workspace named default is created after you bought a DGC instance, and you are assigned the Admin role. You can use the default workspace or create a workspace.

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

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

A user can access Management Center, Data Assets, Data Quality Control, Data Design, Data Integration, Data Lake Mall, Data Development, and other components only after the user is added to a workspace and assigned the relevant permissions.

On the Workspaces tab page, you can add users to a workspace and assign them roles such as Admin, Developer, Operator, and Viewer that are preset in DGC.

Context

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

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

    Users with the Tenant Administrator policy can perform all operations except IAM user management. For security purposes, you are not advised to grant this policy to IAM users.

  • 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 admin role can add workspace members.
  • Users assigned the DAYU 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 an account.
  2. Click Workspaces.
  3. Click Create. On the Workspace Information page, set parameters described in Table 1. After the configuration is complete, click Yes.
    Figure 1 Workspace information
    Table 1 Parameters for creating a workspace

    Parameter

    Description

    Name

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

    Description

    A description of the workspace.

    Enterprise Project

    The enterprise project 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 no enterprise project is created, 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.

    API Quota of DLM Exclusive

    The values of this parameter indicate the used quota, allocated quota, total used quota, total allocated quota, and total quota, respectively.

    If you use DLM Exclusive, you will be charged for the APIs you have created. The default quota is 0, which means that no APIs can be created.

    The initial workspace has a free trial quota of 10 APIs. The allocated quota can be modified. The allocated quota cannot be less than the used quota or greater than the sum of the total quota and the previously allocated quota minus the total allocated quota.

Editing a Workspace

  1. Log in to the DGC console.
  2. Select a DGC instance and click Access. Then, click Workspaces.
  3. On the Workspaces tab page, locate the workspace you want to edit and click Edit in the row where the workspace is located.
  4. Click at the top of the Workspace Information page to edit the workspace information and manage workspace members.
  5. After the configuration is complete, click at the top of the Workspace Information page to save the settings.

Disabling a Workspace

After a workspace is created, it is enabled by default. You can disable or enable it as required.

After a workspace is disabled, you cannot access the workspace, edit the workspace content, or schedule jobs in the workspace.

The CDM clusters and DIS streams bought for the workspace are still billed.

  1. Log in to the DGC console.
  2. Select a DGC instance and click Access. Then, click Workspaces.
  3. On the Workspaces tab page, locate the workspace you want to disable, and turn off in the Status column.
  4. In the Disable Workspace dialog box displayed, read the impact of disabling a workspace. If you want to continue, click Yes.

Enabling a Workspace

  1. Log in to the DGC console.
  2. Select a DGC instance and click Access. Then, click Workspaces.
  3. On the Workspaces tab page, locate the workspace you want to enable, and turn on in the Status column.
  4. In the Enable Workspace dialog box displayed, read the impact of enabling a workspace. If you want to continue, click Yes.