本文介绍如何通过控制台和命令行工具查看流程。
使用控制台查看流程
在流程页面,查看所有流程。
单击流程名称,查看流程详细信息。
使用命令行工具查看流程
您可以执行以下命令查看一个流程。
aliyun fnf DescribeFlow --Name cli_guide_1
预期输出:
# 命令执行结果 { "Name": "cli_guide_1", "Description": "demo", "Definition": "version: v1\ntype: flow\nsteps:\n - type: pass\n name: pass1", "Id": "47ced55d-590b-482a-975f-915ac2365ad6", "Type": "FDL", "RoleArn": "acs:ram::xxx:xxx", "CreatedTime": "2024-06-24T02:31:43.359Z", "LastModifiedTime": "2024-06-24T02:31:43.359Z", "ExecutionMode": "Standard", "RequestId": "fc356cd5-11d8-ff64-0a78-47189da6833d" }
您也可以执行以下命令查看多个流程。
aliyun fnf ListFlows --Limit 1
预期输出:
# 命令执行结果 { "Flows": [ { "Name": "cli_guide_1", "Description": "demo", "Definition": "version: v1\ntype: flow\nname: test\nsteps:\n - type: pass\n name: pass1", "Id": "ddcb687d-3a25-46d2-8062-cea6673ed272", "Type": "FDL", "RoleArn": "acs:ram::xxx:xxx", "CreatedTime": "2024-06-06T06:32:52.04Z", "LastModifiedTime": "2024-06-06T06:32:52.04Z", "ExecutionMode": "Standard" } ], "NextToken": "MyWorkFlow", "RequestId": "1ae78dbf-6f9a-3f74-fbec-03a8c9523735" }
说明Limit:参数指定了所要获取的流程数量。如果还有其它数据,返回结果会包含
NextToken
,在下次查询中,可以使用--NextToken参数指定查询起始位置。
文档内容是否对您有帮助?