流水线 CODEARTS PIPELINE-创建插件版本:请求示例

时间:2023-11-28 18:59:45

请求示例

POST https://{endpoint}/v1/ce8df55870164338a72d7e828a966a2a/agent-plugin/create

{
  "plugin_name" : "apie_test",
  "display_name" : "apie_test",
  "version" : "0.0.2",
  "version_description" : "",
  "description" : "",
  "unique_id" : "ab43c83c2ae04000afd039ad894e953b",
  "business_type" : "Normal",
  "business_type_display_name" : "通用",
  "icon_url" : "",
  "runtime_attribution" : "agent",
  "input_info" : [ ],
  "execution_info" : {
    "inner_execution_info" : {
      "execution_type" : "COMPOSITE",
      "steps" : [ {
        "task" : "official_shell_plugin",
        "name" : "执行Shell",
        "identifier" : "16993543666638cda5035-4854-4bc8-a88a-e1465b1bcc7a",
        "variables" : {
          "OFFICIAL_SHELL_SCRIPT_INPUT" : "env"
        }
      } ]
    }
  }
}
support.huaweicloud.com/api-pipeline/CreatePluginVersion.html