交换数据空间 EDS-上架offer:请求示例

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

请求示例

上架offer

POST /v1/{project_id}/eds/instances/{instance_id}/connectors/{connector_id}/offers
{
	"data_resource_list": [{
		"data_resource_id": "ab775d2***********b-17317168794e",
		"data_artifact_id": "f53e7e6e-8*********a4a7cdc3887b",
		"make_sensitive": [{
			"attribute_code": "ID",
			"reserve_head_len": "3",
			"reserve_tail_len": "4"
		}]
	}],
	"approver_id": "*****************",
	"publish_type": "FULL_PUBLIC",
	"offer_name": "Offer002",
	"offer_description": "123",
	"subscription_type": "CONTROLLED_DATA",
	"policy_json": {
		"view": {
			"enables": "true",
			"times": "1",
			"app": "2***************1-3338f82c0700"
		},
		"modify": {
			"enable": "false",
			"times": "",
			"app": ""
		},
		"terminate": {
			"enable": "true"
		},
		"approval": {
			"enable": "true"
		},
		"download": {
			"enable": "true",
			"times": "2",
			"app": "306******************646d520280,215c118-***************-3338f82c0700,335ac1*************38f82c0700"
		},
		"use": {
			"users": "",
			"teams": "",
			"timeInterval": {
				"startTime": "2024-02-01T14:46:57Z",
				"endTime": "2024-03-02T14:46:57Z"
			}
		},
		"database": {
			"rows": [{
				"column_name": "ID",
				"condition": "!=",
				"value": "123"
			}],
			"column": "ID,NAME,DESCRIPTION"
		}
	},
	"target_ids": [
		""
	],
	"app_item_url": "/approvalDetail?offerId=",
	"can_terminate": "Y"
}
support.huaweicloud.com/api-eds/CreateOffer.html