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

导入模板

功能介绍

导入模板功能。

URI

  • URI格式
    PUT /softcomai/datalake/dataplan/v1.0/templates/import?templateName={templateName}&isPublic={isPublic}&pId={catalogId}
  • 参数说明

    参数

    是否必选

    类型

    说明

    templateName

    String

    模板名称。

    isPublic

    String

    是否发布为公共模板。

    catalogId

    String

    目录ID。

请求

  • 请求样例
    PUT https://127.0.0.1:5555/softcomai/datalake/dataplan/v1.0/templates/import?templateName=贝塔模板导入&isPublic=true&pId=7978001867555836453
    {
    "action" : "publish",
    "actionParam" : {
    "name" : "POSTMAN测试发布公共模板",
    "description" : "POSTMAN测试发布公共模板",
    "pId": "4070886005386612775",
    "tag" : "",
    "uploadFileName" : ""
    }
    }
  • 参数说明

    参数

    是否必选

    类型

    说明

    uploadFileName

    文件

    上传的文件名。

响应

  • 成功响应样例
    {
    "success": true,
    "returnData": true
    }
  • 要素说明

    参数名

    参数类型

    备注

    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

    参数扩展类型。

状态码

具体请参考状态码

分享:

    相关文档

    相关产品