列出所有的日志导出任务 | 大装置帮助中心
跳到主要内容

列出所有的日志导出任务

接口描述

POST

/monitor/ts/data/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/telemetryStations/:telemetry_station_name/exportLog/products/:product_name/exportJob/list

列出所有的日志导出任务

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

名称类型必须位置默认值取值范围描述
subscription_namestringpath--订阅
resource_group_namestringpath--资源组
zonestringpath--可用区
telemetry_station_namestringpath--监控空间
product_namestringquery--子产品键

请求体(Request Body)

名称类型描述
page_sizeint每页大小
offsetstring偏移量

请求示例(Request Example)

curl -XPOST 'https://monitor.sensecoreapi.tech/monitor/ts/data/v1/subscriptions/224bae0c-a98f-41f5-b5d3-9f54aa98455f/resourceGroups/default/zones/cn-sh-01z/telemetryStations/ts-user-a95a77a3-961f-43fa-9577-d5c8a2cb0149/exportLog/products/product.lepton-acp-new/exportJob/list' \
-H 'Content-Type: application/json' \
-d '{"page_size":10,"offset":"0"}'

响应(Response)

名称类型描述
export_jobs[]ExportJob导出任务列表
page_sizeint每页大小
offsetstring偏移量

其中,ExportJob如下:

名称类型描述
export_job_idstring导出任务id
log_file_namestring导出文件名
log_file_typestring导出文件格式
export_statusstring导出文件状态
download_uristring下载地址
log_typestring日志类型:普通日志;操作日志
create_timestring创建时间
complete_timestring完成时间
bucketstringoss存储桶
log_file_sizestring日志大小

响应示例(Response Example)

{
"export_jobs": [
{
"export_job_id": "wbx2p3KlqYP4meP7vcyzrlZYovPmOaB1",
"log_file_name": "product.lepton-acp-new_1712663122.json",
"log_file_type": "json",
"export_status": "wait",
"download_uri": "",
"log_type": "product.lepton-acp-new",
"create_time": "2024-04-09T11:45:22.863681Z",
"complete_time": "0001-01-01T00:00:00Z",
"bucket": "test1138",
"log_file_size": 0
},
{
"export_job_id": "ez2xnplWgMaVN3Bq2I24KlZ9q8OER03v",
"log_file_name": "product.lepton-acp-new_1712662801.json",
"log_file_type": "json",
"export_status": "complete",
"download_uri": "https://aoss.cn-sh-01.sensecoreapi-oss.tech/test1138/sensecore/telemetry/log/product.lepton-acp-new_1712662801.tar.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1EC2B934FC52480FA172C7D1F88BB9A8%2F20240409%2Fcn-sh-01%2Fs3%2Faws4_request&X-Amz-Date=20240409T114850Z&X-Amz-Expires=259200&X-Amz-SignedHeaders=host&X-Amz-Signature=53aa7f61db3e224cd2e3ac922f89742509ef94dd3f61d776d09de00f083e1d42",
"log_type": "product.lepton-acp-new",
"create_time": "2024-04-09T11:40:01.219818Z",
"complete_time": "2024-04-09T11:48:50.294469Z",
"bucket": "test1138",
"log_file_size": 172078943
},
{
"export_job_id": "XgWbZqrwpAl60oRQgfZPK2DMQP1O0j3n",
"log_file_name": "product.lepton-acp-new_1712662893.json",
"log_file_type": "json",
"export_status": "wait",
"download_uri": "",
"log_type": "product.lepton-acp-new",
"create_time": "2024-04-09T11:41:33.258063Z",
"complete_time": "0001-01-01T00:00:00Z",
"bucket": "test1138",
"log_file_size": 0
}
],
"page_size": 10,
"offset": "0",
"total": "3"
}