Help Center> Migration Center> Tool Guide> Edge Discovery> Adding Resource Credentials
Updated on 2024-05-21 GMT+08:00

Adding Resource Credentials

You need to add credentials for accessing your source resources to Edge, so that Edge can collect information about them and migrate them to Huawei Cloud. Credentials added to Edge are encrypted and stored locally, and will not be synced to MgC.

Credentials you add to Edge are valid for three days. After the validity period expires, you need to add the credentials to Edge again if you still want to discover or migrate the resources.

Prerequisites

Edge has been installed on a device in your source environment, and the Edge device has been connected to MgC.

Authentication Methods

You can add credentials of the following types of resources to Edge: private clouds, servers, and containers. For details about the authentication methods supported for each resource type, see Table 1.

Table 1 Authentication methods

Resource Type

Authentication Method

Description

Public cloud

  • AK/SK
  • Configuration file
  • Username/Password
  • Enter the AK/SK pair used for accessing the cloud platform, such as Huawei Cloud, Alibaba Cloud, AWS, or Tencent Cloud
  • Upload the configuration file used to access Google Cloud. The configuration file contains credentials for Google Cloud service accounts, and the file must be in .json format and cannot exceed 4 KB.

Private cloud

Username/Password

Enter the username and password for logging in to the source private cloud.

Databases

Username/Password

Enter the username and password of the database.

Windows server

Username/Password

Enter the username and password for logging in to the server. Then specify Network Range, which can be a single IP address or an IP address range.

The value can be:

  • A single IP address, for example, 192.168.10.10/32
  • An IP address range, for example, 192.168.52.0/24
  • All IP addresses. You need to enter 0.0.0.0/0.

Linux server

  • Username/Password
  • Username/Key
  • If you select Username/Password, enter the username and password for logging in to the server.
  • If you select Username/Key, enter the username and the password of the key file for logging in to the server, and upload the key file in .pem format.
    NOTICE:

    If the key file is not encrypted, you do not need to enter the password.

Then specify Network Range, which can be a single IP address or an IP address range. The value can be:

  • A single IP address, for example, 192.168.10.10/32
  • An IP address range, for example, 192.168.52.0/24
  • All IP addresses. You need to enter 0.0.0.0/0.

Container

Configuration file

The configuration file must be a .json or .yml file.

Procedure

  1. On the Edge console, in the Source Credentials area, click Add.

  2. Select a resource type and authentication method as prompted. Specify a credential name, enter your credentials, and click Confirm. After the credential is added, Edge automatically synchronizes the added credential to MgC. You can view the credential details in the credential list.

Synchronizing Credentials

If Edge is disconnected from MgC, you need to manually synchronize added credentials to MgC after the connection is restored. In the Source Credentials area, click Sync.