Call this operation to query for assets and their authorization status.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeParentInstance |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CurrentPage |
integer |
No |
The number of the page to return for a paged query. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page for a paged query. Default value: 10. |
10 |
| ServiceRegionId |
string |
No |
The region where the asset resides. Valid values:
|
cn-shanghai |
| EngineType |
string |
No |
The type of the database engine. Valid values:
|
MySQL |
| InstanceId |
string |
No |
The ID of the data asset instance. |
rm-*******xx |
| DbName |
string |
No |
The name of the database. |
db_**t |
| ResourceType |
integer |
No |
This parameter is required. The type of the product. Valid values:
|
5 |
| CheckStatus |
integer |
No |
The connection status of the instance or a database in the instance. Valid values:
|
3 |
| ClusterStatus |
string |
No |
The instance status.
|
Running |
| AuthStatus |
integer |
No |
The authorization status of the data asset instance.
|
0 |
| MemberAccount |
integer |
No |
The ID of the member account. |
**********8103 |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:
|
zh_cn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
ACEF9334-BB50-525D-8CF3-6CF504E4D1B3 |
| CurrentPage |
integer |
The page number of the returned page. Default value: 1. |
1 |
| PageSize |
integer |
The maximum number of data asset instances returned on each page. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
3 |
| Items |
array<object> |
The list of queried data assets. |
|
|
object |
The details of a queried asset. |
||
| InstanceId |
string |
The instance ID. |
rm-*******t2vz |
| LocalName |
string |
The name of the region. The following list describes the valid values:
|
华东1(杭州) |
| EngineType |
string |
The type of the database engine. Valid values:
|
MySQL |
| ParentId |
string |
The identifier of the authorized asset. If the asset is structured data, the identifier is in the format of `Instance ID.Database name`. |
rm-******xxx.**st |
| DbNum |
string |
The number of databases in the instance. |
3 |
| ClusterStatus |
string |
The instance status. |
Running |
| TenantId |
string |
The tenant ID. This parameter is valid only for OceanBase assets. |
HB***-zh_CN |
| TenantName |
string |
The tenant name. This parameter is valid only for OceanBase assets. |
user1 |
| InstanceDescription |
string |
The description of the instance. |
instance description |
| ResourceType |
string |
The name of the asset type. Valid values:
|
RDS |
| UnConnectDbCount |
string |
The number of unconnected databases in the instance. |
1 |
| UnSupportOneClickAuthReason |
string |
The reason why one-click authorization is not supported. |
engine type not support |
| ConnectNode |
string |
The type of the connection node. This parameter is valid only for MongoDB assets. |
Primary |
| SupportConnectNodes |
string |
The supported connection nodes. Multiple nodes are separated by commas. |
Primary,Secondary |
| AuthStatus |
integer |
The authorization status of the data asset instance.
|
1 |
| InstanceSize |
integer |
The storage space of the instance. This parameter is valid only for OSS assets. Unit: bytes. |
409600 |
| AuditStatus |
integer |
The audit authorization status. Valid values:
|
1 |
| MemberAccount |
integer |
The ID of the member account. |
**********8103 |
| AuthTime |
integer |
The time when the instance was authorized. Unit: milliseconds. |
1719882941000 |
| RegionId |
string |
The region where the asset resides. |
cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "ACEF9334-BB50-525D-8CF3-6CF504E4D1B3",
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 3,
"Items": [
{
"InstanceId": "rm-*******t2vz",
"LocalName": "华东1(杭州)",
"EngineType": "MySQL",
"ParentId": "rm-******xxx.**st",
"DbNum": "3",
"ClusterStatus": "Running",
"TenantId": "HB***-zh_CN",
"TenantName": "user1",
"InstanceDescription": "instance description",
"ResourceType": "RDS",
"UnConnectDbCount": "1",
"UnSupportOneClickAuthReason": "engine type not support",
"ConnectNode": "Primary",
"SupportConnectNodes": "Primary,Secondary",
"AuthStatus": 1,
"InstanceSize": 409600,
"AuditStatus": 1,
"MemberAccount": 0,
"AuthTime": 1719882941000,
"RegionId": "cn-hangzhou"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.