CreateStorageContainer

You can use the CreateStorageContainer method to create a Virtual Volume (VVol) storage container. You can use storage containers for reporting and resource allocation. You need to create at least one storage container to use the Virtual Volumes feature.

Parameters

This method has the following input parameters:

Name Description Type Default value Required
name Name of the storage container. Follows Element software account naming restrictions. string None Yes
accountID Non-storage container account that will become a storage container. integer None No
initiatorSecret The secret for CHAP authentication for the initiator. string None No
targetSecret The secret for CHAP authentication for the target. string None No

Return value

This method has the following return value:

Name Description Type
storageContainer Object containing Information about the newly created storage container. storageContainer

Request example

Requests for this method are similar to the following example:

{
  "method": "CreateStorageContainer",
    "params": {
        "name" : "example"
    },
    "id": 1
}

Response example

This method returns a response similar to the following example:

{
  "id": 1,
  "result": {
    "storageContainer": {
      "accountID": 8,
      "initiatorSecret": "rVTOi25^H.d;cP}l",
      "name": "example",
      "protocolEndpointType": "SCSI",
      "status": "active",
      "storageContainerID": "a9ec1138-e386-4a44-90d7-b9acbbc05176",
      "targetSecret": "6?AEIxWpvo6,!boM"
    }
  }
}