GetDataAgentSubAccountInfo

Updated at:

Retrieves information about a RAM user that belongs to an Alibaba Cloud account.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

DmsUnit

string

No

The current DMS unit.

cn-hangzhou

SubAccountId

string

No

The UID of the RAM user.

20282*****7591

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

67E910F2-***-695C

Success

boolean

Indicates whether the request was successful.

true

ErrorMessage

string

The error message returned if the call fails.

Specified parameter is not valid.

ErrorCode

string

The error code.

DMS-DA-40114

Data

object

The returned data structure.

UserName

string

The name of the queried RAM user.

yunqitest

UserId

string

The UID of the queried RAM user.

20282*****7591

CreateDate

integer

The time when the user was created in RAM. This is a UNIX timestamp in seconds.

1765960516

UpdateDate

integer

The time when the user information was last updated. This is a UNIX timestamp in seconds.

1765962516

MainAccountId

string

The ID of the Alibaba Cloud account to which the user belongs.

167*****166

Examples

Success response

JSON format

{
  "RequestId": "67E910F2-***-695C",
  "Success": true,
  "ErrorMessage": "Specified parameter is not valid.",
  "ErrorCode": "DMS-DA-40114",
  "Data": {
    "UserName": "yunqitest",
    "UserId": "20282*****7591\n",
    "CreateDate": 1765960516,
    "UpdateDate": 1765962516,
    "MainAccountId": "167*****166"
  }
}

Error codes

See for a complete list.

Release notes

See Release Notes for a complete list.