Setting a virtual LDEV number

REST API Reference Guide for Virtual Storage Platform 5000, Virtual Storage Platform E Series, and Virtual Storage Platform G/F Series

Version
93-07-0x
90-09-0x
88-08-10
Audience
anonymous
Part Number
MK-98RD9014-17
The following request sets a virtual LDEV number for an LDEV.

Execution permission

Storage Administrator (Provisioning)

Request line

POST base-URL/v1/objects/ldevs/object-ID/actions/assign-virtual-ldevid/invoke

Request message

Object ID

Specify the ldevId value obtained by getting information about volumes.

Attribute

Type

Description

ldevId

int

(Required) Specify the LDEV number with a decimal (base 10) number.

Query parameters
None.
Body

The following coding example sets the virtual LDEV number 405 for a LDEV:

{
  "parameters": {
    "virtualLdevId": 405
  }
}

Attribute

Type

Description

virtualLdevId

int

(Required) Specify the virtual LDEV number with a decimal (base 10) number.

If you specify 65535, the reserved attribute of global-active device will be set.

Response message

Body

A job object is returned. For details on attributes other than affectedResources, see the section explaining job objects.

Attribute

Description

affectedResources

URL of the LDEV for which the virtual LDEV number is set

Action template

GET base-URL/v1/objects/ldevs/object-ID/actions/assign-virtual-ldevid

Status codes

The following table describes the meaning of the status code of the request for this operation. For details on other status codes, see the description on HTTP status codes.

Status code

Message

Description

412

Precondition Failed

The virtual LDEV number is already set for the target LDEV.

Coding example

To get an action template:

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" -X GET https://192.0.2.100/ConfigurationManager/v1/objects/ldevs/1/actions/assign-virtual-ldevid

To run the request after getting an action template:

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" -X POST --data-binary @./InputParameters.json https://192.0.2.100/ConfigurationManager/v1/objects/ldevs/1/actions/assign-virtual-ldevid/invoke