Queries the distribution of node types.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | GetFileTypeStatistic | The operation that you want to perform. Set the value to GetFileTypeStatistic. |
ProjectId | Long | Yes | 123465 | The DataWorks workspace ID. You can log on to the DataWorks console and go to the Work space page to obtain the workspace ID. |
ProjectEnv | String | Yes | PROD | The environment of the workspace. Valid values: DEV and PROD. The value DEV indicates the development environment, and the value PROD indicates the production environment. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF | The request ID. |
ProgramTypeAndCounts | Array of ProgramTypeAndCount | An array of node types and quantity. | |
Count | Integer | 1 | The number of nodes. |
ProgramType | String | ODPS_SQL | The type of the node. Valid values: 6 (Shell), 10 (ODPS SQL), 11 (ODPS MR), 23 (Data Integration), 24 (ODPS Script), 99 (zero load), 221 (PyODPS 2), 225 (ODPS Spark), 227 (EMR Hive), 228 (EMR Spark), 229 (EMR Spark SQL), 230 (EMR MR), 239 (OSS object inspection), 257 (EMR Shell), 258 (EMR Spark Shell), 259 (EMR Presto), 260 (EMR Impala), 900 (real-time synchronization), 1089 (cross-tenant collaboration), 1091 (Hologres development), 1093 (Hologres SQL), 1100 (assignment), and 1221 (PyODPS 3) |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetFileTypeStatistic
&ProjectEnv=PROD
&ProjectId=123465
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<RequestId>SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF</RequestId>
<ProgramTypeAndCounts>
<Count>1</Count>
<ProgramType>ODPS_SQL</ProgramType>
</ProgramTypeAndCounts>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF",
"ProgramTypeAndCounts" : {
"Count" : 1,
"ProgramType" : "ODPS_SQL"
}
}
Error codes
For a list of error codes, see Service error codes.