更新时间:2022-06-15 GMT+08:00
分享

查询workflow

功能介绍

查询特定流程详情。

URI

GET /v1/workflows/{workflow_id}

表1 参数说明

参数

是否必选

参数类型

描述

workflow_id

String

流程id,即创建workflow的返回值。

get_archive

Boolean

是否获取流程内容,默认为false。

支持的取值:

  • "1", "t", "T", "true", "TRUE", "True":表示需要删除集群。
  • "0", "f", "F", "false", "FALSE", "False":表示不删除集群。

请求消息

请求示例

GET /v1/workflows/0e7196ae-fdbf-84e4-d751-28554dcd7572 HTTP/1.1 
Host:Host Server   
Content-Type:application/json

响应消息

响应参数

响应中含有一个流程结构,结构如表2所示。

表2 流程结构

参数

参数类型

描述

id

String

流程ID。

name

String

流程名称。

description

String

流程描述。

vendor

String

流程发布者。

scope

String

流程范围。

project_id

String

流程所属项目ID。

domain_id

String

流程所属租户ID。

domain

String

流程所属租户名称。

create_at

String

流程创建时间。

update_at

String

流程更新时间。

workflow_url

String

流程存储于obs中的url。

logo

String

流程logo。

image

String

流程拓扑图。

archive

String

流程内容。

enterprise_project

表3 object

企业项目信息

表3 enterprise_project

参数

参数类型

描述

id

String

企业项目id

name

String

企业项目的名称

响应示例

{
  "workflow": {
    "id": "3323db80-d1f6-9295-e8be-0242cdfc38e9",
    "name": "gcs-workflow",
    "description": "gcs description",
    "vendor": "gcs-user",
    "scope": "domain",
    "domain": "gcs-user",
    "domain_id": "b0148a2********89b477bab429e48e7",
    "project_id": "c51567523*********a8a81ede51894ac",
    "create_at": "2018-08-16T08:49:40Z",
    "update_at": "2018-08-16T08:49:40Z",
    "workflow_url": "https://geneworkflows-cn-north-4-b0148a2cb4f347289b477bab429e48e7.obs.cn-north-4.myhuaweicloud.com:443/gcs-user/gcs-workflow.yaml",
    "logo": "hw-gcs-logo-southchina-b0148a2cb4f347289b477bab429e48e7:gcs-wf-Desert.jpg",
    "image": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" width=\"\" height=\"\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0,0,345,240\"><g id=\"v-3\" class=\"viewport\" transform=\"translate(-935, -440)scale(3)\"><g id=\"j_1\" model-id=\"5b153a32-7cf6-4bf1-88f8-794cb3480302\" class=\"element Composer ambassador:0-35-1\" magnet=\"true\" fill=\"#FFFFFF\" stroke=\"none\" name=\"ambassador4z2sf\" transform=\"translate(324.9999870856608,159.9999936421715)\"><g id=\"v-5\"><rect class=\"body\" id=\"v-8\" stroke=\"#7abbf7\" stroke-width=\"1\" width=\"90\" height=\"60\" rx=\"10\" ry=\"10\"></rect><image id=\"v-7\" xlink:href=\"/gcs/designer/svg/default/4.png\" width=\"36\" height=\"36\" transform=\"translate(27,2)\"></image><g class=\"inPorts\"></g><g class=\"outPorts\" id=\"v-15\"><g class=\"port port0\" id=\"v-6\" transform=\"translate(90,16)\"><circle class=\"port-body\" id=\"v-9\" r=\"5\" magnet=\"true\" stroke=\"#208263\" fill=\"#E74C3C\" port=\"HuaweiCloud.RelatedToLink-*\"></circle><text class=\"port-label\" display=\"null\" id=\"v-12\" y=\"0.8em\" xml:space=\"preserve\"><tspan dy=\"0em\" x=\"0\" id=\"v-13\" class=\"v-line\">HuaweiCloud.RelatedToLink-*</tspan></text></g></g><text class=\"icon-sup-text\" id=\"v-10\" font-size=\"8px\" font-family=\"'helvetica neue', roboto, arial, 'droid sans', sans-serif\" fill=\"#666666\" pointer-events=\"none\" text-anchor=\"middle\" transform=\"translate(45,49)\"></text><text class=\"icon-text\" id=\"v-11\" font-size=\"9px\" font-family=\"'helvetica neue', roboto, arial, 'droid sans', sans-serif\" font-weight=\"bold\" fill=\"black\" pointer-events=\"none\" text-anchor=\"middle\" y=\"0.8em\" display=\"null\" xml:space=\"preserve\" transform=\"translate(45,40)\"><tspan dy=\"0em\" x=\"0\" id=\"v-14\" class=\"v-line\">ambassador4z2sf</tspan></text></g></g></g></svg>",
    "enterprise_project":{"id":"0", "name":"default"}
  }
}

状态码

  • 正常

    状态码如表4所示。

表4 状态码

状态码

描述

200

流程查询成功。

分享:

    相关文档

    相关产品