检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
设置回收站中的任务保留时间 功能介绍 设置回收站中的任务保留时间,该接口需要租户账号才能访问,租户子账号无权限访问。 调用方法 请参见如何调用API。 URI POST /v1/job/keep-time 请求参数 表1 请求Body参数 参数 是否必选 参数类型 描述 keep_time
00060200 参数不合法 参数不合法 请检查并确认参数值是否合法 400 CB.00060201 任务ID参数不合法 任务ID参数不合法 任务ID参数不合法 400 CB.00060202 业务ID参数不合法 业务ID参数不合法 业务ID仅支持小写字母、数字组合。请确认参数是否合法 400 CB
Length的请求信息。 412 Precondition Failed 未满足前提条件,服务器未满足请求者在请求中设置的其中一个前提条件。 413 Request Entity Too Large 由于请求的实体过大,服务器无法处理,因此拒绝请求。为防止客户端的连续请求,服务器
StopBuildJobRequest request = new StopBuildJobRequest(); request.withJobId("{job_id}"); request.withBuildNo({build_no});
.build(); UpdateNoticeRequest request = new UpdateNoticeRequest(); request.withJobId("{job_id}"); UpdateNoticeRequestBody
ShowOutputInfoRequest request = new ShowOutputInfoRequest(); request.withJobId("{job_id}"); request.withBuildNo({build_no});
ShowHistoryDetailsRequest request = new ShowHistoryDetailsRequest(); request.withJobId("{job_id}"); request.withBuildNumber({build_number});
request = DownloadBuildLogRequest() request.record_id = "{record_id}" response = client.download_build_log(request)
try: request = DeleteBuildJobRequest() request.job_id = "{job_id}" response = client.delete_build_job(request) print(response)
try: request = ListNoticeRequest() request.job_id = "{job_id}" response = client.list_notice(request) print(response)
request = ShowLastHistoryRequest() request.project_id = "{project_id}" response = client.show_last_history(request)
build(); DownloadLogByRecordIdRequest request = new DownloadLogByRecordIdRequest(); request.withRecordId("{record_id}"); try
ShowRecordDetailRequest request = new ShowRecordDetailRequest(); request.withJobId("{job_id}"); request.withBuildNo({build_no});
ShowRecordInfoRequest request = new ShowRecordInfoRequest(); request.withJobId("{job_id}"); request.withBuildNo({build_no});
try: request = ShowListHistoryRequest() request.job_id = "{job_id}" response = client.show_list_history(request)
try: request = DisableBuildJobRequest() request.job_id = "{job_id}" response = client.disable_build_job(request)
try: request = DisableNoticeRequest() request.job_id = "{job_id}" response = client.disable_notice(request) print(response)
request = DownloadTaskLogRequest() request.record_id = "{record_id}" response = client.download_task_log(request)
try: request = EnableBuildJobRequest() request.job_id = "{job_id}" response = client.enable_build_job(request) print(response)
try: request = ShowJobStatusRequest() request.job_id = "{job_id}" response = client.show_job_status(request) print(response)