You need to enable JavaScript to run this app.
文档中心
AI 数据湖服务

AI 数据湖服务

复制全文
下载 pdf
工作流模板
GetWorkflow - 获取工作流
复制全文
下载 pdf
GetWorkflow - 获取工作流
获取工作流​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:GetWorkflow​
要执行的操作,取值:GetWorkflow。​
​
Version string 必选 示例值:2025-08-15​
API的版本,取值:2025-08-15。​
​
WorkflowId string 必选 示例值:wf-tpl-uuid​
工作流 Id​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
Priority integer 示例值:1​
工作流模板默认节点任务优先级。0(最低)~9(最高);-1 表示关闭模板优先级。创建时未传表示不配置;更新时未传或为 null 表示保持原值。运行实例未指定 Priority 时使用该值​
​
Name string 示例值:workflow_name​
工作流名称​
​
Content string 示例值:--​
工作流内容,使用argo yaml编排,参考 CreateWorkflow​
​
OwnerId string 示例值:12345678​
创建者账号 Id​
​
AccountId string 示例值:2000000001​
主账号 Id​
​
OwnerName string 示例值:123456​
创建者名称​
​
CreateTime string 示例值:2025-08-15T10:00:00Z​
创建时间​
​
UpdateTime string 示例值:2025-08-15T10:00:00Z​
更新时间​
​
WorkflowId string 示例值:wf-tpl-uuid​
工作流 Id​
​
Description string 示例值:description​
工作流描述​
​
​
​
请求示例​
​
POST https://open.volcengineapi.com​
{​
"WorkflowId": "wf-tpl-xxx"​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"Action": "GetWorkflow",​
"Region": "cn-beijing",​
"Service": "las",​
"Version": "2025-08-15",​
"RequestId": "20230604110420****100232280022D31",​
"Deprecated": true​
},​
"Result": {​
"WorkflowId": "wf-tpl-xxx",​
"Name": "workflow_name",​
"AccountId": "2000000001",​
"OwnerId": "12345678",​
"Content": "apiVersion: argoproj.io/v1alpha1\nkind: Workflow\nmetadata:\n generateName: las-task-\nspec:\n entrypoint: main\n templates:\n - name: main\n dag:\n tasks:\n - name: las-task\n templateRef:\n name: las-system-template\n template: las-task\n clusterScope: true\n arguments:\n parameters:\n - name: task_id\n value: \"Ray-xxx\"\n - name: task_resources\n value: '{\"QueueResourceId\":\"PUBLIC_resource_xxx\",\"RayParams\":{\"WorkerCpu\":1,\"WorkerMemory\":8,\"WorkerGpuNum\":1,\"HeadCpu\":1,\"HeadMemory\":4}}'",​
"Description": "description",​
"SchedulerId": "s-12345678",​
"CreateTime": "2025-08-15T10:00:00Z",​
"UpdateTime": "2025-08-15T10:00:00Z"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidParameter​
The specified parameter {} is invalid.​
指定的参数 {} 无效。​
400​
DryRunOperation​
The request is validated by a dryrun operation.​
该请求通过 dryrun 操作进行验证。​
400​
InvalidRequestParam​
Invalid request param {}, cause {}​
非法请求参数 {}, 原因 {}​
400​
MissingParameter​
The required parameter {} is missing.​
缺少必需的参数 {}。​
500​
InternalError​
The request has failed due to an unknown error.​
由于未知错误,请求失败。​
​
​
最近更新时间:2026.10.15 20:22:02
这个页面对您有帮助吗?
有用
有用
无用
无用