Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ GeminiDB/ GeminiDB Redis API/ Working with GeminiDB Redis API/ Instance Connection and Management/ Connecting to a GeminiDB Redis Instance on the DAS Console

Connecting to a GeminiDB Redis Instance on the DAS Console

Updated on 2025-01-03 GMT+08:00

DAS enables you to manage DB instances from a web-based console, simplifying database management and improving efficiency. You can connect and manage instances through DAS. By default, you have permissions required for remote login. DAS is secure and convenient for connecting to DB instances.

Precautions

  • If SSL is enabled, you cannot connect to a GeminiDB Redis instance through DAS.

Configuring the Required Permissions

If you have an IAM account, assign DAS FullAccess permissions to all users of the account. For details, see Create User Groups and Assign Permissions.

You can create a custom policy to specify the type of databases that you have permissions for.

  1. Log in to the IAM console and choose Permissions > Policies/Roles.
    Figure 1 Creating a custom policy
  2. Specify a policy name, policy view, and content.
    Figure 2 Configuring a custom policy
    Table 1 Custom policy description

    Parameter

    Description

    Policy Name

    Enter a policy name.

    Policy View

    Select JSON.

    Policy Content

    Configure the following policy content:

    {
        "Version": "1.1",
        "Statement": [
            {
                "Action": [
                    "das:*:*",
                    "nosql:instance:list"
               ],
                "Effect": "Allow"
            }
        ]
    }

    Alternatively, click Select Existing Policy/Role, select DAS FullAccess as a template, and retain only the DB type information. In this example, retain only nosql:instance:list.

    Description

    Enter a policy description.

    Scope

    Retain the default settings (project-level service).

  3. Click OK. You can then view the created custom policy on the Permissions page.
    Figure 3 Viewing the created policy
  4. Create a user group.
    Figure 4 Creating a user group
  5. Authorize the user group created in 4 using the created custom policy.
    Figure 5 Authorizing the user group using the created custom policy
    Figure 6 Selecting the created custom policy
  6. Click the name of the user group and add the required users.
    Figure 7 Adding users

Prerequisites

There is an available GeminiDB Redis instance.

Procedure

  1. Log in to the Huawei Cloud console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. In the instance list, locate the target instance and click Log In in the Operation column.

    Figure 8 Logging in to a GeminiDB Redis instance

    Alternatively, click the instance name to go to the Basic Information page. Click Log In in the upper right corner of the page.

    Figure 9 Logging in to a GeminiDB Redis instance

  4. Enter the password for logging in to the instance.

    You need to enter the password only when you log in to a GeminiDB Redis instance for the first time or after you reset the password.

    Figure 10 Login page

  5. Manage relevant databases.

    Figure 11 Instance homepage
    • Save to Executed Commands

      This function is enabled by default to save the recently executed commands for your later query.

      Then you can click the Executed Commands tab on the lower page to view historical commands.

      Figure 12 The Executed Commands tab

      If this function is disabled, the commands executed subsequently are not displayed any longer. You can click next to Save Executed SQL Statements in the upper right corner to disable this function.

    • Execute a command.

      You can enter a command in the command window and click Execute or F8.

      NOTE:
      • Do not use transactions, Lua scripts, Pub/Sub commands, or other commands that have blocking semantics.
      • For an instance that supports multiple databases, you can change the current database on the console, but cannot change it using a SELECT statement.
      Figure 13 Executing a command

      After a command is executed, you can view the execution result on the Results page.

    • Save

      You can save a command to all instances, the current instance, or the current database. Then you can view details in My Commands.

      Figure 14 Save
    • My Commands

      Common commands are displayed the My Commands page.

      Set a filter to narrow the scope of commands. If you select All, all commands saved in the current account are displayed.

      Figure 15 Filtering commands

      Alternatively, enter a command title or statement in the search box to search for the corresponding command.

      Figure 16 Searching for a command

      On the My Commands page, you can also create, edit, and delete a command or copy it to the command window.

      Figure 17 Managing a command
    • Clear

      You can also press F10 to clear the command in the command window.

      Figure 18 Clearing a command

FAQs

Question: What should I do if the DAS console cannot be redirected after I click Log In in the Operation column in the instance list or click Log In on the Basic Information page?

Solution: Set your browser to allow pop-ups and try again.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback