{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResponseBody":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200001","type":"string"},"error_msg":{"description":"错误消息。","example":"参数错误。","type":"string"}},"required":["error_code","error_msg"]},"InstanceLogConfig":{"properties":{"instance":{"$ref":"#/definitions/LogInstanceInfo","description":"实例信息。"},"lts_configs":{"description":"LTS日志配置明细。从未设置LTS日志流,不返回该字段。","items":{"$ref":"#/definitions/InstanceLogConfigDetail"},"type":"array"}},"required":["instance","lts_configs"]},"InstanceLogConfigDetail":{"properties":{"enabled":{"description":"关联的LTS日志流是否启用,true代表已启用,false代表未启用。","type":"boolean"},"log_type":{"description":"日志类型。slow_log表示慢日志。","enum":["slow_log"],"type":"string"},"lts_group_id":{"description":"关联的LTS日志组ID,若enabled为false,表示最近一次关联的LTS日志组ID。","type":"string"},"lts_stream_id":{"description":"关联的LTS日志流ID,若enabled为false,表示最近一次关联的LTS日志流ID。","type":"string"}},"required":["log_type","lts_group_id","lts_stream_id","enbaled"]},"InstancesDatastoreResult":{"description":"数据库信息。","properties":{"type":{"description":"数据库引擎。","type":"string"},"version":{"description":"数据库版本号。","type":"string"}},"required":["type","version"]},"LogConfigQueryResponseBody":{"properties":{"instance_lts_configs":{"description":"实例-LTS日志配置信息列表。","items":{"$ref":"#/definitions/InstanceLogConfig"},"type":"array"},"total_count":{"description":"实例总记录数。","type":"integer"}},"required":["instance_lts_configs","total_count"]},"LogInstanceInfo":{"properties":{"actions":{"description":"实例正在执行的动作。","items":{"type":"string"},"type":"array"},"datastore":{"$ref":"#/definitions/InstancesDatastoreResult","description":"数据库信息。"},"enterprise_project_id":{"description":"企业项目ID。","type":"string"},"id":{"description":"实例ID。","type":"string"},"mode":{"description":"实例类型。\n- 取值为“Cluster”,表示GeminiDB Redis集群实例类型。","type":"string"},"name":{"description":"实例名称。","type":"string"},"status":{"description":"实例状态。\n取值:\n- normal,表示实例正常。\n- abnormal,表示实例异常。\n- creating,表示实例创建中。\n- frozen,表示实例被冻结。\n- data_disk_full,表示实例磁盘已满。\n- createfail,表示实例创建失败。\n- enlargefail,表示实例扩容节点失败。","example":"creating","type":"string"},"supported_log_types":{"description":"日志类型。slow_log表示慢日志,audit_log表示审计日志。","items":{"type":"string"},"type":"array"}}}},"description":null,"group_id":"e59009abc8d6499f9f8dc004e69d73d7","host":"gaussdb-nosql.cn-north-4.myhuaweicloud.com","id":"d73160826c2a453e82516026c7ed1ddf","info_version":"v3","method":"get","name":"ListLtsConfigs","parameters":{},"paths":{"/v3/{project_id}/instances/logs/lts-configs":{"get":{"description":"分页查询实例关联的LTS日志配置信息。","operationId":"ListLtsConfigs","parameters":[{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"******"},{"description":"语言。","in":"header","name":"X-Language","type":"string","x-example":"zh-cn"},{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"619d3e78f61b4be68bc5aa0b59edcf7b"},{"description":"索引位置偏移量,表示从第一条数据偏移offset条数据后开始查询。取值必须为数字,不能为负数。默认取0值,表示从第一条数据开始查询。","in":"query","name":"offset","type":"integer"},{"description":"查询记录数。取值范围:1~100,必须为数字。不传该参数时,默认查询前100条实例信息。","in":"query","name":"limit","type":"integer"},{"description":"根据实例ID精确搜索。","in":"query","name":"instance_id","type":"string","x-example":"362b42f769ff45d884e1866f8ee00bb4in12"},{"description":"根据实例名称模糊搜索。","in":"query","name":"instance_name","type":"string","x-example":"test"},{"description":"根据企业项目ID精确搜索。","in":"query","name":"enterprise_project_id","type":"string","x-example":"0"}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"instance_lts_configs":[{"instance":{"actions":["GROWING"],"datastore":{"type":"redis","version":"5.0"},"enterprise_project_id":"0","id":"362b42f769ff45d884e1866f8ee00bb4in12","mode":"RedisCluster","name":"nosql-c316","status":"normal","supported_log_types":["slow_log","audit_log"]},"lts_configs":[{"enabled":true,"log_type":"slow_log","lts_group_id":"65442dd4-b8de-4e9f-8a80-b60aa0698354","lts_stream_id":"5992dd29-fd11-4228-a852-5f6e578789c5"}]}],"total_count":1}},"schema":{"$ref":"#/definitions/LogConfigQueryResponseBody"}},"default":{"description":"Client or server error.","schema":{"$ref":"#/definitions/ErrorResponseBody"}}},"summary":"查询LTS日志配置信息","tags":["日志管理"],"x-constraint":"- 只返回GeminiDB Redis数据库实例的慢日志和审计日志配置。","x-is-registered":"Y","x-request-examples-description-1":"","x-request-examples-url-1":"GET https://{endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/logs/lts-configs?limit=10&offset=0&instance_id=362b42f769ff45d884e1866f8ee00bb4in12&instance_name=c316&enterprise_project_id=0","x-support-sdk":"Y"}}},"product_short":"GaussDBforNoSQL","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询LTS日志配置信息","tags":"日志管理","uri":null,"version":"2.0"}