您可以通过向 /audit/export
端点,指定要在有效负载中检索的事件。
API格式
GET /audit/export
参数 | 描述 |
---|---|
timestamp |
按时间戳过滤时,最好使用>和<运算符的范围,而不是精确值。 示例: ?property=timestamp<2020-02-08T02:46:48.610862Z&property=timestamp>2020-01-01T02:46:48.610862Z . |
status |
操作的状态。 状态可以是以下任一状态: Allow Deny Failure Success 示例: ?property=status==Deny . |
action |
为事件记录的操作类型。 操作可以是以下任一操作:
?property=action==Create 。 |
user |
执行事件的用户。 |
assetType |
执行操作的平台资源类型。 示例: ?property=assetType==<an asset type> . |
请求
curl -X POST \
https://platform.adobe.io/data/foundation/audit/events
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'x-request-id: {TRACING_ID}' \
响应
结果将生成为CSV文件以供导出。 成功的响应会返回没有响应主体的HTTP 307。 在 Location
响应标头。