交换数据空间 EDS-查询合约详情:响应示例

时间:2024-04-29 17:30:49

响应示例

状态码: 200

OK

  • 合约详情。
    {
      "data" : {
        "contract_id" : "AGRTconnector-****3b53a05caccd4c53b509************",
        "contract_name" : "测试合约3",
        "contract_description" : "OpenApi demo.",
        "owner_connector_id" : "b40b0d94-3201-4687-93aa-************",
        "owner_connector_name" : "连接器A",
        "subscribe_connector_id" : "c1bf9bd7-52fc-435b-ae55-************",
        "subscribe_connector_name" : "连接器B",
        "subscriber_name" : "************",
        "subscriber_id" : "************",
        "approver_id" : "************",
        "approver_name" : "************",
        "offer_id" : "fbf85846-3782-46dc-affb-************",
        "offer_name" : "offer-mysql-20231129AA",
        "transactional_mode" : "SUBSCRIBE",
        "status" : "SUCCESS",
        "create_time" : "2023-12-05T20:24:37Z",
        "need_approval" : false,
        "can_terminate" : true,
        "use_control_policies" : [ {
          "action" : "VIEW",
          "when" : {
            "start_time" : "2023-12-05T20:24:37Z",
            "end_time" : "2023-12-25T20:24:37Z"
          },
          "how_many" : null,
          "where" : [ ],
          "who" : [ "************" ],
          "user_type": null,
          "application" : [ "321ac118-758e-4324-9d41-************" ],
          "additional_attributes" : {
            "column" : "id,category",
            "rows" : [ {
              "column_name" : null,
              "condition" : "!=",
              "value" : "1"
            } ]
          }
        }, {
          "action" : "MODIFY",
          "when" : {
            "start_time" : "2023-12-05T20:24:37Z",
            "end_time" : "2023-12-25T20:24:37Z"
          },
          "how_many" : null,
          "where" : [ ],
          "who" : [ "************" ],
          "user_type": null,
          "application" : [ "321ac118-758e-4324-9d41-************" ],
          "additional_attributes" : {
            "column" : "id,category",
            "rows" : [ {
              "column_name" : null,
              "condition" : "!=",
              "value" : "1"
            } ]
          }
        }, {
          "action" : "DOWNLOAD",
          "when" : {
            "start_time" : "2023-12-05T20:24:37Z",
            "end_time" : "2023-12-25T20:24:37Z"
          },
          "how_many" : null,
          "where" : [ ],
          "who" : [ "************" ],
          "user_type": null,
          "application" : [ "321ac118-758e-4324-9d41-************" ],
          "additional_attributes" : {
            "column" : "id,category",
            "rows" : [ {
              "column_name" : null,
              "condition" : "!=",
              "value" : "1"
            } ]
          }
        } ],
        "artifacts" : [ {
          "data_resource_id" : "25546208-0854-49a0-9023-************",
          "artifact_id" : "303b4f5f-596e-41c9-ad50-************",
          "artifact_code" : null,
          "artifact_title" : "animals",
          "byte_size" : 16384,
          "media_type" : "jdbc"
        } ]
      },
      "total" : 0,
      "error_code" : null,
      "error_msg" : null
    }
support.huaweicloud.com/api-eds/ShowContract.html