- 文档首页
AI 数据湖服务
API 参考:管控面
工作流模板
GetWorkflow - 获取工作流
GetWorkflow - 获取工作流
获取工作流
调试
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。 Action string 必选 示例值:GetWorkflow
要执行的操作,取值:GetWorkflow。
Version string 必选 示例值:2025-08-15
API的版本,取值:2025-08-15。
WorkflowId string 必选 示例值:wf-tpl-uuid
工作流 Id
返回参数
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。 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"
返回示例
"Action": "GetWorkflow",
"Version": "2025-08-15",
"RequestId": "20230604110420****100232280022D31",
"WorkflowId": "wf-tpl-xxx",
"Name": "workflow_name",
"AccountId": "2000000001",
"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"
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
最近更新时间:2026.08.18 11:54:15