RDS for MySQL
Parameter | Type | Is it required? | Sample value | Description |
SrcInstanceId | String | Yes | mysql-603e30e6**** | ID of the source instance to which the backup file belongs. |
BackupId | String | No | 2b18d7e970c442caae05be478a9e**** | tip
|
RestoreTime | String | No | 2022-01-01T10:10:10Z | Any point in time within the retention cycle of the original instance backup, in the yyyy-MM-ddTHH:mm:ssZ format (UTC time). You can call DescribeRecoverableTime to check if restoration to this point in time is supported. tip You must specify either this parameter or the BackupId parameter. |
NodeInfo | Yes | See the request example. | The specifications of the instance. There is exactly 1 primary node, exactly 1 standby node, and 0 to 10 optional read-only nodes. | |
StorageType | String | Yes | LocalSSD | The storage type of the instance. Range:
tip
|
StorageSpace | Integer | No | 100 | The storage space for the instance. Value range: [Size of the original instance's storage space, the maximum storage space for the new instance primary node specification]. The unit is GiB, with a step size of 10 GiB. The default value is the size of the source instance space. tip For more information on the value range of storage space corresponding to each specification, refer to Product specifications. |
VpcId | String | Yes | vpc-2d70di2hrnbpc58ozfdx9**** | tip Shared VPCs are not supported. |
SubnetId | String | Yes | subnet-2d70dj20bob9c58ozfek6**** | Subnet ID. You can call DescribeSubnets and specify the VpcId and ZoneId (the Availability zone of the primary node or secondary node) to query for available subnets. |
Port | Integer | No | 3306 | The private network address port for the default_endpoint. The value range of the port number is 1,000-65,534, and the default value is 3,306. When a new connection endpoint is created or a new address is enabled, the private network address port of the default_endpoint is configured as the default port in real time. |
AllowListIds | Array of String | No | [ "acl-a29be2559dc4406883d358892b90****", "acl-ded4c0b707e44efd8f0dbc4e88f5****" ] | Allowlists ID. To associate multiple allowlists, separate the allowlist IDs with a comma (,). An instance can be associated with up to 100 allowlists. tip When you use the RestoreToNewInstance API to restore to a new instance, the allowlists of the original instance are not associated with the new instance by default. If needed, before calling this API, you can call DescribeAllowLists to query the allowlists associated with the original instance and write them to this field. Alternatively, after restoring to the new instance, you can call AssociateAllowList to associate allowlists with the new instance. |
InstanceName | String | No | Name123 | Instance name. The naming rules for the instance name are as follows:
|
DBParamGroupId | String | No | mysql-sys-6013c7b8f7ef**** | Parameter templates ID. The default value is the default parameter template for the database engine version. |
ProjectName | String | No | Test | Affiliated project. |
ChargeInfo | Yes | See the request example. | Payment method. | |
InstanceTags | No | [ { "Key":"key1", "Value":"value1" }, { "Key":"key2", "Value":"value2" } ] | Instance tag.
| |
AutoStorageScalingConfig | No | See the request example. | Automatic scale-out configuration. | |
DeletionProtection | String | No | Enabled | Indicates whether to enable deletion protection for the instance. Values:
|
TableMeta | No | | Specifies the databases and tables information to restore during databases and tables recovery. tip Specify this parameter only when restoring data from specified databases and tables. | |
ProxyNodeCustom | No | See the request example. | The proxy configuration of the instance. tip
| |
EnableExternalReplication | Boolean | No | false | Whether to enable native replication. Values:
tip This setting applies only when InstanceType is set to SingleNode. |
PrivateIpAddress | String | No | 192.168.xxx.xxx | The IP address of the default endpoint of the instance in the specified virtual private cloud and subnet. tip If this parameter is not set, an IP address within the specified virtual private cloud and subnet is automatically assigned to the default endpoint of the instance. |
AutoUpgradeMinorVersion | String | No | Auto | The upgrade policy for the kernel minor version of the instance. Values:
tip If an instance's kernel minor version exceeds its maintenance cycle, the system temporarily ignores the upgrade policy and automatically upgrades the kernel minor version. |
Parameter | Type | Is it required? | Sample value | Description |
NodeId | String | No | mysql-050b3e08****-r6e25 | Node ID. tip This parameter is not required when you create an instance or add a node, but is required when you modify the node configuration or delete a node. |
NodeType | String | Yes | Primary | Node type, with values:
tip
|
NodeSpec | String | Yes | rds.mysql.1c2g | tip
|
ZoneId | String | Yes | cn-beijing-a | The availability zone where the node is located. You can call the DescribeAvailabilityZones API to query it. Required when creating an instance or adding a node. Optional when changing node configuration or deleting a node. tip
|
NodeOperateType | String | No | Modify | Operation type. This parameter is not required when you create an instance but is required when you modify the node configuration. Range:
tip
|
Parameter | Type | Is it required? | Sample value | Description |
ChargeType | String | Yes | PostPaid | Payment type. Values:
|
AutoRenew | Boolean | No | true | Specifies whether to enable Due Automatic renewal for prepaid instances. Range:
tip
|
PeriodUnit | String | No | Month | Purchase period for prepaid scenarios. Range:
tip
|
Period | Integer | No | 1 | Subscription duration in a prepaid scenario. The value range of this parameter depends on the value of PeriodUnit:
tip
|
Number | Integer | No | 1 | The number of instances to purchase. Value range: 1~50. Default value: 1. tip
|
Parameter | Type | Is it required? | Sample value | Description |
Key | String | Yes | tagkey | The key of the instance tag. The rules for the tag key are as follows:
|
Value | String | No | tagvalue | The value of the instance tag. The rules for setting the tag value are as follows:
|
Parameter | Type | Is it required? | Sample value | Description |
EnableStorageAutoScale | Boolean | Yes | true | Specifies whether to enable automatic expansion for the storage space. Values:
tip When StorageConfig is used as a request parameter, if EnableStorageAutoScale is set to false, the StorageThreshold and StorageUpperBound parameters are optional. |
StorageThreshold | Integer | Yes | 20 | The percentage of available storage space that triggers automatic scale-out. The value range is 10 to 50, with a default value of 10. The unit is %. |
StorageUpperBound | Integer | Yes | 3000 | The upper limit of storage space for automatic scale-out. The lower limit of this field is the instance storage space + 20 GiB, and the upper limit is the upper limit of the storage space value range corresponding to the instance primary node specifications, in GiB. For more information about the range of storage space values that can be selected for different specifications, refer to Product specifications. |
ScalingDetectNode | String | No | MasterNode | The range of nodes to check for automatic expansion. Values:
tip
|
Parameter | Type | Is it required? | Sample value | Description |
DBName | String | Yes | testdb1 | Specifies the database to restore. |
NewDBName | String | No | testdb2 | Rename the database name. Naming rules are as follows:
tip If you only restore tables, this parameter can be the same as DBName. |
Table | No | [ { "TableName" : "table1", "NewTableName" : "table2" } ] | Specifies the table to restore. tip If this value is empty, the entire database specified by the DBName parameter is restored. |
Parameter | Type | Is it required? | Sample value | Description |
TableName | String | Yes | table1 | Specifies the table to restore. |
NewTableName | String | No | table2 | Rename the table name. Naming rules are as follows:
|
Parameter | Type | Is it required? | Sample value | Description |
CpuNum | Integer | No | 4 | The number of CPU cores for the database proxy service of the instance. Range:
|
Parameter | Type | Sample value | Description |
InstanceId | String | mysql-e7fda57b**** | The Instance ID of the new instance after restoration. |
OrderId | String | Order709899242175681**** | Order ID. |