获取工作空间下运行任务列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListRuns

系统规定参数。取值:ListRuns

Workspace String test-workspace

工作空间

Name String test-run

任务名字

Status String Running

状态

SubmissionId String sub-13BeXWnGvrOl3MC124tazcJVKaV

提交ID

Search String run-13BeYuxc0fxO24uA75UppTiMRoQ

搜索ID

LabelSelector String env=test

标签选择

AppName String MyApp

应用名称

NextToken String MTIzNDU2P1dvcmtzcGFjZT93cy1mMDE4OTgxNGU1ZTkK

查询起始位置

MaxResults Integer 10

最大返回个数

OrderBy String createtime

排序依据

IsReversed Boolean false

是否逆序

GetTotal Boolean false

是否返回所有任务条数

RegionId String c'n-beijing

区域

返回数据

名称 类型 示例值 描述
RequestId String DA980AD0-158F-44F3-847D-5EAB96C0EB6B

请求ID

HostId String easygene.cn-beijing.aliyuncs.com

主机ID

MaxResults Integer 10

最大返回结果

NextToken String MTIzNDU2P1dvcmtzcGFjZT93cy1mMDE4OTgxNGU1ZTkK

下次查询Token

TotalCount Integer 10

返回个数

Runs Array of Runs

任务列表

AppName String MyApp

应用名称

Source String EasyGene

应用来源

Namespace String Public

应用命名空间

AppOrigName String PublicApp

应用原名

Labels Map

任务标签

String test

标签

Name String test-run

任务名称

Revision String 1

应用版本号

RunId String run-13BeYuxc0fxO24uA75UppTiMRoQ

任务ID

Status String Running

任务状态

CreateTime String 2021-06-10T13:30:20.414557061Z

提交时间

StartTime String 2021-06-10T13:31:20.414557061Z

开始时间

EndTime String 2021-06-10T13:38:20.414557061Z

结束时间

SubmissionId String sub-13BeXWnGvrOl3MC124tazcJVKaV

提交ID

EntityName String s1

实体名称

EntityType String sample

实体对象ID

ExecuteDirectory String oss://my-bucket/my-execdir/

运行目录

ExecuteOptions Object

执行选项

CallCaching Boolean false

是否开启CallCaching

DeleteIntermediateResults Boolean false

是否删除中间文件

FailureMode String NoNewCalls

失败模式

Inputs String { "workflow1.task1.param1": "helloooo.txt", "workflow1.task1.param2": "abc", "workflow1.task2.param1": "new_helloooo.txt", "workflow1.task2.param2": "def" }

输入参数

DefaultRuntime String {}

默认运行时

Workspace String test-workspace

工作空间

RegionId String cn-beijing

区域

示例

请求示例

