Queries the list of resources owned by a specified user.
Try it now
Test
RAM authorization
|
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 |
| Logic |
boolean |
No |
Whether the database is a logical database. Valid values:
|
false |
| EnvType |
string |
No |
The environment type of the database instance. Valid values:
|
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:
|
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.