Update

PUT v1/snapshots/id

Description

Modify snapshot attributes.

Normal Response Codes

200 202

HTTP Error Codes

400 401 403 404 409 500 503

Detail Codes

SM_eexist

SM_einprogress

SM_einval

SM_enoent

SM_enospc

SM_eperm

SM_in_use_app_uuid

SM_invalid_app_uuid

SM_invalid_arg_value

SM_invalid_keyvalue

SM_invalid_path_variable

SM_invalid_query_param

SM_malformed_url

SM_missing_arg

SM_no_action

SM_no_method_for_URL_pattern

SM_no_operation_found

SM_no_path_found

SM_repl_api_unsup

SM_repl_snapshot_sync

SM_too_many

SM_unexpected_arg

SM_unexpected_query_param

SM_version_name

Request

Parameter Type JSON Type Description Mandatory Deprecated
id NsObjectID string Identifier for the snapshot. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'. true  
name NsVolSnapName string Name of snapshot. String of up to 215 alphanumeric, hyphenated, colon, or period-separated characters; but cannot begin with hyphen, colon or period. This type is used for object sets containing volumes, snapshots, snapshot collections and protocol endpoints. false  
description NsDescription string Text description of snapshot. String of up to 255 printable ASCII characters. Example: '99.9999% availability'. false  
vol_id NsObjectID string Parent volume ID. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'. false  
online NsBoolean boolean Online state for a snapshot means it could be mounted for data restore. Possible values: 'true', 'false'. false  
app_uuid NsAppUuid string Application identifier of snapshots. String of up to 255 alphanumeric characters, hyphen, colon, dot and underscore are allowed. Example: 'rfc4122.943f7dc1-5853-497c-b530-f689ccf1bf18'. false  
metadata NsKeyValues Array of NsKeyValue Key-value pairs that augment a snapshot's attributes. List of key-value pairs. Keys must be unique and non-empty. When creating an object, values must be non-empty. When updating an object, an empty value causes the corresponding key to be removed. false  

JSON Request


            

{
   "data" : {
      "name" : "mysnapname",
      "description" : "mydescription",
      "online" : false
   }
}

        
         

Response

