调用GetNode获取节点的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 |
类型 |
是否必选 |
示例值 |
描述 |
Action | String | 是 | GetNode | 系统规定参数。取值:GetNode。 |
NodeId | Long | 是 | 1234 | 节点的ID。您可以调用ListNodes接口查看NodeId的相关信息。 |
ProjectEnv | String | 是 | PROD | 工作空间的环境,包括PROD和DEV。 |
返回数据
名称 |
类型 |
示例值 |
描述 |
HttpStatusCode | Integer | 200 | HTTP状态码。 |
RequestId | String | E6F0DBDD-5AD**** | 请求的ID,用于定位日志,排查问题。 |
ErrorMessage | String | The connection does not exist. | 错误信息。 |
ErrorCode | String | Invalid.Tenant.ConnectionNotExists | 错误码。 |
Success | Boolean | true | 调用是否成功。 |
Data | Object | 节点的详情。 |
|
SchedulerType | String | NORMAL | 调度的类型,取值如下:
|
RepeatInterval | Long | 60 | 出错后重新调度频率。 |
Repeatability | String | true | 是否可以重复运行。 |
ProjectId | Long | 1234 | 工作空间的ID。 |
ProgramType | String | ODPS_SQL | 节点的类型。 |
Priority | Integer | 1 | 任务优先级,1/3/5/7/8。 |
OwnerId | String | 17366294**** | 负责人的ID。 |
Connection | String | odps_source_dev | 连接串。 |
ParamValues | String | a=b | 额外的参数。 |
RelatedFlowId | Long | 123 | 关联业务流程ID。 |
DqcType | Integer | 1 | DQC类型,0表示有关联dqc,1表示没有关联dqc。 |
BaselineId | Long | 123456 | 基线ID。 |
Description | String | test | 节点的描述信息。 |
NodeName | String | sql节点 | 节点的名称。 |
ResGroupName | String | 默认资源组 | 资源组的名称。 |
BusinessId | Long | 123 | 业务流程ID。 |
DqcDescription | String | [{"projectName":"test_0923001","tableName":"test_table_001","partition":"ds\u003d$[yyyymmdd]"},{"projectName":"test_0923001","tableName":"test_table_002","partition":"NOTAPARTITIONTABLE"}] | DQC分区规则串。 |
CronExpress | String | 00 00 00 * * ? | cron表达式。 |
NodeId | Long | 1234 | 节点的ID。 |
ResGroupIdentifier | String | group_123 | 资源组唯一标示。 |
FileType | Integer | 10 | 文件的代码类型。常用的代码及其对应的文件类型包括6(Shell)、10(ODPS SQL)、11(ODPS MR)、23(数据集成)、24(ODPS Script)、99(虚拟节点)、221(PyODPS 2)、225(ODPS Spark)、227(EMR Hive)、228(EMR Spark)、229(EMR Spark SQL)、230(EMR MR)、239(OSS对象检查)、257(EMR Shell)、258(EMR Spark Shell)、259(EMR Presto)、260(EMR Impala)、900(实时同步)、1089(跨租户节点)、1091(Hologres开发)、1093(Hologres SQL)、1100(赋值节点)、1221(PyODPS 3)。 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetNode
&NodeId=1234
&ProjectEnv=PROD
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetNodeResponse>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>E6F0DBDD-5AD****</RequestId>
<ErrorMessage>The connection does not exist.</ErrorMessage>
<ErrorCode>Invalid.Tenant.ConnectionNotExists</ErrorCode>
<Success>true</Success>
<Data>
<SchedulerType>NORMAL</SchedulerType>
<RepeatInterval>60</RepeatInterval>
<Repeatability>true</Repeatability>
<ProjectId>1234</ProjectId>
<ProgramType>ODPS_SQL</ProgramType>
<Priority>1</Priority>
<OwnerId>17366294****</OwnerId>
<Connection>odps_source_dev</Connection>
<ParamValues>a=b</ParamValues>
<RelatedFlowId>123</RelatedFlowId>
<DqcType>1</DqcType>
<BaselineId>123456</BaselineId>
<Description>test</Description>
<NodeName>sql节点</NodeName>
<ResGroupName>默认资源组</ResGroupName>
<BusinessId>123</BusinessId>
<DqcDescription>[{"projectName":"test_0923001","tableName":"test_table_001","partition":"ds\u003d$[yyyymmdd]"},{"projectName":"test_0923001","tableName":"test_table_002","partition":"NOTAPARTITIONTABLE"}]</DqcDescription>
<CronExpress>00 00 00 * * ?</CronExpress>
<NodeId>1234</NodeId>
<ResGroupIdentifier>group_123</ResGroupIdentifier>
<FileType>10</FileType>
</Data>
</GetNodeResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"HttpStatusCode" : 200,
"RequestId" : "E6F0DBDD-5AD****",
"ErrorMessage" : "The connection does not exist.",
"ErrorCode" : "Invalid.Tenant.ConnectionNotExists",
"Success" : true,
"Data" : {
"SchedulerType" : "NORMAL",
"RepeatInterval" : 60,
"Repeatability" : true,
"ProjectId" : 1234,
"ProgramType" : "ODPS_SQL",
"Priority" : 1,
"OwnerId" : "17366294****",
"Connection" : "odps_source_dev",
"ParamValues" : "a=b",
"RelatedFlowId" : 123,
"DqcType" : 1,
"BaselineId" : 123456,
"Description" : "test",
"NodeName" : "sql节点",
"ResGroupName" : "默认资源组",
"BusinessId" : 123,
"DqcDescription" : "[{\"projectName\":\"test_0923001\",\"tableName\":\"test_table_001\",\"partition\":\"ds\\u003d$[yyyymmdd]\"},{\"projectName\":\"test_0923001\",\"tableName\":\"test_table_002\",\"partition\":\"NOTAPARTITIONTABLE\"}]",
"CronExpress" : "00 00 00 * * ?",
"NodeId" : 1234,
"ResGroupIdentifier" : "group_123",
"FileType" : 10
}
}
错误码
访问错误中心查看更多错误码。
- 本页导读 (1)