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

Managing Credentials

Credentials are used by MgC to authenticate your identity during resource discovery and data collection. This section describes how to add credentials required by MgC to discover cloud resources. To learn how to add credentials required for using the MgC Agent to discover on-premises resources or manually adding resources to MgC, see Adding Resource Credentials.

Supported Authentication Types

Only public cloud credentials can be added. For details about the supported authentication types, see Table 1.

Table 1 Supported authentication types for public clouds

Resource Type

Authentication Type

Description

Public cloud

AK/SK

AK/SK pairs for accessing cloud platforms, such as Huawei Cloud, Alibaba Cloud, AWS, Tencent Cloud, Qiniu Cloud, and Kingsoft Cloud For details about how to obtain AK/SK pairs for cloud platform accounts, see How Do I Obtain Cloud Platform Credentials?

Configuration file

Credential configuration files of Google Cloud. A configuration file that contains credentials for Google Cloud service accounts can be uploaded to MgC. The file must be in JSON format and cannot exceed 4 KB.

ID/Secret

Azure credentials. To learn how to obtain Azure credentials, see How Do I Obtain Azure Credentials?

Your cloud credentials are stored in the MgC database and remain valid for seven days. After this period, you need to add the credentials to MgC again if you still want to discover or migrate your cloud resources.

Procedure

  1. Sign in to the MgC console. In the navigation pane, under Project, choose a project from the drop-down list.
  2. In the navigation pane on the left, choose Settings.
  3. On the Credentials tab, click Add Credential.

    Figure 1 Adding a credential

  4. Enter a credential name, select an authentication method, enter or upload the corresponding credentials, and click Confirm. After the credential is added, you can choose Credentials > Cloud to view the added credential.

    Figure 2 Selecting an authentication type