Mapping a snapshot

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

The following request maps snapshots based on the specified master volume ID of the snapshot and the specified snapshot ID. Mapping a snapshot enables you to use the volume created from the specified snapshot.

Execution permission

Storage Administrator (Local Copy)

Request line

POST base-URL/simple/v1/objects/snapshots/object-ID/actions/map/invoke

Request message

Object ID

Specify the id value obtained by getting snapshot information. The value of the id attribute is obtained in the following format, where the master volume ID of the snapshot and the snapshot ID are linked by a comma. You can specify these values (obtained by getting snapshot information) in the command by using the same format: masterVolumeId followed by snapshotId, linked by a comma.

masterVolumeId,snapshotId

Attribute

Type

Description

masterVolumeId

int

(Required) Master volume ID of the snapshot

snapshotId

int

(Required) Snapshot ID

Query parameters
None.
Body
{
  "poolId": 13
}

Attribute

Type

Description

poolId

int

(Required) Specify the ID of the pool in which the volume to which snapshots are mapped as an integer in the range from 0 through 127.

Note:

When snapshots are mapped, nicknames in the following format are automatically assigned to the volumes created from the snapshots:

"Snapshot of ID:ID-of-master-volume-created-from-snapshot"

Response message

Body

Attribute

Type

Description

statusResource

string

URL used to obtain the results of the map a snapshot request

Note:

Run the API function for obtaining information about the status of the API function that performs asynchronous processing. For details, see Getting status information about an API function that performs asynchronous processing.

Status codes

See HTTP status codes.

Coding example

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session b74777a3f9f04ea8bd8f09847fac48d3" -X POST --data-binary @./InputParameters.json https://192.0.2.100/ConfigurationManager/simple/v1/objects/snapshots/100,3/actions/mount/invoke