云日志服务 LTS-创建日志接入:响应示例

时间:2023-11-01 16:16:13

响应示例

状态码: 200

创建日志接入请求响应成功
{    "access_config_detail" : {        "black_paths" : ["/wjy/hei/tesxxx", "/wjy/hei/tesxxx"],        "format" : {            "single" : {                "mode" : "wildcard",                "value" : "1111"            }        },        "paths" : ["/wjy/tesxxx"],        "windows_log_info" : {            "categorys" : ["System", "Application", "Security", "Setup"],            "event_level" : ["information", "warning", "error", "critical", "verbose"],            "time_offset" : {                "offset" : 168,                "unit" : "hour"            }        }    },    "access_config_id" : "aa58d29e-21a9-4761-ba16-8cxxxxd",    "access_config_name" : "采集Wjy_xxxxt2",    "access_config_tag": [     {        "key": "xxx",        "value": "xxx"      },     {        "key": "xxx1",        "value": "xxx1"      }    ],    "access_config_type" : "AGENT",    "create_time" : 163504314523,    "host_group_info" : {        "host_group_id_list" : ["de4dbed4-a3bc-4877-a7ee-09xxxxxx"]    },    "log_info" : {        "log_group_id" : "9a7e2183-2d6d-4732-9axxxxx49e0",        "log_group_name" : "lts-groupxxxa",        "log_stream_id" : "c4de0538-53e6-41fd-b951-xxxx8d7",        "log_stream_name" : "lts-topixxx"    } }

状态码: 400

非法请求 建议根据error_msg直接修改该请求。

{   "error_code" : "LTS.1807",   "error_msg" : "Invalid access config name" }

状态码: 500

表明服务端能被请求访问到,但是服务内部出错。

{   "error_code" : "LTS.0010",   "error_msg" : "Internal Server Error" }
support.huaweicloud.com/api-lts/lts_api_1024.html