查询工作空间下特定应用详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
easygene:GetApp |
get |
*App
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Workspace |
string |
是 |
工作空间名称 |
TestWorkspace |
| AppName |
string |
是 |
应用名称 |
TestApp |
| Revision |
string |
否 |
应用版本号 |
0 |
| RevisionTag |
string |
否 |
应用版本唯一标签 |
TestTag |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
应用详情 |
||
| WorkflowName |
string |
工作流名称 |
MyTestWorkflow |
| AppName |
string |
应用名称 |
MyTestApp |
| CreateTime |
string |
创建时间,采用 RFC 3339 格式并包含时区信息,例如 2021-06-16T15:09:14.378297+08:00。 |
2021-06-16T15:09:14.378297+08:00 |
| Definition |
string |
应用定义 |
WDL content |
| Description |
string |
应用简要描述 |
This is a test app |
| Documentation |
string |
应用详细文档 |
example documentation content |
| HostId |
string |
主机 ID |
easygene.cn-beijing.aliyuncs.com |
| Inputs |
array<object> |
应用输入 |
|
|
object |
|||
| TaskName |
string |
任务名称 |
TestTaskName |
| VariableName |
string |
变量名称 |
TestVariableName |
| VariableType |
string |
变量类型 |
TestVariableType |
| VariableValue |
string |
变量值 |
TestVariableValue |
| Required |
boolean |
是否必须 |
true |
| Help |
string |
帮助 |
help information |
| StepOrder |
integer |
步骤顺序 |
1 |
| Labels |
object |
应用标签 |
|
|
string |
标签 |
test |
|
| Language |
string |
应用描述语言 |
WDL |
| LanguageVersion |
string |
应用描述语言版本 |
1.0 |
| LastModifiedTime |
string |
应用最后修改时间,采用 RFC 3339 格式并包含时区信息,例如 2021-06-16T15:09:14.378297+08:00。 |
2021-06-16T15:09:14.378297+08:00 |
| Outputs |
array<object> |
应用的输出参数 |
|
|
object |
|||
| TaskName |
string |
任务名称 |
TestTaskName |
| VariableName |
string |
参数名称 |
TestVariableName |
| VariableType |
string |
参数类型 |
Int |
| VariableValue |
string |
参数值 |
ExampleValue |
| Required |
boolean |
是否必须 |
true |
| Help |
string |
帮助信息 |
Example help information |
| StepOrder |
integer |
步骤编号 |
1 |
| RequestId |
string |
请求 ID |
DA980AD0-158F-44F3-847D-5EAB96C0EB6B |
| Revision |
string |
应用版本号 |
1 |
| RevisionTag |
string |
应用版本唯一标签 |
TestTag |
| RevisionComment |
string |
应用当前版本修改 |
Example revision comment |
| Revisions |
array<object> |
应用的所有版本号 |
|
|
object |
|||
| CreateTime |
string |
版本创建时间,采用 RFC 3339 格式并包含时区信息,例如 2021-06-16T15:09:14.378297+08:00。 |
2021-06-16T15:09:14.378297+08:00 |
| Revision |
string |
版本号 |
1 |
| RevisionComment |
string |
应用当前版本修改 |
Example revision comment |
| RevisionTag |
string |
应用版本唯一标签 |
ProduceVersion |
| Scope |
string |
应用可见范围 |
Public |
| URL |
string |
应用 URL |
Example url |
| Workspace |
string |
工作空间名称 |
TestWorkspace |
| Source |
string |
应用来源 |
EasyGene |
| AppType |
string |
实体类型 |
App |
| Dependencies |
array<object> |
依赖应用 |
|
|
object |
|||
| Path |
string |
依赖路径 |
./task/echo.wdl |
| Content |
string |
wdl 内容 |
task echo { String txt_out = "default_txt_out" String dd_out = "default_dd_out" command { echo Hello > ${txt_out} /bin/bash -c "dd if=/dev/zero of=${dd_out} bs=1M count=15" echo "This is a test std out." } runtime { cpu: "2" memory: "4G" autoReleaseJob: false reserveOnFail: true userData: "key1 value1" disks: "local-disk 40 cloud_ssd, /home/mount/ 40 cloud_efficiency" tag: "TestTag" } output { File outTxtFile = "${txt_out}" File outDdFile = "${dd_out}" } } |
| Configs |
array<object> |
应用运行所需的参考输入配置列表。 |
|
|
object |
|||
| Path |
string |
参数路径 |
./config/example.json |
| Content |
string |
参数内容 |
{ "wgs.apply_bqsr.cpu": 4, "wgs.apply_bqsr.disks": "local-disk 250 cloud_ssd", "wgs.apply_bqsr.gatk_Launcher": "/usr/local/bin/gatk-4.1.4.1/gatk", "wgs.apply_bqsr.java_opts": "'-XX:GCTimeLimit=50 -XX:GCHeapFreeLimit=10 -Xms3000m -Djava.io.tmpdir=/mnt'", "wgs.apply_bqsr.memory": "8G"} |
| Path |
string |
主 WDL 路径 |
main.wdl |
示例
正常返回示例
JSON格式
{
"WorkflowName": "MyTestWorkflow",
"AppName": "MyTestApp",
"CreateTime": "2021-06-16T15:09:14.378297+08:00",
"Definition": "WDL content",
"Description": "This is a test app",
"Documentation": "example documentation content",
"HostId": "easygene.cn-beijing.aliyuncs.com",
"Inputs": [
{
"TaskName": "TestTaskName",
"VariableName": "TestVariableName",
"VariableType": "TestVariableType",
"VariableValue": "TestVariableValue",
"Required": true,
"Help": "help information",
"StepOrder": 1
}
],
"Labels": {
"key": "test"
},
"Language": "WDL",
"LanguageVersion": "1.0",
"LastModifiedTime": "2021-06-16T15:09:14.378297+08:00",
"Outputs": [
{
"TaskName": "TestTaskName",
"VariableName": "TestVariableName",
"VariableType": "Int",
"VariableValue": "ExampleValue",
"Required": true,
"Help": "Example help information",
"StepOrder": 1
}
],
"RequestId": "DA980AD0-158F-44F3-847D-5EAB96C0EB6B",
"Revision": "1",
"RevisionTag": "TestTag",
"RevisionComment": "Example revision comment",
"Revisions": [
{
"CreateTime": "2021-06-16T15:09:14.378297+08:00",
"Revision": "1",
"RevisionComment": "Example revision comment",
"RevisionTag": "ProduceVersion"
}
],
"Scope": "Public",
"URL": "Example url",
"Workspace": "TestWorkspace",
"Source": "EasyGene",
"AppType": "App",
"Dependencies": [
{
"Path": "./task/echo.wdl",
"Content": "task echo { String txt_out = \"default_txt_out\" String dd_out = \"default_dd_out\" command { echo Hello > ${txt_out} /bin/bash -c \"dd if=/dev/zero of=${dd_out} bs=1M count=15\" echo \"This is a test std out.\" } runtime { cpu: \"2\" memory: \"4G\" autoReleaseJob: false reserveOnFail: true userData: \"key1 value1\" disks: \"local-disk 40 cloud_ssd, /home/mount/ 40 cloud_efficiency\" tag: \"TestTag\" } output { File outTxtFile = \"${txt_out}\" File outDdFile = \"${dd_out}\" } }"
}
],
"Configs": [
{
"Path": "./config/example.json",
"Content": "{ \"wgs.apply_bqsr.cpu\": 4, \"wgs.apply_bqsr.disks\": \"local-disk 250 cloud_ssd\", \"wgs.apply_bqsr.gatk_Launcher\": \"/usr/local/bin/gatk-4.1.4.1/gatk\", \"wgs.apply_bqsr.java_opts\": \"'-XX:GCTimeLimit=50 -XX:GCHeapFreeLimit=10 -Xms3000m -Djava.io.tmpdir=/mnt'\", \"wgs.apply_bqsr.memory\": \"8G\"}"
}
],
"Path": "main.wdl"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter %s is invalid. | 无效的参数 |
| 400 | MissingParameter | The input parameter %s that is mandatory for processing this request is not supplied. | 缺少必要的参数 |
| 404 | ResourceNotFound | The specified resource %s is not found. | 访问的资源不存在。 |
| 404 | InvalidUser.NotFound | The specified user is not found. | 找不到该用户信息,请先购买开通基因云产品 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。