Creates an ApsaraDB RDS external store.
Operation description
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Debugging
Authorization information
Request syntax
POST /externalstores HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
body | object | Yes | The request body. | |
externalStoreName | string | Yes | The name of the external store. The name must be unique in a project and must be different from Logstore names. | rds_store |
storeType | string | Yes | The storage type. Set the value to rds-vpc, which indicates an ApsaraDB RDS for MySQL database in a virtual private cloud (VPC). | rds-vpc |
parameter | object | Yes | The parameter struct. | |
vpc-id | string | No | The ID of the VPC to which the ApsaraDB RDS for MySQL instance belongs. | vpc-bp1aevy8sofi8mh1q**** |
instance-id | string | No | The ID of the ApsaraDB RDS for MySQL instance. | i-bp1b6c719dfa08exf**** |
host | string | No | The internal or public endpoint of the ApsaraDB RDS for MySQL instance. | 192.168.XX.XX |
port | string | Yes | The internal or public port of the ApsaraDB RDS for MySQL instance. | 3306 |
username | string | Yes | The username that is used to log on to the ApsaraDB RDS for MySQL instance. | root |
password | string | Yes | The password that is used to log on to the ApsaraDB RDS for MySQL instance. | sfdsfldsfksfls**** |
db | string | Yes | The name of the database in the ApsaraDB RDS for MySQL instance. | meta |
table | string | Yes | The name of the database table in the ApsaraDB RDS for MySQL instance. | join_meta |
region | string | Yes | The region where the ApsaraDB RDS for MySQL instance resides. Valid values: cn-qingdao, cn-beijing, and cn-hangzhou. | cn-qingdao |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.