交换数据空间 EDS-点对点生成合约:请求示例

时间:2024-11-06 21:54:43

请求示例

点对点发送合约

POST /v1/{project_id}/eds/instances/{instance_id}/connectors/{connector_id}/contracts/point-to-point

{
  "contract_description" : "合约描述",
  "approver_id" : "9999900******",
  "contract_name" : "点对点发送合约",
  "file_assets" : [ {
    "artifact_ids" : [ "f21e5c1e-ec9b******" ],
    "data_resource_id" : "7da43bc2-c301******"
  } ],
  "connector_policies" : [ {
    "connector_id" : "2747e1be-dba2*****",
    "policy_json" : {
      "view" : {
        "enable" : true,
        "times" : 100,
        "app" : "321ac118-758e******"
      },
      "modify" : {
        "enable" : false,
        "times" : "",
        "app" : ""
      },
      "download" : {
        "enable" : true,
        "times" : 100,
        "app" : "234c118-758e******"
      },
      "approval" : {
        "enable" : false
      },
      "terminate" : {
        "enable" : true
      },
      "use" : {
        "users" : "2******",
        "teams" : "",
        "timeInterval" : {
          "startTime" : "2023-12-11T16:25:27Z",
          "endTime" : "2024-01-10T16:25:27Z"
        }
      },
      "database" : {
        "column" : "",
        "rows" : [ ]
      }
    }
  } ]
}
support.huaweicloud.com/api-eds/CreatePointToPointContract.html