Open-C3 Flow List Skill
Retrieve all CI/CD flows from Open-C3 platform via API.
Configuration
This skill requires three configuration parameters:
- 1. OPENC3URL: The base URL of your Open-C3 deployment (e.g.,
http://192.168.10.67/) - APPNAME: Your application name for API authentication (e.g.,
jobx) - APPKEY: Your application key for API authentication
Setting Up Configuration
Configuration is stored in config.env in the skill directory.
When to Use
✅ USE this skill when:
- - "Get all flows from the system"
- "List all CI/CD pipelines"
- "Show me all available flows"
- "What flows are configured in Open-C3?"
API Endpoint
Get All Flows
CODEBLOCK0
Response: Returns a JSON object containing all flows in the system, organized by service tree.
Examples
Get all flows:
CODEBLOCK1
Output Format:
The script returns a formatted table with:
- - Total count of all flows
- Table with columns: ID, Name, Service Tree ID, Service Tree Name, Source Address
- Summary statistics grouped by service tree
Notes
- - All API calls require
appname and appkey headers - This endpoint returns all flows across all service trees
- Keep your
APP_KEY secure and never commit it to version control
Open-C3 流程列表技能
通过API从Open-C3平台检索所有CI/CD流程。
配置
此技能需要三个配置参数:
- 1. OPENC3URL:Open-C3部署的基础URL(例如:http://192.168.10.67/)
- APPNAME:用于API认证的应用名称(例如:jobx)
- APPKEY:用于API认证的应用密钥
配置设置
配置存储在技能目录中的config.env文件内。
使用时机
✅ 在以下情况使用此技能:
- - 从系统中获取所有流程
- 列出所有CI/CD流水线
- 显示所有可用的流程
- Open-C3中配置了哪些流程?
API端点
获取所有流程
bash
curl -X GET ${OPENC3URL}/api/ci/group/ci/dump \
-H appname: ${APP_NAME} \
-H appkey: ${APP_KEY}
响应: 返回一个JSON对象,包含系统中按服务树组织的所有流程。
示例
获取所有流程:
bash
./scripts/list-all-flows.sh
输出格式:
脚本返回一个格式化表格,包含:
- - 所有流程的总数
- 包含以下列的表格:ID、名称、服务树ID、服务树名称、源地址
- 按服务树分组的汇总统计信息
注意事项
- - 所有API调用都需要appname和appkey请求头
- 此端点返回所有服务树中的所有流程
- 请确保APP_KEY的安全,切勿将其提交到版本控制中