Configures SSL encryption for an dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance.
Operation Description
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:
- The required resource types are displayed in bold characters.
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:ModifyDbProxyInstanceSsl | Write |
|
| 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-hangzhou |
DbInstanceId | string | Yes | The instance ID. You can call the DescribeDBInstances operation to query the instance ID. | rm-t4n3axxxxx |
DbProxyEndpointId | string | Yes | The ID of the proxy endpoint. You can call the DescribeDBProxyEndpoint operation to query the ID of the proxy endpoint. | ta9um4xxxxx |
DbProxyConnectString | string | Yes | The dedicated proxy endpoint of the instance. | test123456.rwlb.rds.aliyuncs.com |
DbProxySslEnabled | string | Yes | The SSL configuration setting that you want to apply on the instance. Valid values:
Note
This setting causes your instance to restart. Proceed with caution.
| 1 |
DBProxyEngineType | string | No | A reserved parameter. You do not need to specify this parameter. | normal |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "BF46A62B-3717-4397-9338-36BB95C898B3"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MinorVersionNotSupport | The current database minor version does not support the operation. | The operation is not supported for the minor engine version of the instance. |
400 | InvalidDbProxyStatus | The proxy status of the database is abnormal. | The operation failed. The database proxy of the RDS instance is abnormal. |
400 | InvalidDBInstanceName | Specified parameter DBInstanceName is not valid. | The value of the DBInstanceName parameter is invalid. Check that the value of this parameter is not null or an empty string. |
403 | RDSCategoryNotSupport | The specified instance category does not support this operation. | - |
404 | Endpoint.NotFound | The specified endpoint is not found. | - |
404 | EnabledSSLNotSupport | The backend service does not support SSL. | The backend does not support SSL encryption. |
404 | InvalidDbProxyConnectionString.NotFound | The specified database proxy connection string is not found. | The operation failed. The database proxy endpoint cannot be found. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-06-23 | API Description Update,The error codes of the API operation change. | see changesets | ||||||||||||
| ||||||||||||||
2022-06-08 | The error codes of the API operation change.,The input parameters of the API operation change. | see changesets | ||||||||||||
|