Assigning LDEVs to a CLPR

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 assigns LDEVs to a CLPR. You can use this API function to assign LDEVs to a created CLPR or to move an already assigned LDEV to a different CLPR.
Note:

If you want to assign external volumes to a CLPR, see the description of how to assign external parity groups to a CLPR.

Execution permission

Storage Administrator (System Resource Management)

Request line

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

Request message

Object ID
Specify the value of ldevId that was obtained by the processing to get information about volumes.

Attribute

Type

Description

ldevId

int

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

Query parameters
None.
Body
{
  "parameters": {
    "clprId": 2
  }
}

Attribute

Type

Description

clprId

int

(Required) CLPR ID of the CLPR to which the LDEV is to be assigned

Specify a decimal (base 10) number in the range from 0 to 31.

Response message

Body

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

Attribute

Description

affectedResources

URL of the LDEV that was assigned to the CLPR

Action template

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

Status codes

For details on the status codes of the request for this operation, see the description on HTTP status codes.

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/100/actions/assign-clpr

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/100/actions/assign-clpr/invoke