闲社服务运行正常AI智能体自动化平台
t

TractusX EDC交互

技能标识:tractusx-edc-v3

Interact with Tractus-X EDC (Eclipse Data Connector) control plane API v3 for managing assets, contract negotiations, policies, and data transfers.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.1
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

TractusX EDC交互

Tractus-X EDC 连接器技能(v3 API)

使用此技能通过 v3 API 与 Tractus-X EDC(Eclipse 数据连接器)控制平面进行交互。

配置

设置以下环境变量:

  • - EDCCONTROLPLANEURL - EDC 控制平面的基础 URL(例如 http://localhost:9192)
  • EDCAPI_KEY - 用于身份验证的 API 密钥(可选,取决于连接器配置)

API 基础 URL

${EDCCONTROLPLANE_URL}/v3

核心操作

1. 资产管理(v3)

创建资产:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/assets \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
properties: {
id: asset-id,
name: Asset Name,
contentType: application/json,
description: Data asset description
},
dataAddress: {
type: HttpData,
baseUrl: https://provider.example.com/data,
proxyBody: true,
proxyPath: true
}
}

更新资产:

bash
curl -X PUT ${EDCCONTROLPLANE_URL}/v3/assets \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
properties: {
id: asset-id,
name: Updated Asset Name
}
}

列出资产:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/assets/request \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
filterExpression: [],
range: {from: 0, to: 100}
}

获取资产:

bash
curl -X GET ${EDCCONTROLPLANE_URL}/v3/assets/{id} \
-H X-Api-Key: ${EDCAPIKEY}

删除资产:

bash
curl -X DELETE ${EDCCONTROLPLANE_URL}/v3/assets/{id} \
-H X-Api-Key: ${EDCAPIKEY}

2. 策略定义(v3)

列出策略:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/policydefinitions/request \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {filterExpression: [], range: {from: 0, to: 100}}

3. 合约定义(v3)

创建合约定义:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/contractdefinitions \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
id: contract-def-id,
accessPolicyId: policy-id,
contractPolicyId: policy-id,
assetsSelector: [{
operandLeft: https://w3id.org/edc/v0.0.1/ns/id,
operator: =,
operandRight: asset-id
}]
}

更新合约定义:

bash
curl -X PUT ${EDCCONTROLPLANE_URL}/v3/contractdefinitions \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
id: contract-def-id,
accessPolicyId: policy-id,
contractPolicyId: policy-id,
assetsSelector: [{
operandLeft: https://w3id.org/edc/v0.0.1/ns/id,
operator: =,
operandRight: asset-id
}]
}

列出合约定义:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/contractdefinitions/request \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {filterExpression: [], range: {from: 0, to: 100}}

4. 合约协商(v3)

发起协商:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/contractnegotiations \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
connectorId: provider-connector-id,
connectorAddress: http://provider-connector:9194/protocol/dsp,
offer: {
assetId: asset-id,
offerId: offer-id:1,
policy: {
permissions: [{
target: default,
action: {type: USE},
constraints: []
}]
}
}
}

查询协商:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/contractnegotiations/request \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {filterExpression: [], range: {from: 0, to: 100}}

获取协商的合约协议:

bash
curl -X GET ${EDCCONTROLPLANE_URL}/v3/contractnegotiations/{id}/agreement \
-H X-Api-Key: ${EDCAPIKEY}

5. 合约协议(v3)

获取合约协议:

bash
curl -X GET ${EDCCONTROLPLANE_URL}/v3/contractagreements/{id} \
-H X-Api-Key: ${EDCAPIKEY}

获取已退休的协议:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/contractagreements/retirements/request \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY}

6. 传输流程(v3)

发起传输:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/transferprocesses \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
protocol: dsp,
connectorId: provider-connector-id,
connectorAddress: http://provider-connector:9194/protocol/dsp,
contractId: contract-agreement-id,
assetId: asset-id,
managedResources: true,
dataDestination: {
type: HttpProxy,
baseUrl: http://consumer-backend:8080/data
}
}

暂停传输:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/transferprocesses/{id}/suspend \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {reason: Suspension reason}

7. EDR(端点数据引用)管理(v3)

发起 EDR 协商:

bash
curl -X POST ${EDCCONTROLPLANE_URL}/v3/edrs \
-H Content-Type: application/json \
-H X-Api-Key: ${EDCAPIKEY} \
-d {
connectorId: provider-connector-id,
connectorAddress: http://provider-connector:9194/protocol/dsp,
offer: {
assetId: asset-id,
offerId: offer-id:1,
policy: {
permissions: [{
target: default,
action: {type: USE},
constraints: []
}]
}
}
}

获取 EDR 数据地址:

bash
curl -X GET ${EDCCONTROLPLANE_URL}/v3/edrs/{transferProcessId}/dataaddress \
-H X-Api-Key: ${EDCAPIKEY

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tractusx-edc-1776126961 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tractusx-edc-1776126961 技能

通过命令行安装

skillhub install tractusx-edc-1776126961

下载

⬇ 下载 tractusx-edc-v3 v1.0.1(免费)

文件大小: 3.75 KB | 发布时间: 2026-4-14 12:47

v1.0.1 最新 2026-4-14 12:47
- Updated documentation to match Tractus-X EDC control plane v3 API endpoints.
- Changed API base URLs from /v4beta to /v3 and updated all example requests accordingly.
- Added new examples for updating assets and contract definitions.
- Included additional v3 endpoints (e.g., business partner groups).
- Streamlined workflow steps and clarified contract agreement retrieval.
- Removed or updated outdated v4-specific endpoints and instructions.
返回顶部