Call the ListProgramTypeCount to query the distribution of node types.


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 Required ListProgramTypeCount

The operation that you want to perform.

ProjectEnv String Required PROD

The environment of the workspace, including projects in PROD and DEV.

ProjectId Long Yes 1234

The ID of the DataWorks workspace.

RegionId String Required cn-shanghai

The unique identifier of the zone.

Response parameters

Parameter Type Example Description
ProgramTypeAndCounts Array of ProgramTypeAndCount

The type and number of nodes.

Count Integer 3

The number of nodes.

ProgramType String ODPS_SQL

The type of the node.

RequestId String E6F0DBDD-5AD****

The ID of the request, which is used to locate logs and troubleshoot problems.


Sample requests

http(s)://[Endpoint]/? Action=ListProgramTypeCount
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "E6F0DBDD-5AD****",
    "ProgramTypeAndCounts": {
        "ProgramType": "ODPS_SQL",
        "Count": 3

Error codes

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