Bulk_set_dedupe

POST v1/volumes/actions/bulk_set_dedupe

Description

Enable or disable dedupe on a list of volumes. If the volumes are not dedupe capable, the operation will fail for the specified volume.

Normal Response Codes

200

HTTP Error Codes

400 401 403 404 409 500 501 503

Detail Codes

SM_cannot_read_object

SM_dedupe_volfam_appcat

SM_ealready

SM_invalid_arg_value

SM_invalid_path_variable

SM_invalid_query_param

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_dedupe_incapable

SM_unexpected_arg

SM_unexpected_child

SM_unexpected_query_param

SM_version_name

SM_vol_dedupe_encryption_invalid

SM_vol_dedupe_invalid_perf_policy

SM_vol_dedupe_move_invalid

SM_vol_dedupe_reserve_invalid

SM_vol_dedupe_unassigned_app_category

Request

Parameter Type JSON Type Description Mandatory
vol_ids NsObjectIDList Array of NsObjectID IDs of the volumes to enable/disable dedupe. A list of object ids. true
dedupe_enabled NsBoolean boolean Dedupe property to be applied to the list of volumes. Possible values: 'true', 'false'. true

JSON Request


            

{
    "data" : {
        "dedupe_enabled" : "true",
        "vol_ids" : [
            "0600000000000004d3000000000000000000000005",
            "0600000000000004d3000000000000000000000006"
        ]
    }
}

       
         

Response

Type:

JSON Response


            

All child requests succeed.
{}

Some child requests failed.
{
    "messages":[
        {"code":"SM_http_conflict","severity":"error","text":"The request could not be completed due to a conflict."},
        {"code":"SM_epartial","severity":"error","text":"Operation is partially completed."}
    ],
    "detailed_messages":{
        "0600000000000004d3000000000000000000000005":{
            "messages":[
                {"code":"SM_ealready","severity":"error","text":"Object is already in requested state."}
            ]
        },
        "0600000000000004d3000000000000000000000006":{
            "data":{"name":"v2"}
        }
    }
}