更新时间:2021-12-17 GMT+08:00
分享

查看模板详情

功能介绍

查看模板的详细信息。

URI

  • URI格式
    GET /softcomai/datalake/dataplan/v1.0/templates/{templateId}?
    templateType=PRIVATE
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    templateId

    String

    模板的ID。

请求

  • 请求样例
    GET https://ipaddr:port/softcomai/datalake/dataplan/v1.0/templates/20190529104713-508150574
  • 参数说明

    无。

响应

  • 响应样例
    {
    "success": true,
    "returnData": {
    "sourceId": "20190523144150-1830503420",
    "templateType": "PRIVATE",
    "id": "20190529104713-508150574",
    "name": "ProgressTest001",
    "description": "描述信息XXXXXXXXXXXXXXXXXXXXXXXXX001",
    "userId": "SoftcomAI_Integration_Test2__zWXxxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "2019-05-29 10:47:17",
    "updateTime": "2019-05-29 10:47:17",
    "tasks": [
    {
    "id": "5041049077285072253",
    "taskName": "测试任务名称001",
    "taskType": "COLLECTION",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zxxxx1819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "0",
    "rootTask": "false",
    "createTime": "20190522153704",
    "updateTime": "20190522153704",
    "script": {
    "id": "6864867852705616838",
    "scriptName": "脚本script2324354356435345001",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345001.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "9118554573133384423",
    "paramName": "INPUT_PARAM002",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2_xxxx11819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153704",
    "updateTime": "20190522153704",
    "taskId": "5041049077285072253"
    },
    {
    "id": "1005362129699899014",
    "paramName": "INPUT_PARAM001",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__xxx1819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153704",
    "updateTime": "20190522153704",
    "taskId": "5041049077285072253"
    }
    ],
    "children": [
    {
    "id": "6325366996242114818",
    "taskName": "子任务001",
    "taskType": "COLLECTION",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "5041049077285072253",
    "rootTask": "false",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "script": {
    "id": "165927269734196768",
    "scriptName": "脚本script2324354356435345005",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345005.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zxxxx11819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "855224363355232351",
    "paramName": "INPUT_PARAM009",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "6325366996242114818"
    },
    {
    "id": "3053483553969374228",
    "paramName": "INPUT_PARAM010",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWXxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "6325366996242114818"
    }
    ],
    "children": []
    }
    ]
    },
    {
    "id": "7566746559208028173",
    "taskName": "测试任务名称002",
    "taskType": "PARSE",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "0",
    "rootTask": "false",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "timeout": "3600",
    "script": {
    "id": "9178550171786432559",
    "scriptName": "脚本script2324354356435345002",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345002.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "795192238879417314",
    "paramName": "INPUT_PARAM004",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "taskId": "7566746559208028173"
    },
    {
    "id": "607892277704561887",
    "paramName": "INPUT_PARAM003",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "taskId": "7566746559208028173"
    }
    ],
    "children": [
    {
    "id": "2903740582528031695",
    "taskName": "子任务002",
    "taskType": "PARSE",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "7566746559208028173",
    "rootTask": "false",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "script": {
    "id": "7269994768554204697",
    "scriptName": "脚本script2324354356435345006",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345006.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zxxxx1819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "5712910118398756979",
    "paramName": "INPUT_PARAM014",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx1819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "2903740582528031695"
    },
    {
    "id": "8497711305640935650",
    "paramName": "INPUT_PARAM013",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "2903740582528031695"
    }
    ],
    "children": []
    }
    ]
    },
    {
    "id": "2899630813357002320",
    "taskName": "测试任务名称003",
    "taskType": "GOVERN",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "0",
    "rootTask": "false",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "script": {
    "id": "1256909959601939076",
    "scriptName": "脚本script2324354356435345003",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345003.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx9",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "1112664774235782888",
    "paramName": "INPUT_PARAM006",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zxxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "taskId": "2899630813357002320"
    },
    {
    "id": "5737476469338429701",
    "paramName": "INPUT_PARAM005",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "taskId": "2899630813357002320"
    }
    ],
    "children": [
    {
    "id": "5345618201072157486",
    "taskName": "子任务003",
    "taskType": "GOVERN",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "2899630813357002320",
    "rootTask": "false",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "script": {
    "id": "6488229954346727009",
    "scriptName": "脚本script2324354356435345007",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345007.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "8703032920434237793",
    "paramName": "INPUT_PARAM015",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "5345618201072157486"
    },
    {
    "id": "3637464887133181713",
    "paramName": "INPUT_PARAM016",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "5345618201072157486"
    }
    ],
    "children": []
    }
    ]
    },
    {
    "id": "4168595688049445861",
    "taskName": "测试任务名称004",
    "taskType": "TRAIN",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zWxxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "0",
    "rootTask": "false",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "script": {
    "id": "6703267881111429405",
    "scriptName": "脚本script2324354356435345004",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345004.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zWxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "974807446921025076",
    "paramName": "INPUT_PARAM008",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "taskId": "4168595688049445861"
    },
    {
    "id": "844479996767912831",
    "paramName": "INPUT_PARAM007",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zxxxx1819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522153927",
    "updateTime": "20190522153927",
    "taskId": "4168595688049445861"
    }
    ],
    "children": [
    {
    "id": "3255563540945805073",
    "taskName": "子任务004",
    "taskType": "TRAIN",
    "isKeyTask": "true",
    "userId": "SoftcomAI_Integration_Test2__zxxxxx1819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "pId": "4168595688049445861",
    "rootTask": "false",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "timeout": "3600",
    "script": {
    "id": "4955348224269049438",
    "scriptName": "脚本script2324354356435345008",
    "scriptType": "SCRIPTTYPR_IN",
    "scriptVersion": "1.0",
    "scriptPath": "/opt/script/script2324354356435345008.py",
    "scriptDesc": "脚本描述XXXXXX",
    "userId": "SoftcomAI_Integration_Test2__zxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522161002",
    "updateTime": "20190522161002"
    },
    "paramList": [
    {
    "id": "4965326247186677576",
    "paramName": "INPUT_PARAM017",
    "paramType": "OUTPUT_TYPE",
    "paramValue": "out.csv",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zxxxx819",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "3255563540945805073"
    },
    {
    "id": "3240368515593442549",
    "paramName": "INPUT_PARAM018",
    "paramType": "INPUT_TYPE",
    "paramValue": "/etc/test/int.out",
    "appendType": "FILE_TYPE",
    "userId": "SoftcomAI_Integration_Test2__zxxxx19",
    "tenantId": "SoftcomAI_Integration_Test2",
    "createTime": "20190522154312",
    "updateTime": "20190522154312",
    "taskId": "3255563540945805073"
    }
    ],
    "children": []
    }
    ]
    }
    ]
    }
    }
  • 要素说明

    参数名

    参数类型

    备注

    success

    String

    请求是否成功。

    returnData

    JSON

    返回体。

    id

    String

    模板ID。

    sourceId

    String

    源ID。

    templateType

    String

    模板类型,取值包括如下:

    • PUBLIC:表示公共模板。
    • PRIVATE:表示私有模板。

    name

    String

    模板名称。

    description

    String

    模板描述。

    createTime

    String

    创建时间。

    updateTime

    String

    更新时间。

    userId

    String

    模式,暂无用。

    tenantId

    String

    由目录ID组成的从树根部到节点目录的路径字符串。

    tasks

    JSONLIST

    任务列表。

    id (tasks)

    String

    任务ID。

    taskName

    String

    任务名称。

    taskType

    String

    任务类型。

    isKeyTask

    String

    是否是关键任务。

    pId

    String

    任务的父ID。

    rootTask

    String

    是否是根任务。

    createTime (tasks)

    String

    创建时间。

    updateTime (tasks)

    String

    更新时间。

    script

    JSON

    脚本。

    id (script)

    String

    脚本ID。

    scriptName (script)

    String

    脚本名称。

    scriptType (script)

    String

    脚本类型。

    scriptPath (script)

    String

    脚本路径。

    userId (script)

    String

    用户信息。

    createTime (script)

    String

    脚本创建时间。

    updateTime (script)

    String

    脚本更新时间。

    children

    String

    子任务。

    paramList

    JSON

    参数列表。

    id (paramList)

    String

    参数的ID。

    paramName (paramList)

    String

    参数名称。

    paramType (paramList)

    String

    参数类型。

    paramValue (paramList)

    String

    参数值。

    appendType (paramList)

    JSON

    参数扩展类型。

状态码

具体请参考状态码

分享:

    相关文档

    相关产品