DescribeParentInstance

Updated at:

Queries a list of unauthorized or authorized assets.

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

yundun-sddp:DescribeParentInstance

list

*All Resource

*

  • acs:ResourceGroupId
None

Request parameters

Parameter

Type

Required

Description

Example

CurrentPage

integer

No

The paging Settings for the current page number in a paged query. Default value: 1.

1

PageSize

integer

No

The paging Settings for the number of entries per page in a paged query. Default value: 10.

10

ServiceRegionId

string

No

The region where the asset resides. Valid values:

  • cn-beijing: China (Beijing).

  • cn-zhangjiakou: China (Zhangjiakou).

  • cn-huhehaote: China (Hohhot).

  • cn-hangzhou: China (Hangzhou).

  • cn-shanghai: China (Shanghai).

  • cn-shenzhen: China (Shenzhen).

  • cn-hongkong: Hong Kong (China).

cn-shanghai

EngineType

string

No

The engine type. Valid values:

  • MySQL

  • MariaDB

  • Oracle

  • PostgreSQL

  • SQLServer

MySQL

InstanceId

string

No

The instance ID of the asset to which the column data in the data asset table belongs.

rm-*******xx

DbName

string

No

The name of the database.

db_**t

ResourceType

integer

No

Required. The product type. Valid values:

  • 1: MaxCompute

  • 2: OSS

  • 3: ADB-MYSQL

  • 4: TableStore

  • 5: RDS

  • 6: SelfDB

  • 7: PolarDB-X

  • 8: PolarDB

  • 9: ADB-PG

  • 10: OceanBase

  • 11: MongoDB

  • 25: Redis

5

CheckStatus

integer

No

The status of the instance or the database connection under the instance. Valid values:

  • -3: database not created

  • -2: released

  • -1: not connected

  • 2: connectivity testing

  • 3: connected

  • 4: connection failed

3

ClusterStatus

string

No

The instance status. Valid values:

  • Running: running

  • Released: released

  • DatabaseNotCreated: database not created

Running

AuthStatus

integer

No

The authorization status of the data asset instance. Valid values:

  • 0: unauthorized

  • 1: authorized

0

MemberAccount

integer

No

The ID of the member accounts.

**********8103

Lang

string

No

The language of the request and response. Valid values:

  • zh_cn: Chinese (Simplified). Default value.

  • en_us: English (US).

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 paging Settings for the current page number in a paged query. Default value: 1.

1

PageSize

integer

The paging Settings for the maximum number of data asset instances displayed per page in a paged query. Default value: 10.

10

TotalCount

integer

The total number of entries returned.

3

Items

array<object>

The list of data assets.

object

The details of the asset.

InstanceId

string

The instance ID.

rm-*******t2vz

LocalName

string

The name of the region. Valid values:

  • China (Hangzhou)

  • China (Shanghai)

  • China (Beijing)

  • China (Zhangjiakou)

  • China (Shenzhen)

  • China (Guangzhou)

  • China (Hong Kong)

  • Singapore

  • US (Silicon Valley)

cn-hangzhou

EngineType

string

The engine type. Valid values:

  • MySQL

  • MariaDB

  • Oracle

  • PostgreSQL

  • SQLServer

MySQL

ParentId

string

The identifier of the authorized asset. For structured data, the identifier is in the Instance ID.Database name format.

rm-******xxx.**st

DbNum

string

The number of databases under the instance.

3

ClusterStatus

string

The instance status.

Running

TenantId

string

The ID of the tenant. This parameter is valid only for OceanBase assets.

HB***-zh_CN

TenantName

string

The name of the tenant. 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:

  • MaxCompute

  • OSS

  • ADB-MYSQL

  • TableStore

  • RDS

  • SelfDB

  • PolarDB-X

  • PolarDB

  • ADB-PG

  • OceanBase

  • MongoDB

  • Redis

RDS

UnConnectDbCount

string

The number of unconnected databases under the instance.

1

UnSupportOneClickAuthReason

string

The reason why one-click connection is not supported.

engine type not support

ConnectNode

string

The type of the connection node. This parameter is valid only for the MongoDB Asset Type.

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. Valid values:

  • 0: unauthorized

  • 1: authorized

1

InstanceSize

integer

The storage capacity of the instance. This parameter is valid only for the OSS Asset Type. Unit: bytes.

409600

AuditStatus

integer

The audit authorization status. Valid values:

  • 1: authorized

  • 0: unauthorized

1

MemberAccount

integer

The ID of the member accounts.

**********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": "cn-hangzhou",
      "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.