Create IM Assets

Create IM Assets

All the listed privileges are required -

Privileges Description
GLOBAL_CONFIG_MANAGEMENT Caller should have permission to this privilege, to perform this operation.
Request
URI
POST
https://{api_host}//localhost/rest/config/v1/im-assets/action/bulk-create
COPY
Request Body

List of Image management asset object to be created in bulk.

Array of ImageManagementAssetCreateSpec of type(s) application/json
Optional
[
    {
        "base_snapshot_id": "snapshot-1",
        "base_vm_id": "vm-2",
        "clone_type": "INSTANT_CLONE",
        "im_stream_id": "abc16e8f-9ba0-4789-a5dd-6880f32c52df",
        "im_version_id": "6f85b3a5-e7d0-4ad6-a1e3-37168dd1ed51",
        "image_type": "RDSH_APPS",
        "status": "AVAILABLE",
        "vcenter_id": "f148f3e8-db0e-4abb-9c33-7e5205ccd360",
        "vm_template_id": "vm-1"
    }
]
Authentication
This operation uses the following authentication methods.
Responses
200

OK

[
    {
        "error_messages": [
            "Entity does not exist.",
            "Property is mandatory."
        ],
        "id": "6f85b3a5-e7d0-4ad6-a1e3-37168dd1ed51",
        "key": "user1",
        "status_code": 200,
        "timestamp": 1561939200000
    }
]

400

Bad Request

Operation doesn't return any data structure

401

User is not authenticated

Operation doesn't return any data structure

403

Access to the resource is forbidden

Operation doesn't return any data structure