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

更新将日志导出到 OSS 的配置

接口描述

PATCH

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

更新将日志导出到 OSS 的配置

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

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

请求体(Request Body)

名称类型描述
oss_uristring存储桶的 OSS URI
access_key_idstringAccessKey ID
access_key_secretstringAccessKey Secret
security_tokenstring安全令牌

请求示例(Request Example)

curl -XPATCH '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/RXwpLov2OYg2GXr5atGOkGGAQW1VmylB' \
-H 'Content-Type: application/json' \
-d '
{
"oss_uri": "https://test1138.aoss.cn-sh-01.sensecoreapi-oss.tech",
"access_key_id": "1EC2B934FC52480FA172C7D1F88BB9A8",
"access_key_secret": "4B89FC0764FB495584C82C0CB1CE0B61",
"security_token": "XXXX"
}
'

响应(Response)

名称类型描述
log_oss_config_idstring日志 OSS 配置的 ID

响应示例(Response Example)

{
"log_oss_config_id": "RXwpLov2OYg2GXr5atGOkGGAQW1VmylB"
}