All Products
Search
Document Center

Data Management:ListUserOwnedResources

Last Updated:Aug 28, 2026

Queries the list of resources owned by a specified user.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dms:ListUserOwnedResources

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Tid

integer

No

The ID of the tenant.

Note

To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see the View information about the current tenant section of the "Manage DMS tenants" topic.

3***

UserId

string

Yes

The ID of the user.

1***

DatabaseName

string

No

The database name.

db_name

OwnerType

string

Yes

The type of the owner. Valid values:

  • INSTANCE: an owner of an instance.

  • DATABASE: an owner of a physical database.

  • TABLE: an owner of a physical table.

INSTANCE

Logic

boolean

No

Whether the database is a logical database. Valid values:

  • true: The database is a logical database.

  • false: The database is a physical database.

false

EnvType

string

No

The environment type of the database instance. Valid values:

  • product: production environment.

  • dev: development environment.

  • pre: pre-release environment.

  • test: test environment.

  • sit: system integration testing (SIT) environment.

  • uat: user acceptance testing (UAT) environment.

  • pet: stress testing environment.

  • stag: staging environment.

product

DbType

string

No

The database engine type. For valid values, see DbType parameter.

MySQL

PageNumber

integer

No

The page number.

1

PageSize

integer

No

The number of entries to return on each page.

10

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of entries returned. By default, this parameter is not returned.

1

RequestId

string

The request ID, which you can use to locate logs and troubleshoot issues.

8E88933E-E3D4-5BA8-8CBF-0A1CAEXXXXXX

ErrorCode

string

The error code returned if the request failed.

UnknownError

ErrorMessage

string

The error message returned if the request failed.

UnknownError

Data

object

resourceList

array<object>

Indicates whether the request was successful. Valid values:

object

The data returned.

InstanceId

string

The ID of the instance.

291XXX

DbId

string

The ID of the database in DMS.

29697XXX

SchemaName

string

The name of the database.

as_task_engine

Logic

boolean

Indicates whether the database is a logical database. Valid values:

  • true: The database is a logical database

  • false: The database is a physical database.

false

SearchName

string

The query name of the database.

dtstest [dtstest_dms]

TableName

string

The table name.

addepmap

EnvType

string

The type of the environment to which the database instance belongs.

product

DbType

string

The database engine type. For valid values, see DbType parameter.

MySQL

TableId

string

The table ID.

1760934XXX

Alias

string

The alias of the instance.

DMS_GYX_TESTupdata

Host

string

The endpoint of the instance to which the database belongs.

rm-wz98XXXXXX1303c5.mysql.rds.aliyuncs.com

Port

integer

The connection port of the instance to which the database belongs.

6379

DbInstanceId

string

The ID of the instance to which the database belongs.

876XXX

Success

boolean

Indicates whether the request was successful.

true

Examples

Success response

JSON format

{
  "TotalCount": 1,
  "RequestId": "8E88933E-E3D4-5BA8-8CBF-0A1CAEXXXXXX",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Data": {
    "resourceList": [
      {
        "InstanceId": "291XXX",
        "DbId": "29697XXX",
        "SchemaName": "as_task_engine",
        "Logic": false,
        "SearchName": "dtstest [dtstest_dms]",
        "TableName": "addepmap",
        "EnvType": "product",
        "DbType": "MySQL",
        "TableId": "1760934XXX",
        "Alias": "DMS_GYX_TESTupdata",
        "Host": "rm-wz98XXXXXX1303c5.mysql.rds.aliyuncs.com",
        "Port": 6379,
        "DbInstanceId": "876XXX"
      }
    ]
  },
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.