http(s)://[Endpoint]/?Action=ListRuns
&Workspace=test-workspace
&Name=test-run
&Status=Running
&SubmissionId=sub-13BeXWnGvrOl3MC124tazcJVKaV
&Search=run-13BeYuxc0fxO24uA75UppTiMRoQ
&LabelSelector=env=test
&AppName=MyApp
&NextToken=MTIzNDU2P1dvcmtzcGFjZT93cy1mMDE4OTgxNGU1ZTkK
&MaxResults=10
&OrderBy=createtime
&IsReversed=false
&GetTotal=false
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ListRunsResponse>
    <RequestId>DA980AD0-158F-44F3-847D-5EAB96C0EB6B</RequestId>
    <HostId>easygene.cn-beijing.aliyuncs.com</HostId>
    <MaxResults>10</MaxResults>
    <NextToken>MTIzNDU2P1dvcmtzcGFjZT93cy1mMDE4OTgxNGU1ZTkK</NextToken>
    <TotalCount>10</TotalCount>
    <Runs>
        <AppName>MyApp</AppName>
        <Source>EasyGene</Source>
        <Namespace>Public</Namespace>
        <AppOrigName>PublicApp</AppOrigName>
        <Labels>
            <key>test</key>
        </Labels>
        <Name>test-run</Name>
        <Revision>1</Revision>
        <RunId>run-13BeYuxc0fxO24uA75UppTiMRoQ</RunId>
        <Status>Running</Status>
        <CreateTime>2021-06-10T13:30:20.414557061Z</CreateTime>
        <StartTime>2021-06-10T13:31:20.414557061Z</StartTime>
        <EndTime>2021-06-10T13:38:20.414557061Z</EndTime>
        <SubmissionId>sub-13BeXWnGvrOl3MC124tazcJVKaV</SubmissionId>
        <EntityName>s1</EntityName>
        <EntityType>sample</EntityType>
        <ExecuteDirectory>oss://my-bucket/my-execdir/</ExecuteDirectory>
        <ExecuteOptions>
            <CallCaching>false</CallCaching>
            <DeleteIntermediateResults>false</DeleteIntermediateResults>
            <FailureMode>NoNewCalls</FailureMode>
        </ExecuteOptions>
        <Inputs>{     "workflow1.task1.param1": "helloooo.txt",     "workflow1.task1.param2": "abc",     "workflow1.task2.param1": "new_helloooo.txt",     "workflow1.task2.param2": "def" }</Inputs>
        <DefaultRuntime>{}</DefaultRuntime>
        <Workspace>test-workspace</Workspace>
        <RegionId>cn-beijing</RegionId>
    </Runs>
</ListRunsResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "DA980AD0-158F-44F3-847D-5EAB96C0EB6B",
  "HostId" : "easygene.cn-beijing.aliyuncs.com",
  "MaxResults" : 10,
  "NextToken" : "MTIzNDU2P1dvcmtzcGFjZT93cy1mMDE4OTgxNGU1ZTkK",
  "TotalCount" : 10,
  "Runs" : [ {
    "AppName" : "MyApp",
    "Source" : "EasyGene",
    "Namespace" : "Public",
    "AppOrigName" : "PublicApp",
    "Labels" : {
      "key" : "test"
    },
    "Name" : "test-run",
    "Revision" : "1",
    "RunId" : "run-13BeYuxc0fxO24uA75UppTiMRoQ",
    "Status" : "Running",
    "CreateTime" : "2021-06-10T13:30:20.414557061Z",
    "StartTime" : "2021-06-10T13:31:20.414557061Z",
    "EndTime" : "2021-06-10T13:38:20.414557061Z",
    "SubmissionId" : "sub-13BeXWnGvrOl3MC124tazcJVKaV",
    "EntityName" : "s1",
    "EntityType" : "sample",
    "ExecuteDirectory" : "oss://my-bucket/my-execdir/",
    "ExecuteOptions" : {
      "CallCaching" : false,
      "DeleteIntermediateResults" : false,
      "FailureMode" : "NoNewCalls"
    },
    "Inputs" : "{     \"workflow1.task1.param1\": \"helloooo.txt\",     \"workflow1.task1.param2\": \"abc\",     \"workflow1.task2.param1\": \"new_helloooo.txt\",     \"workflow1.task2.param2\": \"def\" }",
    "DefaultRuntime" : "{}",
    "Workspace" : "test-workspace",
    "RegionId" : "cn-beijing"
  } ]
}

错误码

HttpCode 错误码 错误信息 描述
404 InvalidUser.NotFound The specified user is not found. 找不到该用户信息,请先购买开通基因云产品
404 ResourceNotFound The specified resource %s is not found. 访问的资源不存在。
400 InvalidParameter The specified parameter %s is invalid: %s. 参数不合法,请检查参数是否正确。
500 InternalServerError An internal error has occurred. Please try again. 内部错误,请重试。
403 AccessDenied The access key ID is disabled %s. 您使用的Access key ID 已经被禁用。
403 AccessDenied The caller is not authorized to perform %s on resource %s. 没有权限进行相关的操作,请检查子账号权限是否正确。
403 AccessDenied The resources do not belong to you. 您访问的资源不属于当前账号。
403 AccessDenied The STS token is invalid. STS token 非法。

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。