All Products
Search
Document Center

ApsaraDB for MyBase:AddPrinsInstance

Last Updated:Nov 03, 2025

Adds a self-managed MyBase instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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 Resources is 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.
OperationAccess levelResource typeCondition keyAssociated operation
cddc:AddPrinsInstancecreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID. For more information, see Region IDs.

cn-hangzhou
EcsInstanceIdstringNo

The ID of the ECS instance to be managed.

i-bp1726beecvi8kak****
EnginestringNo

The database engine type that is used to filter hosts. Valid values:

  • MySQL
MySQL
IpstringNo

The IP address.

127.0.0.1
PortstringNo

The instance port number.

3306
Diskarray<object>No

The list of disks.

objectNo

The queried disks.

TypestringNo

The type of the cloud disk or local disk. Valid values:

  • system: system disk
  • data: data disk
system
DiskIdstringNo

The ID of the cloud disk or local disk.

d-2vc9qpza81r6t2nx****
CategorystringNo

The disk category. Valid values:

  • cloud_efficiency: ultra disk.
  • cloud_ssd: standard SSD.
  • cloud_essd: enterprise SSD (ESSD).
  • cloud: basic disk
cloud_essd
DevicestringNo

The device name of the cloud or local disk mounted on the instance.

/dev/xvda
MountstringNo

The mount point.

/data
UsernamestringNo

The database username.

username
PasswordstringNo

The database connection password.

password
SecurityGroupIdstringNo

The ID of the security group specified when adding the managed instance.

sg-t4neld965n89ocvt****
AliasstringNo

The alias of the instance.

alias
DescriptionstringNo

The instance description.

test

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

D5C887C7-EAF1-40B7-88FE-2C45D4DB****
CustInstanceIdstring

The instance ID.

1
CustInstanceNamestring

The globally unique name of the instance.

pr-22a21ac289e0****

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.