Bulk_create

POST v1/snapshots/actions/bulk_create

Description

Create snapshots on the given set of volumes.

Normal Response Codes

200

HTTP Error Codes

400 401 403 404 409 500 501 503

Detail Codes

SM_cannot_read_object

SM_eexist

SM_einprogress

SM_einval

SM_enoent

SM_invalid_agent_type

SM_invalid_app_uuid

SM_invalid_arg_value

SM_invalid_keyvalue

SM_invalid_path_variable

SM_invalid_query_param

SM_lun_mismatch

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_no_support

SM_not_owner

SM_srv_unreach

SM_unexpected_arg

SM_unexpected_child

SM_unexpected_query_param

SM_version_name

Request

Parameter Type JSON Type Description Mandatory
snap_vol_list NsSnapVolList Array of NsSnapVol List of volumes to snapshot and corresponding snapshot creation attributes. VSS application-synchronized snapshot must specify the 'writable' parameter and set it to true. List of snapshots to create. true
replicate NsBoolean boolean Allow snapshot to be replicated. Possible values: 'true', 'false'. true
vss_snap NsBoolean boolean VSS app-synchronized snapshot; we don't support creation of non app-synchronized sanpshots through this interface; must be set to true. Possible values: 'true', 'false'. true

JSON Request


            
            
            {
                "data" : {
                    "snap_vol_list":[{"vol_id":"0600000000000004d3000000000000000000000007",
                                      "snap_name":"",
                                      "snap_description":"",
                                      "cookie":"",
                                      "online":false,
                                      "writable":true},
                                      {"vol_id":"0600000000000004d3000000000000000000000008",
                                       "snap_name":"",
                                       "snap_description":"",
                                       "cookie":"",
                                       "online":false,
                                       "writable":true}],
                    "replicate":false,
                    "vss_snap":true
               }
            }
            
        
         

Response

Type: NsSnapVolListReturn

Member Type JSON Type Description
snap_ids NsObjectIDKVList array A list of snapshot ids. A list of key value pairs containing object ids as values.

JSON Response


            
            
            {
              "data" : {
                  "snap_ids":[{"id":"0400000000000004d3000000000000000100000001"},
                               {"id":"0400000000000004d3000000000000000200000001"}]
              }
            }