查询已创建的所有工作流。

请求信息

请求行 RequestLine

GET /gs/workflows  HTTP/1.1

特有请求头 RequestHead

无,请参考 公共请求头部

请求体 RequestBody

返回信息

返回行 ResponseLine

HTTP/1.1 200 OK

特有返回头 ResponseHead

无,请参考 公共返回头部

返回体 ResponseBody

{
  "jobs": [
    {
      "create_time": "2020-01-15T14:13:16Z",
      "cluster_id": "cb1a7214cfc0b41d9bb086affc2d8f51c",
      "job_name": "mapping-gpu-mhhgh"
    },
    {
      "create_time": "2020-01-15T13:19:26Z",
      "cluster_id": "cb1a7214cfc0b41d9bb086affc2d8f51c",
      "job_name": "mapping-gpu-98wt4"
    },
    {
      "create_time": "2020-01-15T13:18:52Z",
      "cluster_id": "cb1a7214cfc0b41d9bb086affc2d8f51c",
      "job_name": "wgs-gpu-qb4dk"
    }
  ]
}
表 1. 返回体解释
名称 类型 描述
cluster_id String 集群 ID
job_name String 工作流名称
create_time String 工作流创建时间

示例

请求示例(Python)

#!/usr/bin/env python
#coding=utf-8

from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.request import CommonRequest
import os
client = AcsClient(os.environ['accessKeyID'], os.environ['accessKeySecret'], 'cn-beijing')

request = CommonRequest()
request.set_accept_format('json')
request.set_method('GET')
request.set_protocol_type('https') # https | http
request.set_domain('cs.cn-beijing.aliyuncs.com')
request.set_version('2015-12-15')

request.add_query_param('RegionId', "cn-beijing")
request.add_header('Content-Type', 'application/json')
request.set_uri_pattern('/gs/workflows')

response = client.do_action_with_exception(request)

print(response)