{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例名称已存在。","type":"string"}},"required":["error_code","error_msg"]},"ListDbAgentJobHistorysResponseBody":{"description":"查询数据库代理作业执行历史响应信息。","properties":{"historys":{"description":"执行历史列表。","items":{"$ref":"#/definitions/ListDbAgentJobHistorysResult"},"type":"array"},"total_count":{"description":"执行历史总数。","example":1,"type":"integer"}}},"ListDbAgentJobHistorysResult":{"description":"数据库代理作业执行历史步骤。","properties":{"history_id":{"description":"作业历史记录id。","example":"10957","type":"string"},"message":{"description":"执行信息。","example":"The job succeeded. The Job was invoked by Schedule 8 (syspolicy_purge_history_schedule). The last step to run was step 3 (Erase Phantom System Health Records.).","type":"string"},"run_duration":{"description":"作业执行时长。格式为hh:mm:ss","example":"00:00:25","type":"string"},"run_status":{"description":"作业执行状态。取值如下:\n\nfailed:失败。\nsucceeded:成功。\nretrying:重试中。\ncanceled:已取消。\nin_progress:正在运行。","example":"succeeded","type":"string"},"run_time":{"description":"作业执行开始时间。格式为“yyyy-mm-ddThh:mm:ssZ”。\n其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。","example":"2023-01-05T08:00:00+0000","type":"string"}}}},"description":null,"group_id":"b7735f867ef44182af9eb77490a46fbf","host":"rds.cn-north-4.myhuaweicloud.com","id":"7688e1f2df63451d9ce8192d10e82e6c","info_version":"v3","method":"get","name":"ListDbAgentJobHistorys","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/db-jobs/{job_id}/histories":{"get":{"description":"查询数据库代理作业执行历史。","operationId":"ListDbAgentJobHistorys","parameters":[{"description":"项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"语言。默认en-us。","in":"header","name":"X-Language","required":false,"type":"string"},{"description":"实例ID","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"作业ID","in":"path","name":"job_id","required":true,"type":"string"},{"description":"作业执行状态。默认不传,查询所有执行历史。\n若传,则取值如下:\nfailed:失败。\nsucceeded:成功。\nretrying:重试中。\ncanceled:已取消。\nin_progress:正在运行。","in":"query","name":"run_status","required":false,"type":"string"},{"description":"索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。","in":"query","name":"offset","type":"integer"},{"description":"查询记录数。默认为10,不能为负数,最小值为1,最大值为100。","in":"query","name":"limit","type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"success","examples":{"application/json":{"histories":[{"history_id":"10957","message":"The job succeeded. The Job was invoked by Schedule 8 (syspolicy_purge_history_schedule). The last step to run was step 3 (Erase Phantom System Health Records.).","run_duration":"00:00:25","run_status":"succeeded","run_time":"2023-01-05T08:00:00+0000"}],"total_count":1}},"schema":{"$ref":"#/definitions/ListDbAgentJobHistorysResponseBody"}},"default":{"description":"error","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"查询数据库代理作业执行历史","tags":["发布订阅(SQL Server)"],"x-request-examples-url-1":"GET https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/1aa833000a124455a6801e83cca37e6ein04/BC809208-4C1E-44DC-AF98-48E71B374440/histories","x-support-sdk":"Y"}}},"product_short":"RDS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询数据库代理作业执行历史","tags":"发布订阅(SQL Server)","uri":null,"version":"2.0"}