文档

GetNode - 获取节点详情

更新时间:

获取节点的详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
NodeIdlong

节点的 ID。您可以调用 ListNodes 接口查看 NodeId 的相关信息。

1234
ProjectEnvstring

工作空间的环境,包括 PROD 和 DEV。

PROD

返回参数

名称类型描述示例值
object

返回实体。

HttpStatusCodeinteger

HTTP 状态码。

200
RequestIdstring

请求的 ID,用于定位日志,排查问题。

E6F0DBDD-5AD****
ErrorMessagestring

错误信息。

The connection does not exist.
ErrorCodestring

错误码。

Invalid.Tenant.ConnectionNotExists
Successboolean

调用是否成功。

true
Dataobject

节点的详情。

SchedulerTypestring

调度的类型,取值如下:

  • NORMAL:正常调度任务。
  • MANUAL:手动任务,不会被日常调度。
  • PAUSE:暂停任务。
  • SKIP:空跑任务,被日常调度,但启动调度时直接被置为成功。
NORMAL
RepeatIntervallong

出错后重新调度频率。

60
Repeatabilitystring

是否可以重复运行。

true
ProjectIdlong

工作空间的 ID。

1234
ProgramTypestring

节点的类型。

ODPS_SQL
Priorityinteger

任务优先级,1/3/5/7/8。

1
OwnerIdstring

负责人的 ID。

17366294****
Connectionstring

连接串。

odps_source_dev
ParamValuesstring

额外的参数。

a=b
RelatedFlowIdlong

关联业务流程 ID。

123
DqcTypeinteger

DQC 类型,0 表示没有关联 dqc,1 表示有关联 dqc。

1
BaselineIdlong

基线 ID。

123456
Descriptionstring

节点的描述信息。

test
NodeNamestring

节点的名称。

sql节点
ResGroupNamestring

资源组的名称。

默认资源组
BusinessIdlong

业务流程 ID。

123
DqcDescriptionstring

DQC 分区规则串。

[{"projectName":"test_0923001","tableName":"test_table_001","partition":"ds\u003d$[yyyymmdd]"},{"projectName":"test_0923001","tableName":"test_table_002","partition":"NOTAPARTITIONTABLE"}]
CronExpressstring

cron 表达式。

00 00 00 * * ?
NodeIdlong

节点的 ID。

1234
ResGroupIdentifierstring

资源组唯一标示。

group_123
FileTypeinteger

文件类型。不同文件类型其代码不同,详情请参见 DataWorks 节点合集

10

示例

正常返回示例

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,
    "FileId": 0,
    "FileVersion": 0,
    "DeployDate": 0,
    "CreateTime": 0,
    "ModifyTime": 0
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2024-05-30OpenAPI 返回结构发生变更查看变更详情
2023-06-05API 内部配置变更,不影响调用查看变更详情