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
On this page

Show all

Agency Management (New)

Updated on 2025-02-17 GMT+08:00

If you use a member account to create a DRS task, automated tasks may fail, including scheduled startup, completion, resumable transfer, and scheduled comparison. To rectify the fault, you can use an agency to create a task.

For example, if you enable scheduled startup tasks, DRS will automatically entrust your account to DRS administrator op_svc_rds or to RDS during the task creation to implement automated management on the scheduled tasks.

Solution

  • Method 1: Use the master account to create a task again because the master account has the Security Administrator permission by default. After the task is created using the master account, an agency is created.
  • Method 2: Use the master account to add the Security Administrator permission to the user group to which the member account belongs, and create a task again. For details about how to add permissions, see Creating a User Group and Assigning Permissions.
  • Method 3: Use the master account to add a custom policy to the user group to which the member account belongs, and create a task again. The procedure is as follows:
    1. Log in to Huawei Cloud using the master account and click Console in the upper right corner.
    2. On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
    3. On the IAM console, choose Permissions > Policies/Roles from the navigation pane, and click Create Custom Policy in the upper right corner.
    4. Enter a policy name. Configure the following content in the Policy Content area. For details about how to create a custom policy, see Creating a Custom Policy.
      • Creating an agency: iam:agencies:createAgency
      • Querying the agency list: iam:agencies:listAgencies
      • Assigning permissions to an agency: iam:permissions:grantRoleToAgency, iam:permissions:grantRoleToAgencyOnProject and iam:permissions:grantRoleToAgencyOnDomain
      • Querying agency permissions: iam:roles:listRoles, iam:permissions:listRolesForAgencyOnProject and iam:permissions:listRolesForAgencyOnDomain
    5. After the policy is created, add the custom policy created in 4 to the user group to which the member account belongs. Select Global services for Scope. For details about how to add a custom policy, see Creating a User Group and Assigning Permissions.
  • Method 4: Manually add an agency. The procedure is as follows:
    1. Log in to Huawei Cloud using the master account and click Console in the upper right corner.
    2. On the management console, hover the mouse pointer over the username in the upper right corner, and choose Identity and Access Management from the drop-down list.
    3. In the navigation pane on the left, click Agencies.
    4. In the upper right corner, click Create Agency.
    5. Enter DRS_AGENTCY in field Agency Name. If you select Account for Agency Type, enter op_svc_rds in field Delegated Account. If you select Cloud service for Agency Type, select MySQL for Delegated Account. Select Unlimited for Validity Period and then click OK.
      Figure 1 Creating an agency

    6. On the Select Policy/Role page, select policies based on the task type and click Next in the lower right corner.
      • Self-built tasks: DRS FullAccess
      • To-the-cloud or out-of-cloud tasks: DRS FullAccess and ReadOnlyAccess of the source and destination databases

      For example, for a to-the-cloud migration task from MySQL to MySQL, you need to select the DRS FullAccess and RDS ReadOnlyAccess policies.

      For details about the permissions required by different DB engines, see Table 1.

      Table 1 DB engines and policies

      DB Engine

      Authorization Policy

      MySQL

      RDS ReadOnlyAccess

      Microsoft SQL Server

      RDS ReadOnlyAccess

      PostgreSQL

      RDS ReadOnlyAccess

      MongoDB

      DDS ReadOnlyAccess

      DDS

      DDS ReadOnlyAccess

      GaussDB(DWS)

      DWS ReadOnlyAccess

      TaurusDB

      GaussDBReadOnlyAccess

      DDM

      DDMReadOnlyAccess and RDSReadOnlyAccess

      GaussDB Distributed

      GaussDBReadOnlyAccess

      GaussDB Centralized

      GaussDBReadOnlyAccess

      GeminiDB Mongo

      GeminiDBReadOnlyAccess

      Cassandra

      GeminiDBReadOnlyAccess

      GeminiDB Redis

      GeminiDBReadOnlyAccess

      MariaDB

      RDSReadOnlyAccess

      GeminiDB Cassandra

      GeminiDBReadOnlyAccess

      Figure 2 Selecting a policy
    7. On the Select Scope page, select the scope for minimum authorization and click OK.
      • You need to select Global services and then Region-specific projects for the DRS FullAccess permission.
      • You need to select Region-specific projects for the ReadOnlyAccess permission of the source and destination databases.
      Figure 3 Authorization for region-specific projects
    8. Click the agency name. On the Permissions tab, you can view permissions for the agency.
    9. The authorization takes effect after 15 to 30 minutes.

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