{"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"}},"description":null,"group_id":"50626d0f704e4af3adfd875e2acffcb6","host":"cloudbuild-ext.cn-north-4.myhuaweicloud.com","id":"7bf1b85df99d4dd6bc4c7125f7fc2357","info_version":"v3","method":"get","name":"DownloadTaskLog","parameters":{"Log_Level":{"description":"日志等级 值为INFO | DEBUG。","in":"query","name":"log_level","required":false,"type":"string","x-example":"INFO"},"Record_Id":{"description":"记录ID,36位数字、小写字母、'-'组组合。","in":"path","name":"record_id","pattern":"^[0-9a-z-]{36}$","required":true,"type":"string","x-example":"2cc26382-b2cb-4234-8eb0-b37d362f4d4c"},"Task_Name":{"description":"步骤名称","in":"query","maxLength":1000,"minLength":1,"name":"task_name","required":true,"type":"string","x-example":"stage1"},"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":{"/v4/{record_id}/task-log":{"get":{"deprecated":false,"description":"下载构建步骤日志","operationId":"DownloadTaskLog","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Record_Id"},{"$ref":"#/parameters/Task_Name"},{"$ref":"#/parameters/Log_Level"}],"produces":["application/octet-stream"],"responses":{"200":{"description":"OK","schema":{"format":"binary","type":"string"}},"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}/v4/2cc26382-b2cb-4234-8eb0-b37d362f4d4c/task-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"}