调用GetNode获取节点的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetNode |
系统规定参数。取值:GetNode。 |
NodeId | Long | 是 | 1234 |
节点的ID。您可以调用ListNodes接口查看NodeId的相关信息。 |
ProjectEnv | String | 是 | PROD |
工作空间的环境,包括PROD和DEV。 |
RegionId | String | 是 | cn-shanghai |
地域信息,通常是服务所在的地域。例如,华东2(上海)是cn-shanghai,华北3(张家口)是cn-zhangjiakou。您无需填写RegionId,会根据调用的endpoint自动解析。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
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_first_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。 |
示例
请求示例
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_first_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>
</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_first_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
}
}
错误码
访问错误中心查看更多错误码。