Bulk_move

POST v1/volumes/actions/bulk_move

Description

Move volumes and their related volumes to another pool. To change a single volume's folder assignment (while remaining in the same pool), use a volume update operation to change the folder_id attribute.

Normal Response Codes

200

HTTP Error Codes

400 401 403 404 409 500 501 503

Detail Codes

SM_cannot_read_object

SM_ealready

SM_empty_vol

SM_enospc

SM_folder_not_found

SM_folder_volmv_enospace

SM_invalid_arg_value

SM_invalid_path_variable

SM_invalid_query_param

SM_limit_scope

SM_limit_volmv_hret_snap_pool

SM_malformed_url

SM_missing_arg

SM_no_action_found

SM_no_method_for_URL_pattern

SM_no_operation_found

SM_no_path_found

SM_pool_no_src_array

SM_pool_not_found

SM_pool_unknown

SM_pool_usage_unavailable

SM_too_many

SM_unexpected_arg

SM_unexpected_child

SM_unexpected_query_param

SM_version_name

SM_vol_unknown

SM_vol_usage_unavailable

SM_volmv_ealready

SM_volmv_einprog

SM_volmv_enospace

SM_volmv_incompatible_agent_type

SM_volmv_vvol

Request

Parameter Type JSON Type Description Mandatory
vol_ids NsObjectIDList Array of NsObjectID IDs of the volumes to move. A list of object ids. true
dest_pool_id NsObjectID string ID of the destination pool or folder. Specify a pool ID when the volumes should not be in a folder; otherwise, specify a folder ID and the pool will be derived from the folder. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'. true

JSON Request


            

{
    "data" : {
        "dest_pool_id" : "0a00000000000004d3000000000000000000000002",
        "vol_ids" : [
            "0600000000000004d3000000000000000000000005",
            "0600000000000004d3000000000000000000000006"
        ]
    }
}

       
         

Response

Type: NsVolumeListReturn

Member Type JSON Type Description
vol_list NsVolumeList array A list of volume names and IDs. List of volumes.

JSON Response


            

{
    "data" : {
        "vol_list" : [
            {
                "id" : "0600000000000004d3000000000000000000000005",
                "vol_id" : "0600000000000004d3000000000000000000000005",
                "name" : "vol0.762157726640911"
                "vol_name" : "vol0.762157726640911"
            },
            {
                "id" : "0600000000000004d3000000000000000000000006",
                "vol_id" : "0600000000000004d3000000000000000000000006",
                "name" : "vol0.762157726640912"
                "vol_name" : "vol0.762157726640912"
            }
        ]
    }
}