镜像服务 IMS-异步任务查询:响应示例

时间:2024-12-09 11:11:21

响应示例

  • 当任务类型为imsCreateImageByInstance,云服务器创建镜像时,响应示例如下:
    {
        "job_id": "9a175ac792fa12d20193002100dd2762",
        "job_type": "imsCreateImageByInstance",
        "begin_time": "2024-11-06T06:19:43.195Z",
        "end_time": "2024-11-06T06:23:25.158Z",
        "status": "SUC CES S",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "3f7185de-b59a-4bb8-aa1d-7a513528b0e9"
        }
    }
  • 当任务类型为imsImportImageJob,外部镜像文件创建镜像时,响应示例如下:
    {
        "job_id": "9a175ac892fa1342019300224f22218e",
        "job_type": "imsImportImageJob",
        "begin_time": "2024-11-06T06:21:08.769Z",
        "end_time": "2024-11-06T06:27:03.742Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
       
            "image_id": "431df7fd-a898-4dc0-86b1-22cfefb8a517"
        }
    }
  • 当任务类型为imsImportOvaImageJob,外部Ova镜像文件创建镜像时,响应示例如下:
    {
        "job_id": "9a175ac892fa13420193006a49173317",
        "job_type": "imsImportOvaImageJob",
        "begin_time": "2024-11-06T07:39:45.814Z",
        "end_time": "2024-11-06T07:49:45.814Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "sub_jobs_result": [
                {
                    "job_id": "9a175ac892fa13420193006c29e133f0",
                    "job_type": "imsImportImageJob",
                    "begin_time": "2024-11-06T07:41:48.896Z",
                    "end_time": "2024-11-06T07:49:45.814Z",
                    "status": "SUCCESS",
                    "error_code": null,
                    "fail_reason": null,
                    "entities": {
                        "image_name": "test",
                        "image_id": "fc496c19-40c2-4220-8b1a-eba9d53fca7b"
                    }
                }
            ],
            "sub_jobs_list": [
                "9a175ac892fa13420193006c29e133f0"
            ]
        }
    }
  • 当任务类型为imsVolumeCreateImageJob,数据盘创建系统盘镜像时,响应示例如下:
    {
        "job_id": "9a175ac692fa125401930037d9e329aa",
        "job_type": "imsVolumeCreateImageJob",
        "begin_time": "2024-11-06T06:44:40.545Z",
        "end_time": "2024-11-06T06:47:40.545Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "21b04ab5-e817-40ee-8d56-7ccdb8820335"
        }
    }
  • 当任务类型为imsImportDataImageJob,外部镜像文件创建数据盘镜像时,响应示例如下:
    {
        "job_id": "9a175ac692fa125401930027b9c026b3",
        "job_type": "imsImportDataImageJob",
        "begin_time": "2024-11-06T06:27:03.742Z",
        "end_time": "2024-11-06T06:37:03.742Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "aa5306f7-bc95-4fa3-aa40-dd38fbdf2031"
        }
    }
  • 当任务类型为imsCreateWholeImageByInstanceJob,云服务器创建整机镜像时,响应示例如下:
    {
        "job_id": "9a175ac792fa12d201930028cddb29c6",
        "job_type": "imsCreateWholeImageByInstanceJob",
        "begin_time": "2024-11-06T06:28:14.425Z",
        "end_time": "2024-11-06T06:37:03.742Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "17b7bdeb-2e72-43a0-a202-d36ce344e902"
        }
    }
  • 当任务类型为imsCreateWholeImageByBackupJob,云备份或云服务器备份创建整机镜像时,响应示例如下:
    {
        "job_id": "9a175ac892fa13420193002961972392",
        "job_type": "imsCreateWholeImageByBackupJob",
        "begin_time": "2024-11-06T06:28:52.245Z",
        "end_time": "2024-11-06T06:28:58.399Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "ea0d5dce-ddb2-4f6f-83e3-55da065347fd"
        }
    }
  • 当任务类型为imsNativeImportImageJob,注册镜像时,响应示例如下:
    {
        "job_id": "9a175ac692fa12540193005389023059",
        "job_type": "imsNativeImportImageJob",
        "begin_time": "2024-11-06T07:14:54.848Z",
        "end_time": "2024-11-06T07:19:54.848Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_id": "af8ea1dc-02f2-4019-8fa9-c9952a0077ce"
        }
    }
  • 当任务类型为imsNativeExportImageJob,导出镜像时,响应示例如下:
    {
        "job_id": "9a175ac892fa134201930039db1a27b1",
        "job_type": "imsNativeExportImageJob",
        "begin_time": "2024-11-06T06:46:51.929Z",
        "end_time": "2024-11-06T06:49:53.657Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_id": "1ab4df10-fe18-48b7-91c9-53695fcd9df5"
        }
    }
  • 当任务类型为imsAddImageMembersJob,添加镜像成员时,响应示例如下:
    {
        "job_id": "9a175ac692fa12540193002a6d4b2720",
        "job_type": "imsAddImageMembersJob",
        "begin_time": "2024-11-06T06:30:00.778Z",
        "end_time": "2024-11-06T06:30:03.179Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "results": [
                {
                    "image_id": "30e55148-deb9-4923-adb9-91618de16ba0",
                    "status": "success"
                }
            ]
        }
    }
  • 当任务类型为imsDelImageMembersJob,删除镜像成员时,响应示例如下:
    {
        "job_id": "9a175ac792fa12d20193002da96f2ac2",
        "job_type": "imsDelImageMembersJob",
        "begin_time": "2024-11-06T06:33:32.781Z",
        "end_time": "2024-11-06T06:33:34.181Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "results": []
        }
    }
  • 当任务类型为imsUpdateImageMembersJob,修改镜像成员时,响应示例如下:
    {
        "job_id": "9a175ac692fa12540193005c340f321c",
        "job_type": "imsUpdateImageMembersJob",
        "begin_time": "2024-11-06T07:24:22.925Z",
        "end_time": "2024-11-06T07:24:23.773Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "results": [
                {
                    "image_id": "6596628c-42d4-4ff1-8660-8ea5ae61f243",
                    "status": "success"
                }
            ]
        }
    }
  • 当任务类型为当任务类型为imsCopyImageInRegionJob,Region内复制镜像时,响应示例如下:
    {
        "job_id": "9a175ac892fa13420193001c2e62205a",
        "job_type": "imsCopyImageInRegionJob",
        "begin_time": "2024-11-06T06:14:27.168Z",
        "end_time": "2024-11-06T06:16:38.446Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "30e55148-deb9-4923-adb9-91618de16ba0"
        }
    }
  • 当任务类型为imsCrossRegionCopyImageJob,跨Region复制镜像时,响应示例如下:
    {
        "job_id": "9a175ac792fa12d20193001f2a2c2641",
        "job_type": "imsCrossRegionCopyImageJob",
        "begin_time": "2024-11-06T06:17:42.699Z",
        "end_time": "2024-11-06T06:20:22.419Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "image_name": "test",
            "image_id": "d998b96f-b7e3-4be9-b0c2-9773e592977d"
        }
    }
  • 当任务类型为imsVolumesToSysDataImagesJob,数据盘创建数据盘镜像时,响应示例如下:
    {
        "job_id": "9a175ac792fa12d201930031febf2bdd",
        "job_type": "imsVolumesToSysDataImagesJob",
        "begin_time": "2024-11-06T06:38:16.765Z",
        "end_time": "2024-11-06T06:48:16.765Z",
        "status": "SUCCESS",
        "error_code": null,
        "fail_reason": null,
        "entities": {
            "sub_jobs_result": [
                {
                    "job_id": "9a175ac792fa12d20193003205b22be1",
                    "job_type": "imsCopyVolumeToImageJob",
                    "begin_time": "2024-11-06T06:38:18.545Z",
                    "end_time": "2024-11-06T06:48:16.765Z",
                    "status": "SUCCESS",
                    "error_code": null,
                    "fail_reason": null,
                    "entities": {
                        "image_name": "test",
                        "image_id": "bfb2de92-e7b9-4820-9522-416d8f2c812a"
                    }
                }
            ],
            "sub_jobs_list": [
                "9a175ac792fa12d20193003205b22be1"
            ]
        }
    }
support.huaweicloud.com/api-ims/ims_03_0905.html