{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResp":{"description":"API错误响应","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00129901","maxLength":16,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","maxLength":255,"minLength":1,"type":"string"}}},"ImageJobDetailInfo":{"properties":{"begin_time":{"description":"任务创建时间。","example":"2022-03-07T10:40:43.858Z","format":"date-time","readOnly":true,"type":"string"},"end_time":{"description":"任务结束时间。","example":"2022-03-07T10:40:43.858Z","format":"date-time","readOnly":true,"type":"string"},"id":{"description":"子任务ID。","example":"1","readOnly":true,"type":"string"},"job_execute_info":{"$ref":"#/definitions/ImageJobExecuteInfo"},"job_id":{"description":"任务ID。","example":"1","readOnly":true,"type":"string"},"job_resource_info":{"$ref":"#/definitions/ImageJobResourceInfo"},"job_type":{"$ref":"#/definitions/ImageJobType"},"project_id":{"description":"项目ID。","example":"325f2346-xxxx123d-1425af14","readOnly":true,"type":"string"},"status":{"$ref":"#/definitions/ImageJobDetailStatus","description":"任务状态。","readOnly":true}}},"ImageJobDetailStatus":{"description":"job详情的状态\n* `WAITING` - 等待\n* `RUNNING` - 运行中\n* `SUCCESS` - 成功\n* `FAILED` - 失败\n* `ABNORMAL` - 异常\n* `ROLLBACK` - 回滚中\n* `ABORTING` - 终止中","enum":["WAITING","RUNNING","SUCCESS","FAILED","ABNORMAL","ROLLBACK","ABORTING"],"example":"WAITING","type":"string"},"ImageJobExecuteInfo":{"description":"任务执行失败信息","properties":{"error_code":{"description":"任务执行失败时的错误码。","example":"WKS.00129901","readOnly":true,"type":"string"},"error_message":{"description":"任务失败原因。","example":"The service is now unavailable to process the request.","readOnly":true,"type":"string"}},"type":"object"},"ImageJobInfo":{"properties":{"begin_time":{"description":"任务创建时间。","example":"2022-03-07T10:40:43.858Z","format":"date-time","readOnly":true,"type":"string"},"end_time":{"description":"任务结束时间。","example":"2022-03-07T10:40:43.858Z","format":"date-time","readOnly":true,"type":"string"},"id":{"description":"任务ID。","example":"1","readOnly":true,"type":"string"},"job_type":{"$ref":"#/definitions/ImageJobType","description":"任务类型。","readOnly":true},"status":{"$ref":"#/definitions/ImageJobStatus","description":"任务状态。","readOnly":true},"sub_jobs_total":{"description":"子任务总数。","example":10,"readOnly":true,"type":"integer"}}},"ImageJobResourceInfo":{"description":"任务结果对应的资源信息,根据任务类型区分:\n* `镜像实例` - 镜像实例信息\n* `镜像` - 镜像信息","properties":{"resource_id":{"description":"资源ID","example":"a1a1245-xxxx123d-1425af14","readOnly":true,"type":"string"},"resource_name":{"description":"产物名称,或者被操作资源名称","example":"镜像测试","readOnly":true,"type":"string"}},"type":"object"},"ImageJobResp":{"allOf":[{"$ref":"#/definitions/ImageJobInfo"},{"properties":{"sub_jobs":{"description":"子任务列表","items":{"$ref":"#/definitions/ImageJobDetailInfo"},"readOnly":true,"type":"array"}},"type":"object"}],"description":"查询任务详情响应"},"ImageJobStatus":{"description":"job状态\n* `WAITING` - 等待\n* `RUNNING` - 运行中\n* `SUCCESS - 完成\n* `FAILED` - 失败","enum":["WAITING","RUNNING","SUCCESS","FAILED"],"example":"WAITING","type":"string"},"ImageJobType":{"description":"job类型\n* `CREATE_SERVER` - 创建镜像实例\n* `CREATE_SERVER_IMAGE` - 构建镜像\n* `DELETE_SERVER` - 删除镜像实例","enum":["CREATE_SERVER","CREATE_SERVER_IMAGE","DELETE_SERVER"],"example":"CREATE_SERVER","type":"string"}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"a64bffb9edac42afac7e1e4117a51b2d","info_version":"v1","method":"get","name":"ShowImageJob","parameters":{},"paths":{"/v1/{project_id}/image-server-jobs/{job_id}":{"get":{"description":"该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。","operationId":"ShowImageJob","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2147483647,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-is-registered":"N"},{"description":"项目唯一标识。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"任务ID。","in":"path","maxLength":128,"minLength":1,"name":"job_id","required":true,"type":"string","x-example":"2382dd96-xxxxx56d-axxxc4b09a35b58"}],"responses":{"200":{"description":"成功响应。","examples":{"application/json":{"begin_time":"2024-05-20T10:39:49.61Z","end_time":"2024-05-20T11:03:24.206Z","id":"702364883651395584","job_type":"CREATE_SERVER_IMAGE","status":"SUCCESS","sub_jobs":[{"begin_time":"2024-05-20T10:39:50.723Z","end_time":"2024-05-20T11:03:24.194Z","id":"702364884037271552","job_execute_info":{"error_code":"","error_message":""},"job_id":"702364883651395584","job_resource_info":{"resource_id":"f5d443de-a623-4950-a74d-569fe63c1f7a","resource_name":"123"},"job_type":"CREATE_SERVER_IMAGE","project_id":"a4da8115c9d8464ead3a38309130523f","status":"SUCCESS"}],"sub_jobs_total":1}},"schema":{"$ref":"#/definitions/ImageJobResp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/ErrorResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/ErrorResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/ErrorResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/ErrorResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/ErrorResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/ErrorResp"}}},"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"查询镜像任务详情","tags":["Job"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"get","name":"wks-imagemanager-lb","path":"/v1/{project_id}/image-server-jobs/{job_id}","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"description":"","in":"path","name":"project_id","origin":"request","value":"project_id"},{"description":"","in":"path","name":"job_id","origin":"request","value":"job_id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_base_get","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"GET v1/a4da8115c9d8464ead3a38309130523f/image-server-jobs/702364883651395584","x-support-sdk":"Y"}}},"product_short":"WorkspaceApp","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"查询镜像任务详情","tags":"查询Job状态","uri":null,"version":"2.0"}