huawei-cloud-api-definitions-ROMA 0.1.20240626

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"AssetJobReason":{"properties":{"error_code":{"description":"错误码","maxLength":64,"minLength":1,"type":"string"},"error_msg":{"description":"错误信息","maxLength":64,"minLength":1,"type":"string"},"resource_name":{"description":"资源名称","maxLength":64,"minLength":1,"type":"string"},"resource_type":{"description":"资源类型","enum":["application","task"],"type":"string"}},"type":"object"},"AssetJobStatus":{"properties":{"archive_id":{"description":"导出作业成功时,供下载的资产包ID","maxLength":128,"minLength":1,"type":"string"},"begin_time":{"description":"作业开始时间","example":"2019-12-06T06:49:04Z","format":"dateTime","maximum":128,"minimum":1,"type":"string"},"end_time":{"description":"作业结束时间","example":"2019-12-06T06:50:04Z","format":"dateTime","maximum":128,"minimum":1,"type":"string"},"id":{"description":"作业ID","example":"ff8080814dbd65d7014dbe0d84db0013","maxLength":128,"minLength":1,"type":"string"},"progress_percent":{"description":"作业进度百分比","example":0.35,"format":"float","maximum":1,"minimum":0,"type":"number"},"reasons":{"description":"导致作业失败的错误原因","example":[{"error_code":"ROMA.00000101","error_msg":"some error details here","resource_name":"myApp","resource_type":"application"}],"items":{"$ref":"#/definitions/AssetJobReason"},"maxItems":10,"minItems":1,"type":"array"},"status":{"description":"作业状态\n- RUNNING : 作业正在执行\n- SUCCEEDED : 作业执行成功,对于导出作业,用户可以通过archive_id来下载资产包\n- FAILED : 作业执行失败,通过reason字段查看具体错误原因","enum":["RUNNING","SUCCEEDED","FAILED"],"type":"string"},"type":{"description":"作业类型","enum":["importAsset","exportAsset"],"example":"exportAsset","type":"string"}},"type":"object"},"ErrorResp":{"example":{"error_code":"ROMA.00000101","error_details":"some error details here","error_msg":"error summary","request_id":"13760c1fe8655e61209b75665e9bef43"},"properties":{"error_code":{"description":"错误码","maxLength":128,"minLength":1,"type":"string"},"error_details":{"description":"具体错误消息","maxLength":128,"minLength":1,"type":"string"},"error_msg":{"description":"错误消息","maxLength":128,"minLength":1,"type":"string"},"request_id":{"description":"请求处理ID","maxLength":128,"minLength":1,"type":"string"}},"type":"object"}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"d248db622a5f4ef8b509163262e1252d","info_version":"v2","method":"get","name":"CheckAssetJobStatus","parameters":{},"paths":{"/v2/{project_id}/instances/{instance_id}/assets/jobs/{job_id}":{"get":{"description":"查询作业进度","operationId":"CheckAssetJobStatus","parameters":[{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)","in":"header","maxLength":100000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"实例ID","in":"path","maxLength":64,"minLength":0,"name":"instance_id","required":true,"type":"string"},{"description":"项目ID","in":"path","maxLength":64,"minLength":0,"name":"project_id","required":true,"type":"string"},{"description":"作业ID","in":"path","maxLength":64,"minLength":0,"name":"job_id","required":true,"type":"string"}],"responses":{"200":{"description":"OK","examples":{"application/json":{"archive_id":"string","begin_time":"2019-12-06T06:49:04Z","end_time":"2019-12-06T06:50:04Z","id":"ff8080814dbd65d7014dbe0d84db0013","progress_percent":0.35,"reason":[{"error_code":"ROMA.00000101","error_msg":"some error details here","resource_name":"myApp","resource_type":"application"}],"status":"Running","type":"exportAsset"}},"schema":{"$ref":"#/definitions/AssetJobStatus"}},"403":{"description":"Forbidden","examples":{"application/json":{"error_code":"ROMA.00000101","error_details":"some error details here","error_msg":"error summary","request_id":"13760c1fe8655e61209b75665e9bef43"}},"schema":{"$ref":"#/definitions/ErrorResp"}}},"security":[{"apig-auth-iam":[]}],"summary":"查询作业进度","tags":["ASSET_MANAGEMENT"],"x-apigateway-backend":{"httpEndpoints":{"address":"#roma-address#","description":"","method":"GET","path":"/v2/{project_id}/instances/{instance_id}/assets/jobs/{job_id}","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"PATH","name":"instance_id","origin":"REQUEST","value":"instance_id"},{"description":"","in":"PATH","name":"project_id","origin":"REQUEST","value":"project_id"},{"description":"","in":"PATH","name":"job_id","origin":"REQUEST","value":"job_id"}],"type":"HTTP"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-request-type":"public","x-is-registered":"Y","x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询作业进度","tags":"ASSET_MANAGEMENT","uri":null,"version":"2.0"}