Skip to main content

Configure Tencent Cloud access credentials

NineData supports Access Key of the Tencent Cloud account, to create a private network connection terminal node for NineData, and query some necessary information such as private network connection, CVM, CDB, VPC, etc., to establish a connection between the NineData server and the database through peer-to-peer network connection.

Permission description

To leverage this menthod, user's Tencent Cloud access credentials need to have the following permissions(presented in the form of JSON permission scripts).

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cdb:DescribeDBInstances"
],
"resource": [
"*"
],
"condition": []
},
{
"effect": "allow",
"action": [
"cvm:DescribeInstances"
],
"resource": [
"*"
],
"condition": []
},
{
"effect": "allow",
"action": [
"cynosdb:DescribeClusters"
],
"resource": [
"*"
],
"condition": []
}
]
}
tip

For a sub-account, please contact the administrator to authorize the sub-account according to the content of this article.

Step 1: Create a custom policy

  1. Log in to Tencent Cloud Access Management Console Policy Page, click New Custom Policy on the Policies page, and click Create by Policy Syntax.

  2. In the Select Template Type area, select Blank Template and click Next.

  3. Enter a Policy Name.

    tip

    The policy name supports 1 to 128 characters, which can contain English letters, numbers and special characters (+=,.@-_).

  4. Copy the permission script in Permission Description of this article, paste it into the text box below Policy Content, and click Finish.

Step 2: Add AccessKey

  1. Log in to Tencent Cloud Access Management Console User List Page, find the user to be authorized in the user list, and click Operation on the right side of it listed under Authorization.

    tip

    The authorized user must belong to the AccessKey to be added.

  2. On the Associated Policies page, find and click the custom policy created in Step 1, the policy will appear in the box on the right, and click OK.

    tip

    Enter a policy name in the search box for fuzzy search.

  3. On the left navigation bar, click Access Key > API Key Management, or click [here](https://console.cloud.tencent.com/cam/ capi) Enter API Key Management page to get SecretId and SecretKey. For more information, see View Current User Access Key.

  4. Log in to NineData Console, click Datasource > Access Credentials on the left console, and click Create Credentials in the upper right corner, configure according to the table below, and click Create Credential.

    Parameter
    Description
    NameEnter a credential name. To facilitate subsequent search and management, please try to use meaningful names.
    Cloud VendorClick Tencent Cloud.
    TypeSelect AccessKey .
    Access KeyEnter the obtained SecretId.
    Access Key SecretEnter the obtained SecretKey.