Attaching a volume to a server

Storage Advisor Embedded User Guide

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

The following request connects all paths between a server and a volume.

Execution permission

Note:

You cannot connect a path between a volume and a server to which a host group (or iSCSI target) that is attached to a virtual storage machine has been added.

Storage Administrator (Provisioning)

Request line

POST base-URL/simple/v1/objects/volume-server-connections

Request message

Object ID
None.
Query parameters
None.
Body

The following is an example of setting up a connection for a path between the volume with ID 100 and the server with ID 10:

{
  "volumeIds": [
    100
  ],
  "serverIds": [
    10
  ]
}

Parameter

Type

Description

volumeIds

int[]

(Required) Specify the ID of the volume to attach as a value in the range from 0 through 65279.

serverIds

int[]

(Required) IDs of the servers to which the volume is attached

Specify the server IDs of all servers to which the volume is attached as values in the range from 0 through 4095.

Response message

Body

Attribute

Type

Description

statusResource

string

URL used to obtain the results of the connect the volume to the server 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/volume-server-connections