查询指定offer详情
功能介绍
查询指定offer详情。
URI
GET /v1/{project_id}/eds/instances/{instance_id}/connectors/{connector_id}/offers/{offer_id}
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
data |
OfferDetail object |
返回数据。 |
total |
Long |
总数。 |
error_code |
String |
错误码。 |
error_msg |
String |
错误描述。 |
参数 |
参数类型 |
描述 |
---|---|---|
offer_id |
String |
Offer ID。 |
offer_name |
String |
offer名称。 |
offer_status |
String |
offer状态:
枚举值:
|
offer_resources |
Array of OfferResource objects |
offer关联的资源信息。 数组长度:0 - 9999 |
need_approval |
Boolean |
是否需要审批。 注:开启【需要审批】后,下载合约资源的加工产物时需要审批。 |
can_terminate |
Boolean |
是否允许提供方删除数据。 |
use_control_policies_template |
Array of UseControlPoliciesInner objects |
合约使用控制策略列表。 |
mask_sensitive |
Array of MaskSensitive objects |
结构化数据列脱敏信息。 |
参数 |
参数类型 |
描述 |
---|---|---|
resource_id |
String |
资源ID。 |
resource_title |
String |
资源名称。 |
resource_type |
String |
资源的文件类型。 |
resource_category |
String |
资源分类:
枚举值:
|
参数 |
参数类型 |
描述 |
---|---|---|
action |
String |
执行动作过滤:
枚举值:
|
when |
TimeInterval object |
限制使用时间。 |
how_many |
Integer |
限制使用次数。 |
where |
Array of strings |
限制地点列表。 |
who |
Array of strings |
限制用户列表。 |
application |
Array of strings |
限制应用模板id列表。 |
additional_attributes |
DatabaseAttributes object |
策略的扩展属性。 |
user_type |
String |
限制用户类型。
枚举值:
|
参数 |
参数类型 |
描述 |
---|---|---|
attribute_code |
String |
属性code。 |
reserve_head_len |
Integer |
首端保留长度。 |
reserve_tail_len |
Integer |
尾端保留长度。 |
参数 |
参数类型 |
描述 |
---|---|---|
start_time |
String |
起始时间。 |
end_time |
String |
截止时间。 |
参数 |
参数类型 |
描述 |
---|---|---|
column |
String |
可见行。 |
rows |
Arrays of RowDTO |
可见列。 |
参数 |
参数类型 |
描述 |
---|---|---|
column_name |
String |
参数名称。 |
condition |
String |
参数条件。 |
value |
String |
参数条件值。 |
状态码: 400
参数 |
参数类型 |
描述 |
---|---|---|
data |
- |
返回null。 |
total |
Long |
总数。 |
error_code |
String |
错误码。 |
error_msg |
String |
错误描述。 |
状态码: 500
参数 |
参数类型 |
描述 |
---|---|---|
data |
- |
返回null。 |
total |
Long |
总数。 |
error_code |
String |
错误码。 |
error_msg |
String |
错误描述。 |
请求示例
查询指定offer详情。
GET https://{endpoint}/v1/{project_id}/eds/instances/{instance_id}/connectors/{connector_id}/offers/fbf85846-3782-46dc-affb-************
响应示例
状态码: 200
OK
- Offer详情。
{ "data" : { "offer_id" : "fbf85846-3782-46dc-affb-************", "offer_name" : "offer-mysql-20231129AA", "offer_status" : "ON_BOARD", "offer_resources" : [ { "resource_id" : "25546208-0854-49a0-9023-************", "resource_title" : "mysqlteset20231120184721", "resource_type" : null, "resource_category" : null } ], "need_approval" : false, "can_terminate" : true, "use_control_policies_template" : [ { "action" : "VIEW", "when" : { "start_time" : "2023-11-29T10:19:03Z", "end_time" : "2023-12-29T10:19:03Z" }, "how_many" : null, "where" : [ ], "who" : [ ], "user_type": null, "application" : [ "22aac118-d58e-4324-9d41-************" ], "additional_attributes" : { "column" : "id,animal_name,category", "rows": null } }, { "action" : "DOWNLOAD", "when" : { "start_time" : "2023-11-29T10:19:03Z", "end_time" : "2023-12-29T10:19:03Z" }, "how_many" : null, "where" : [ ], "who" : [ ], "user_type": null, "application" : [ "dae4237f-9880-4fb9-a618-************" ], "additional_attributes" : { "column" : "id,animal_name,category", "rows": null } } ], "mask_sensitive" : [ { "attribute_code" : "animal_name", "reserve_head_len" : 1, "reserve_tail_len" : 1 } ] }, "total" : 0, "error_code" : null, "error_msg" : null }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
400 |
Bad Request |
500 |
Internal Server Error |
错误码
请参见错误码。