Adds a self-managed MyBase instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cddc:AddPrinsInstance | create | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | No | The region ID. For more information, see Region IDs. | cn-hangzhou |
| EcsInstanceId | string | No | The ID of the ECS instance to be managed. | i-bp1726beecvi8kak**** |
| Engine | string | No | The database engine type that is used to filter hosts. Valid values:
| MySQL |
| Ip | string | No | The IP address. | 127.0.0.1 |
| Port | string | No | The instance port number. | 3306 |
| Disk | array<object> | No | The list of disks. | |
| object | No | The queried disks. | ||
| Type | string | No | The type of the cloud disk or local disk. Valid values:
| system |
| DiskId | string | No | The ID of the cloud disk or local disk. | d-2vc9qpza81r6t2nx**** |
| Category | string | No | The disk category. Valid values:
| cloud_essd |
| Device | string | No | The device name of the cloud or local disk mounted on the instance. | /dev/xvda |
| Mount | string | No | The mount point. | /data |
| Username | string | No | The database username. | username |
| Password | string | No | The database connection password. | password |
| SecurityGroupId | string | No | The ID of the security group specified when adding the managed instance. | sg-t4neld965n89ocvt**** |
| Alias | string | No | The alias of the instance. | alias |
| Description | string | No | The instance description. | test |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "D5C887C7-EAF1-40B7-88FE-2C45D4DB****",
"CustInstanceId": 1,
"CustInstanceName": "pr-22a21ac289e0****"
}Error codes
For a list of error codes, visit the Service error codes.