Parameter Type JSON Type Description Deprecated
id NsObjectID string Identifier for the snapshot. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'.  
name NsVolSnapName string Name of snapshot. String of up to 215 alphanumeric, hyphenated, colon, or period-separated characters; but cannot begin with hyphen, colon or period. This type is used for object sets containing volumes, snapshots, snapshot collections and protocol endpoints.  
description NsDescription string Text description of snapshot. String of up to 255 printable ASCII characters. Example: '99.9999% availability'.  
size NsUnsignedLong number Size of volume at time of snapshot (in bytes). Unsigned 64-bit integer. Example: 1234.  
vol_name NsVolSnapName string Name of the parent volume in which the snapshot belongs to. String of up to 215 alphanumeric, hyphenated, colon, or period-separated characters; but cannot begin with hyphen, colon or period. This type is used for object sets containing volumes, snapshots, snapshot collections and protocol endpoints.  
vol_id NsObjectID string Parent volume ID. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'.  
snap_collection_name NsVolSnapName string Name of snapshot collection. String of up to 215 alphanumeric, hyphenated, colon, or period-separated characters; but cannot begin with hyphen, colon or period. This type is used for object sets containing volumes, snapshots, snapshot collections and protocol endpoints.  
snap_collection_id NsObjectID string Identifier of snapshot collection. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'.  
online NsBoolean boolean Online state for a snapshot means it could be mounted for data restore. Possible values: 'true', 'false'.  
writable NsBoolean boolean Allow snapshot to be writable. Mandatory and must be set to 'true' for VSS application synchronized snapshots. Possible values: 'true', 'false'.  
offline_reason NsOfflineReason string enum Snapshot offline reason - possible entries: one of 'user', 'recovery', 'replica', 'over_volume_limit', 'over_snapshot_limit', 'over_volume_reserve', 'nvram_loss_recovery'. Possible values: 'user', 'recovery', 'replica', 'over_volume_limit', 'over_snapshot_limit', 'over_volume_reserve', 'over_snapshot_reserve', 'nvram_loss_recovery', 'serial_number_collision', 'encryption_inactive', 'encryption_key_deleted', 'vvol_unbind', 'cache_unpin_in_progress'.  
origin_name NsObjectName string Origination group name. String of up to 64 alphanumeric characters, - and . and : are allowed after first character. Example: 'myobject-5'.  
is_replica NsBoolean boolean Snapshot is a replica from upstream replication partner. Possible values: 'true', 'false'.  
is_unmanaged NsBoolean boolean Is snapshot unmanaged, so that it will not be deleted automatically. Possible values: 'true', 'false'.  
replication_status NsSnapReplStatus string enum Replication status. Possible values: 'complete', 'in_progress', 'pending'.  
access_control_records NsAccessControlRecords Array of NsAccessControlRecord List of access control records that apply to this snapshot. List of access control records associated with a volume or snapshot or protocol endpoint.  
serial_number NsISCSISerialNumber string Identifier for the SCSI protocol. A 32 digit hexadecimal number. Example: '1234123412341234abcdacbdacbdacbd'.  
target_name NsTargetName string The iSCSI Qualified Name (IQN) or the Fibre Channel World Wide Node Name (WWNN) of the target snapshot. The iSCSI Qualified Name (IQN) or the Fibre Channel World Wide Node Name (WWNN) of the target.  
creation_time NsTime number Time when this snapshot was created. Seconds since last epoch i.e. 00:00 January 1, 1970. Example: '3400'.  
last_modified NsTime number Time when this snapshort was last modified. Seconds since last epoch i.e. 00:00 January 1, 1970. Example: '3400'.  
schedule_name NsObjectName string Name of protection schedule. String of up to 64 alphanumeric characters, - and . and : are allowed after first character. Example: 'myobject-5'.  
schedule_id NsObjectID string Identifier of protection schedule. A 42 digit hexadecimal number. Example: '2a0df0fe6f7dc7bb16000000000000000000004817'.  
app_uuid NsAppUuid string Application identifier of snapshots. String of up to 255 alphanumeric characters, hyphen, colon, dot and underscore are allowed. Example: 'rfc4122.943f7dc1-5853-497c-b530-f689ccf1bf18'.  
metadata NsKeyValues Array of NsKeyValue Key-value pairs that augment a snapshot's attributes. List of key-value pairs. Keys must be unique and non-empty. When creating an object, values must be non-empty. When updating an object, an empty value causes the corresponding key to be removed.  
new_data_valid NsBoolean boolean Indicate the usage infomation is valid. Possible values: 'true', 'false'.  
new_data_compressed_bytes NsBytes number The bytes of compressed new data. Unsigned 64-bit integer. Example: '1234'.  
new_data_uncompressed_bytes NsBytes number The bytes of uncompressed new data. Unsigned 64-bit integer. Example: '1234'.  
agent_type NsAgentType string enum External management agent type. Possible values: 'none', 'smis', 'vvol', 'openstack', 'openstackv2'.  
vpd_t10 NsString string The snapshot's T10 Vendor ID-based identifier. Plain string.  
vpd_ieee0 NsString string The first 64 bits of the snapshots's EUI-64 identifier, encoded as a hexadecimal string. Plain string.  
vpd_ieee1 NsString string The last 64 bits of the snapshots's EUI-64 identifier, encoded as a hexadecimal string. Plain string.  

JSON Response


            

{
   "data" : {
      "serial_number" : "ecbade66133403016c9ce900d3040000",
      "schedule_name" : "",
      "access_control_records" : null,
      "size" : 104857600,
      "new_data_valid" : true,
      "new_data_uncompressed_bytes" : 0,
      "new_data_compressed_bytes" : 0,
      "target_name" : "iqn.2007-11.com.storage:vol0.762157726640911-mysnapname-v00000000000004d3.00000005.000004d3.s00000000000004d3.00000005.00000001",
      "creation_time" : 1426776079,
      "id" : "0400000000000004d3000000000000000500000001",
      "metadata" : null,
      "is_replica" : false,
      "snap_collection_name" : "1839760435183120969675506621210208422141419960930933639210",
      "writable" : false,
      "last_modified" : 1426776080,
      "name" : "mysnapname",
      "description" : "mydescription",
      "origin_name" : "g1a1",
      "vol_id" : "0600000000000004d3000000000000000000000005",
      "online" : false,
      "snap_collection_id" : "0500000000000004d3000000000000000000000001",
      "app_uuid" : "",
      "vol_name" : "vol0.762157726640911",
      "offline_reason" : "user",
      "replication_status" : null
   }
}