Queries the ancestor or descendant nodes of a node. Only the ancestor or descendant nodes at the nearest level can be queried each time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListNodeInputOrOutput

The operation that you want to perform.

IoType String Yes output

The type of the nodes that you want to query. Valid values:

  • input: indicates that the nodes are ancestor nodes.
  • output: indicates that the nodes are descendant nodes.
NodeId Long Yes 12314567

The ID of the node. You can call the ListNodes operation to query the ID.

ProjectEnv String Yes PROD

The environment of the workspace. Valid values: DEV and PROD. The value DEV indicates the development environment. The value PROD indicates the production environment.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint used to call the operation.

Response parameters

Parameter Type Example Description
Data Array of Data

The ancestor or descendant nodes.

Data String xxxx.123141254_out

The name of the ancestor or descendant node.

NodeId Long 1234667

The ID of the node.

TableName String dwd_xxx_table

The name of the associated table.

ErrorCode String Invalid.Tenant.ProjectNotExists

The error code returned.

ErrorMessage String The project does not exist.

The error message returned.

HttpStatusCode Integer 200

The HTTP status code returned.

RequestId String E6F0DBDD-5AD****

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

Success Boolean true

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListNodeInputOrOutput
&IoType=output
&NodeId=12314567
&ProjectEnv=PROD
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<RequestId>E6F0DBDD-5AD****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>
    <TableName>dwd_xxx_table</TableName>
    <NodeId>1234667</NodeId>
    <Data>xxxx.123141254_out</Data>
</Data>
<ErrorCode>Invalid.Tenant.ProjectNotExists</ErrorCode>
<ErrorMessage>The project does not exist.</ErrorMessage>
<Success>true</Success>

JSON format

{
    "RequestId": "E6F0DBDD-5AD****",
    "HttpStatusCode": 200,
    "Data": {
        "TableName": "dwd_xxx_table",
        "NodeId": 1234667,
        "Data": "xxxx.123141254_out"
    },
    "ErrorCode": "Invalid.Tenant.ProjectNotExists",
    "ErrorMessage": "The project does not exist.",
    "Success": true
}

Error codes

For a list of error codes, visit the API Error Center.