All Products
Search
Document Center

ApsaraDB RDS:GetDbProxyInstanceSsl

Last Updated:Dec 05, 2024

Queries the SSL encryption settings for a dedicated proxy endpoint of an ApsaraDB RDS for MySQL instance.

Operation description

Supported database engines

RDS MySQL

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
rds:GetDbProxyInstanceSslget
*DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DbInstanceIdstringYes

The instance ID. You can call the DescribeDBInstances operation to query the instance ID.

rm-t4n3axxxxx
DBProxyEngineTypestringNo

A reserved parameter. You do not need to specify this parameter.

normal

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

D330E60C-8AAA-4D63-8F64-5B78F4692F98
DbProxyCertListItemsarray<object>

An array that consists of SSL encryption settings.

DbProxyCertListItemsobject
DbInstanceNamestring

The instance ID.

rm-t4n3axxxxx
EndpointNamestring

The ID of the dedicated proxy endpoint.

buxxxxxxx
EndpointTypestring

The default identifier of the dedicated proxy endpoint. The value is fixed as RWSplit.

RWSplit
SslExpiredTimestring

The time at which the certificate expires.

2021-12-16T08:43:20Z
CertCommonNamestring

The dedicated proxy endpoint for which SSL encryption is enabled.

test1234.rwlb.rds.aliyuncs.com

Examples

Sample success responses

JSONformat

{
  "RequestId": "D330E60C-8AAA-4D63-8F64-5B78F4692F98",
  "DbProxyCertListItems": {
    "DbProxyCertListItems": [
      {
        "DbInstanceName": "rm-t4n3axxxxx",
        "EndpointName": "buxxxxxxx",
        "EndpointType": "RWSplit",
        "SslExpiredTime": "2021-12-16T08:43:20Z",
        "CertCommonName": "test1234.rwlb.rds.aliyuncs.com"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidVpcInstanceIdThe specified VPC instance ID is invalid.-
400InvalidDBInstanceNameSpecified 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.
403IncorrectDBInstanceTypeThe current database instance type does not support the operation.This operation is not supported for the database engine of the current instance.
404InvalidDBInstance.NotFoundThe specified instance does not exist or is not supported.The RDS instance cannot be found. Check the ID or name of the RDS instance.
404Endpoint.NotFoundThe specified endpoint is not found.-
404InvalidDBInstanceName.NotFoundThe database instance does not exist.The name of the RDS instance cannot be found. Check the name of the RDS instance.
404Maxscale.NotFoundThe related maxscale instance is not found.The operation failed. No associated MaxScale instances can be found.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-09The Error code has changedView Change Details
2023-12-19API Description Update. The Error code has changedView Change Details
2022-06-23API Description Update. The Error code has changedView Change Details
2022-06-08The Error code has changed. The request parameters of the API has changedView Change Details