调用GetDbProxyInstanceSsl接口查询独享代理连接地址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 | 是 | GetDbProxyInstanceSsl |
系统规定参数,取值:GetDbProxyInstanceSsl。 |
DbInstanceId | String | 是 | rm-t4n3axxxxx |
实例ID。 |
RegionId | String | 否 | cn-hangzhou |
地域ID。可以通过接口DescribeRegions查看可用的地域ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DbProxyCertListItems | Array of DbProxyCertListItems |
SSL加密信息列表。 |
|
DbProxyCertListItems | |||
CertCommonName | String | test1234.rwlb.rds.aliyuncs.com |
开启SSL加密的代理连接地址。 |
DbInstanceName | String | rm-t4n3axxxxx |
实例ID。 |
EndpointName | String | buxxxxxxx |
代理连接地址名称。 |
EndpointType | String | RWSplit |
默认代理连接地址终端标识。当前唯一取值:RWSplit。 |
SslExpiredTime | String | 2021-12-16T08:43:20Z |
证书过期时间。 |
RequestId | String | D330E60C-8AAA-4D63-8F64-5B78F4692F98 |
请求ID。 |
示例
请求示例
http(s)://rds.aliyuncs.com/?Action=GetDbProxyInstanceSsl
&DbInstanceId=rm-t4n3axxxxx
&<公共请求参数>
正常返回示例
XML
格式
<GetDbProxyInstanceSslResponse>
<RequestId>D330E60C-8AAA-4D63-8F64-5B78F4692F98</RequestId>
<DbProxyCertListItems>
<DbProxyCertListItems>
<EndpointName>buxxxxxxx</EndpointName>
<EndpointType>RWSplit</EndpointType>
<CertCommonName>test1234.rwlb.rds.aliyuncs.com</CertCommonName>
<SslExpiredTime>2021-12-16T08:43:20Z</SslExpiredTime>
<DbInstanceName>rm-t4n3axxxxx</DbInstanceName>
</DbProxyCertListItems>
</DbProxyCertListItems>
</GetDbProxyInstanceSslResponse>
JSON
格式
{
"RequestId": "D330E60C-8AAA-4D63-8F64-5B78F4692F98",
"DbProxyCertListItems": {
"DbProxyCertListItems": [
{
"EndpointName": "buxxxxxxx",
"EndpointType": "RWSplit",
"CertCommonName": "test1234.rwlb.rds.aliyuncs.com",
"SslExpiredTime": "2021-12-16T08:43:20Z",
"DbInstanceName": "rm-t4n3axxxxx"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidVpcInstanceId | The specified VPC instance ID is invalid. | 当前vpc instance id 无效 |
403 | IncorrectDBInstanceType | The current database instance type does not support the operation. | 当前db类型不支持该操作 |
404 | InvalidDBInstance.NotFound | The specified instance does not exist or is not supported. | 指定的实例不存在或不支持。 |
404 | Endpoint.NotFound | The specified endpoint is not found. | 指定的端点信息未找到 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交