Queries secure access proxies.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListProxies

The operation that you want to perform. Set the value to ListProxies.

Tid Long No 3***

The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID.

RegionId String No cn-hangzhou

The region in which DMS is activated. For more information, see RegionID parameter.

Response parameters

Parameter Type Example Description
RequestId String 5812180E-555F-5F90-BE4F-280576F4****

The ID of the request.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
ErrorMessage String User can not access to Tenant [123445]

The error message returned.

ErrorCode String UnknownError

The error code returned.

ProxyList Array of ProxyList

An array that consists of secure access proxies.

ProxyId Long 4**

The ID of the secure access proxy.

CreatorId Long 12****

The ID of the user who enabled the secure access proxy feature.

CreatorName String test_name

The nickname of the user who enabled the secure access proxy feature.

InstanceId Long 183****

The ID of the database instance.

PrivateEnable Boolean true

Indicates whether the internal endpoint is enabled. Default value: true.

PrivateHost String dphzmy-5j8oimjsz6ze****.proxy.dms.aliyuncs.com

The internal endpoint.

PublicEnable Boolean false

Indicates whether the public endpoint is enabled. Valid values:

  • true: The public endpoint is enabled.
  • false: The public endpoint is disabled.
PublicHost String dphzmy-5j8oimjsz6ze****-pub.proxy.dms.aliyuncs.com

The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled.

Note
  • If the value of the PublicEnable parameter is true, a valid public endpoint that can be resolved by using Alibaba Cloud DNS (DNS) is returned.
  • If the value of the PublicEnable parameter is false, an invalid public endpoint that cannot be resolved by using DNS is returned.
MysqlPort Integer 3306

The port that was used by MySQL clients to connect to the database instance.

HttpsPort Integer 443

The port that was used by HTTPS clients to connect to the database instance.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=ListProxies
&Tid=3***
&Common request parameter

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListProxiesResponse>
    <ProxyList>
        <PublicHost>dphzmy-5j8oimjsz6ze****-pub.proxy.dms.aliyuncs.com</PublicHost>
        <PrivateHost>dphzmy-5j8oimjsz6ze****.proxy.dms.aliyuncs.com</PrivateHost>
        <InstanceId>183****</InstanceId>
        <ProxyId>4**</ProxyId>
        <CreatorId>12****</CreatorId>
        <MysqlPort>3306</MysqlPort>
        <PrivateEnable>true</PrivateEnable>
        <CreatorName>test_name</CreatorName>
        <PublicEnable>false</PublicEnable>
        <HttpsPort>443</HttpsPort>
    </ProxyList>
    <ProxyList>
        <PublicHost>dphzmy-vwjxfkclz17bb7y****.proxy.dms.aliyuncs.com</PublicHost>
        <PrivateHost>dphzmy-vwjxfkclz17b****.proxy.dms.aliyuncs.com</PrivateHost>
        <InstanceId>164****</InstanceId>
        <ProxyId>4*</ProxyId>
        <CreatorId>47****</CreatorId>
        <MysqlPort>3306</MysqlPort>
        <PrivateEnable>true</PrivateEnable>
        <CreatorName>test1_name</CreatorName>
        <PublicEnable>true</PublicEnable>
        <HttpsPort>443</HttpsPort>
    </ProxyList>
    <RequestId>5812180E-555F-5F90-BE4F-280576F4****</RequestId>
    <Success>true</Success>
</ListProxiesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "ProxyList" : [ {
    "PublicHost" : "dphzmy-5j8oimjsz6ze****-pub.proxy.dms.aliyuncs.com",
    "PrivateHost" : "dphzmy-5j8oimjsz6ze****.proxy.dms.aliyuncs.com",
    "InstanceId" : "183****",
    "ProxyId" : "4**",
    "CreatorId" : "12****",
    "MysqlPort" : 3306,
    "PrivateEnable" : true,
    "CreatorName" : "test_name",
    "PublicEnable" : false,
    "HttpsPort" : 443
  }, {
    "PublicHost" : "dphzmy-vwjxfkclz17bb7y****.proxy.dms.aliyuncs.com",
    "PrivateHost" : "dphzmy-vwjxfkclz17b****.proxy.dms.aliyuncs.com",
    "InstanceId" : "164****",
    "ProxyId" : "4*",
    "CreatorId" : "47****",
    "MysqlPort" : 3306,
    "PrivateEnable" : true,
    "CreatorName" : "test1_name",
    "PublicEnable" : true,
    "HttpsPort" : 443
  } ],
  "RequestId" : "5812180E-555F-5F90-BE4F-280576F4****",
  "Success" : true
}

Error codes

For a list of error codes, visit the API Error Center.