更新时间:2024-10-28 GMT+08:00
示例5:创建OBS转储
场景描述
本章以将指定的一个或多个日志流的日志转储到OBS服务为例。
创建OBS转储
- 接口相关信息
URI格式:POST /v2/{project_id}/log-dump/obs
- 请求示例
POST https://{endpoint}/v2/{project_id}/log-dump/obs
{endpoint}信息请从终端节点获取。
Body:
{ "log_group_id": "d9dba9f3-xxxx-48bd-xxxx-xxxxa24a8053", "log_stream_ids": ["45e7f609-xxxx-4cd3-835b-xxxx4a124718"], "obs_bucket_name": "lts-test", "type": "cycle", "storage_format": "RAW", "switch_on": "true", "prefix_name": "fileprefixname", "dir_prefix_name": "dirprefixname", "period": 5, "period_unit": "min" }
- 响应示例
{ "log_dump_obs_id" : "45fdc36b-xxxx-4567-xxxx-559xxxxdf968" }