调用ModifyDbProxyInstanceSsl接口设置独享代理连接地址SSL加密。
RDS提供数据库独享代理功能,您可以对独享代理连接地址进行SSL加密,保证数据的传输安全。
调用该接口时,实例必须满足以下条件:
- 实例已开通数据库独享代理功能。
- 独享代理内核小版本为1.12.8或以上。
- 实例版本如下:
- MySQL 8.0高可用版本地SSD盘(内核小版本20200831或以上)
- MySQL 5.7高可用版本地SSD盘(内核小版本20200831或以上)
- MySQL 5.6高可用版本地SSD盘(内核小版本20200831或以上)
说明 执行本接口操作会重启实例,请谨慎操作。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyDbProxyInstanceSsl |
系统规定参数,取值:ModifyDbProxyInstanceSsl。 |
DbInstanceId | String | 是 | rm-t4n3axxxxx |
实例ID。 |
DbProxyEndpointId | String | 是 | ta9um4xxxxx |
代理连接地址ID。可以通过接口DescribeDBProxyEndpoint查看。 |
DbProxyConnectString | String | 是 | test123456.rwlb.rds.aliyuncs.com |
需要开启SSL加密的地址。 |
DbProxySslEnabled | String | 是 | 1 |
对SSL加密执行的操作,取值:
说明 执行以上操作会重启实例,请谨慎操作。
|
RegionId | String | 否 | cn-hangzhou |
地域ID。可以通过接口DescribeRegions查看可用的地域ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | BF46A62B-3717-4397-9338-36BB95C898B3 |
请求ID。 |
示例
请求示例
http(s)://rds.aliyuncs.com/?Action=ModifyDbProxyInstanceSsl
&DbInstanceId=rm-t4n3axxxxx
&DbProxyEndpointId=ta9um4xxxxx
&DbProxyConnectString=test123456.rwlb.rds.aliyuncs.com
&DbProxySslEnabled=1
&<公共请求参数>
正常返回示例
XML
格式
<ModifyDbProxyInstanceSslResponse>
<RequestId>BF46A62B-3717-4397-9338-36BB95C898B3</RequestId>
</ModifyDbProxyInstanceSslResponse>
JSON
格式
{
"RequestId": "BF46A62B-3717-4397-9338-36BB95C898B3"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MinorVersionNotSupport | The current database minor version does not support the operation. | 当前小版本不支持该操作 |
400 | InvalidDbProxyStatus | The proxy status of the database is abnormal. | 当前数据库实例的代理状态不正常 |
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. | 后端服务未支持ssl |
404 | InvalidDbProxyConnectionString.NotFound | The specified database proxy connection string is not found. | 指定的数据库代理地址未找到 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交