{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"GetLogBackupReq":{"properties":{"instance_name":{"description":"节点名称。通过[查询集群详情](ShowClusterDetail.xml)获取instances中的name属性。","example":"css-4312-ess-esn-1-1","type":"string"},"keyword":{"description":"基于日志内容字段值需要过滤的关键字,注意搜索到的日志包含关键字。","type":"string"},"level":{"description":"日志级别。可查询的日志级别为:INFO,ERROR,DEBUG,WARN。","example":"INFO","type":"string"},"limit":{"description":"指定返回日志的条数,默认返回100条,最大返回10000条日志,且日志大小不超过1MB。","format":"int32","type":"integer"},"log_type":{"description":"日志类型。可查询的日志类型为:deprecation,indexingSlow,searchSlow, instance。","example":"instance","type":"string"},"time_index":{"description":"返回指定时间之前的日志。","type":"string"}},"required":["instance_name","log_type"]},"GetLogBackupResponseBody":{"properties":{"completed":{"description":"**参数解释**:\n日志文件是否已经查询完。\n**取值范围**:\n- true: 日志文件已经查询完,没有更多结果了。\n- false:日志文件未查询完,因日志条数已达到请求条数或者日志大小达到1MB,查询提前返回结果。","type":"boolean"},"logList":{"items":{"$ref":"#/definitions/logList"},"type":"array"},"type":{"description":"查询日志的类型。","type":"string"}}},"logList":{"description":"日志列表。","properties":{"content":{"description":"日志内容。","example":"xxxxxxxx","type":"string"},"date":{"description":"日期。","example":"2021-10-08T03:55:54,718","type":"string"},"level":{"description":"日志级别。","example":"ERROR","type":"string"}}}},"description":null,"group_id":"c917c7a19aa04328b7e47a1def0e0acd","host":"css.cn-north-4.myhuaweicloud.com","id":"7815967773c748ceab3bd708cc2684a9","info_version":"v1","method":"post","name":"ShowLogBackup","parameters":{},"paths":{"/v1.0/{project_id}/clusters/{cluster_id}/logs/search":{"post":{"description":"该接口用于查询日志信息。","operationId":"ShowLogBackup","parameters":[{"description":"项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"6204a5bd270343b5885144cf9c8c158d"},{"description":"指定查询集群ID。","in":"path","name":"cluster_id","required":true,"type":"string","x-example":"5c77b71c-5b35-4f50-8984-76387e42451a"},{"in":"body","name":"GetLogBackupReq","required":true,"schema":{"$ref":"#/definitions/GetLogBackupReq"}}],"responses":{"200":{"description":"请求已成功。","examples":{"application/json":{"logList":[{"content":"xxxxxx","date":"2021-10-08T03:55:54,718","level":"INFO"}]}},"schema":{"$ref":"#/definitions/GetLogBackupResponseBody"}},"400":{"description":"非法请求。\n\n建议直接修改该请求,不要重试该请求。"},"409":{"description":"服务器在完成请求时发生冲突。\n\n返回该状态码,表明客户端尝试创建的资源已经存在,或者由于冲突请求的更新操作不能被完成。"},"412":{"description":"未满足前提条件,服务器未满足请求者在请求中设置的其中一个前提条件。"}},"summary":"查询日志","tags":["日志管理接口"],"x-apiexplorer-hide":"N","x-is-registered":"Y","x-publishpath":"","x-request-examples-1":{"instance_name":"css-4312-ess-esn-1-1","level":"INFO","log_type":"instance"},"x-request-examples-description-1":"查询日志信息。","x-request-examples-text-1":{"instance_name":"css-4312-ess-esn-1-1","level":"INFO","log_type":"instance"},"x-request-examples-url":"POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/5c77b71c-5b35-4f50-8984-76387e42451a/logs/search","x-request-examples-url-1":"POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/4f3deec3-efa8-4598-bf91-560aad1377a3/logs/search","x-support-sdk":"Y"}}},"product_short":"CSS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询日志","tags":"日志管理接口","uri":null,"version":"2.0"}