获取将日志导出到 OSS 的配置 | 大装置帮助中心
跳到主要内容

获取将日志导出到 OSS 的配置

接口描述

GET

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

获取将日志导出到 OSS 的配置

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

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

请求体(Request Body)

请求示例(Request Example)

curl -XGET '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/logOssConfig' \
-H 'Content-Type: application/json'

响应(Response)

名称类型描述
log_oss_config_idstring日志 OSS 配置的 ID
oss_uristring存储桶的 OSS URI
access_key_idstringAccessKey ID
access_key_secretstringAccessKey Secret

响应示例(Response Example)

{
"log_oss_config_id": "RXwpLov2OYg2GXr5atGOkGGAQW1VmylB",
"oss_uri": "https://test1138.aoss.cn-sh-01.sensecoreapi-oss.tech",
"access_key_id": "1EC2B934FC52480FA172C7D1F88BB9A8",
"access_key_secret": ""
}