Creates a custom image for an RDS Custom instance.
Operation description
Supported database engines
- RDS MySQL
- RDS SQL Server
References
Usage
- Method 1: Create a custom image by using a snapshot generated from the system disk. In this case, specify the SnapshotId and ImageName parameters at the same time in the request.
- Method 2: Create a custom image by using an RDS Custom instance. In this case, specify the InstanceId and ImageName parameters at the same time in the request.
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 |
|---|---|---|---|---|
| rds:CreateRCImage | none | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | No | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-beijing |
| SnapshotId | string | No | The ID of the snapshot from which to create the custom image. You can call the DescribeRCSnapshots operation to query the snapshot ID. | rcds-c9bjdl79vz5dx******** |
| ImageName | string | No | The name of the custom image. | Created_from_rc-vma9w5z699x9******** |
| InstanceId | string | No | The ID of the RDS Custom instance. | rc-vma9w5z699x93204**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "F8D78AED-5050-113C-A46E-7B346*******"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidInstanceId.NotFound | InstanceId is invalid, not found. | Invalid InstanceId, no valid instance data found |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2026-02-05 | The Error code has changed | View Change Details |
| 2026-01-14 | Add Operation | View Change Details |
