huawei-cloud-api-definitions-CodeArtsBuild 0.1.20250905

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorResponseBody":{"properties":{"error_code":{"description":"错误码","example":"CB.00060200","type":"string"},"error_msg":{"description":"错误描述","example":"Invalid param","type":"string"}},"type":"object"},"RealTimeLogResponseBody":{"properties":{"error":{"description":"返回错误信息","example":"error_message","type":"string"},"result":{"description":"结果","properties":{"content":{"description":"返回日志内容,可能会空,请再次请求","type":"string"},"current_offset":{"description":"当前请求偏移量","type":"integer"},"has_more_data":{"description":"是否还有剩余日志标识","type":"boolean"},"offset":{"description":"偏移量,可用于下一次请求","type":"integer"}},"type":"object"},"status":{"description":"返回状态信息","example":"success","type":"string"}},"type":"object"}},"description":null,"group_id":"50626d0f704e4af3adfd875e2acffcb6","host":"cloudbuild-ext.cn-north-4.myhuaweicloud.com","id":"f232ad18cf634e3f8c04e6bcc95275fe","info_version":"v3","method":"get","name":"DownloadRealTimeLog","parameters":{"Build_No":{"default":1,"description":"构建任务的构建编号,从1开始,每次构建递增1","format":"int32","in":"path","maximum":2147483647,"minimum":1,"name":"build_no","required":true,"type":"integer","x-example":1},"Job_Id":{"description":"构建的任务ID;\n编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。","in":"path","name":"job_id","pattern":"^[0-9a-z]{32}$","required":true,"type":"string","x-example":"901878212b1a49be9c1a1054c272762a"},"X-Auth-Token":{"description":"用户Token。\n通过调用IAM服务接口获取\n(响应消息头中X-Subject-Token的值)。\n不支持租户全局token,请使用scope为project的region级token。","in":"header","maxLength":100000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."}},"paths":{"/v3/jobs/{job_id}/{build_no}/real-time-log":{"get":{"deprecated":false,"description":"下载构建实时日志","operationId":"DownloadRealTimeLog","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Job_Id"},{"$ref":"#/parameters/Build_No"},{"description":"偏移量,传入前一次请求返回的offset","in":"query","name":"offset","required":true,"type":"integer"},{"description":"可控制返回内容长度,默认值为1000000","in":"query","name":"length","required":false,"type":"integer"}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK","examples":{"application/json":{"error":null,"result":{"content":"[2023/12/21 15:44:18.743 GMT+08:00] [INFO] Building jar: ***//target/server-1.0.jar\\n[2023/12/21 15:44:18.744 GMT+08:00] [INFO] ------------------------------------------------------------------------\\n[2023/12/21 15:44:18.744 GMT+08:00] [INFO] BUILD SUCCESS\\n[2023/12/21 15:44:18.744 GMT+08:00] [INFO] ------------------------------------------------------------------------\\n[2023/12/21 15:44:18.744 GMT+08:00] [INFO] Total time: 5.408 s\\n[2023/12/21 15:44:18.744 GMT+08:00] [INFO] Finished at: 2023-12-21T15:44:18+08:00\\n[2023/12/21 15:44:18.744 GMT+08:00] [INFO] ------------------------------------------------------------------------\\n[2023/12/21 15:44:18.793 GMT+08:00] [INFO] [Maven构建:external_post_maven] : 该步骤开始执行。\\n[2023/12/21 15:44:18.796 GMT+08:00] [INFO] [Maven构建:external_post_maven] : 参数初始化成功。\\n[2023/12/21 15:44:18.796 GMT+08:00] [INFO] [Maven构建:external_post_maven] : 插件上下文初始化成功。\\n[2023/12/21 15:44:18.797 GMT+08:00] [INFO] [Maven构建:external_post_maven] : 该步骤执行完成。\\n[2023/12/21 15:44:18.842 GMT+08:00] $ docker stop --time=1 8db533bfed323ffeb24d4698b65af3b4d6f138c9e7c0297ee9e33442648b87ea\\n","current_offset":121768,"has_more_data":true,"offset":126548},"status":"success"}},"schema":{"$ref":"#/definitions/RealTimeLogResponseBody"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorResponseBody"}}},"security":[{"apig-auth-iam":[]}],"summary":"下载构建实时日志","tags":["CodeArtsBuild"],"x-api-type":"open-api","x-apigateway-ratelimit":"cloudbuild_ext","x-internel":"false","x-is-registered":"Y","x-request-examples-url-1":"GET https://{endpoint}/v3/jobs/48c66c6002964721be537cdc6ce0297b/33/real-time-log","x-support-sdk":"Y"}}},"product_short":"CodeArtsBuild","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"APP":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"}},"summary":"下载构建实时日志","tags":"编译构建(旧)","uri":null,"version":"2.0"}