All Products
Search
Document Center

Data Management:GetProxyAccess

Last Updated:Oct 21, 2024

Queries the authorization information about the secure access proxy feature.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProxyAccessIdlongYes

The ID that Data Management (DMS) generates after the user is authorized to enable the secure access proxy feature for an instance. The ID is unique in DMS. You can call the ListProxyAccesses operation to query the ID.

1
TidlongNo

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

3***

Response parameters

ParameterTypeDescriptionExample
object

The schema of the response.

RequestIdstring

The ID of the request.

3CDB8601-AD74-4A47-8114-08E08CD6****
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
ErrorMessagestring

The error message returned if the request failed.

The specified user not exists.
ErrorCodestring

The error code.

UserNotExist
ProxyAccessobject

The authorization information about the secure access proxy feature.

ProxyAccessIdlong

The ID that DMS generates after the user is authorized to enable the secure access proxy feature for an instance. The ID is unique in DMS. You can call the ListProxyAccesses operation to query the ID.

2002
GmtCreatestring

The time when the user is authorized to enable the secure access proxy feature for an instance.

1643034647
AccessIdstring

The username of the database account that is authorized to enable the secure access proxy feature for an instance.

hObpgEXoca42q***
OriginInfostring

The method that is used to authorize the user to enable the secure access proxy feature for an instance. Valid values:

  • Authorization by the Alibaba Cloud Account (): The information in the parentheses () indicates the ID of the Alibaba Cloud account.
  • Authorization by submitting the ticket ():The information in the parentheses () indicates the number of the ticket that the user submits to apply for permissions.
Authorization by the Alibaba Cloud account (29490401597700\*\*\*\*)
IndepAccountstring

The username of the independent database account.

***
UserIdlong

The ID of the user.

12***
UserUidstring

The ID of the Alibaba Cloud account.

25936669186260****
UserNamestring

The nickname of the user.

user
ProxyIdlong

The ID of the secure access proxy.

Note You can call the ListProxies operation to query the ID of the secure access proxy.
1905
InstanceIdlong

The ID of the instance for which the secure access proxy feature is enabled.

1922545

Examples

Sample success responses

JSONformat

{
  "RequestId": "3CDB8601-AD74-4A47-8114-08E08CD6****",
  "Success": true,
  "ErrorMessage": "The specified user not exists.",
  "ErrorCode": "UserNotExist",
  "ProxyAccess": {
    "ProxyAccessId": 2002,
    "GmtCreate": "1643034647",
    "AccessId": "hObpgEXoca42q***",
    "OriginInfo": "Authorization by the Alibaba Cloud account (29490401597700\\*\\*\\*\\*)\n",
    "IndepAccount": "***",
    "UserId": 0,
    "UserUid": "25936669186260****",
    "UserName": "user",
    "ProxyId": 1905,
    "InstanceId": 1922545
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history