Skip to main content

Create a volume using iSCSI

Contributors

You can use this workflow to create a volume accessed through iSCSI.

Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:

Create volume using iSCSI for single node

You can use this workflow to create a volume using the iSCSI protocol for a single node working environment.

There are two workflows available depending on whether a new or existing iGroup is used. You need to select the correct workflow:

Create volume using iSCSI with a new iGroup

Note If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.

1. Select the working environment

Perform the workflow Get working environments and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter. From the capacityFeatures field in the response, choose the value of the capacityTier parameter.

2. Select the aggregate

Perform the workflow Get aggregates and choose the name for the aggregateName value. From the providerVolumes field in the response, you must also choose the value of the providerVolumeType parameter, the value of the iops parameter, and the value of the throughput parameter.

3. Choose the size for the disk

Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.

4. Choose the iscsiInfo parameters

You must choose the following values for the REST API call:

  • A unique igroup name for igroupCreationRequestigroupName parameter

  • The required iqn’s to igroupCreationRequestinitiators parameter.

  • The required operating system for the osName parameter from one of the following:

    • windows

    • linux

    • vmware

    • windows_2008

    • windows_gpt

5. Create the quote

Perform the workflow Create quote.This is a recommended step but is not mandatory.

6. Create the volume

HTTP method Path

POST

/occm/api/gcp/vsa/volumes

curl example
curl --location --request POST 'https://api.bluexp.netapp.com/occm/api/gcp/vsa/volumes?createAggregateIfNotFound=false' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' --d @JSONinput
Curl
Input

The JSON input example includes the minimum list of input parameters, including:

  • <WORKING_ENV_ID> (workingEnvironmentId) string

  • <SVM_NAME> (svmName) string

  • <AGGR_NAME> (aggregateName) string

If aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.

JSON input example
{
  "workingEnvironmentId": "VsaWorkingEnvironment-SfpVUZSc",
  "svmName": "svm1",
  "aggregateName": "aggr1",
  "name": "gcp_vol_ha_iscsi",
  "size": {
    "size": 100,
    "unit": "GB"
  },
    "snapshotPolicyName": "default",
    "igroupCreationRequest": {
        "igroupName": "myIgroup",
        "initiators": [
            "iqn.1994-05.com.redhat:96de86825216",
            "iqn.1994-05.com.redhat:96de86823426"
        ]
    },
    "osName": "linux"
  },
  "enableThinProvisioning": true,
  "enableCompression": true,
  "enableDeduplication": true,
  "maxNumOfDisksApprovedToAdd": 0,
  "evCapacityApprovedToAdd": null,
  "verifyNameUniqueness": true,
  "providerVolumeType": "pd-ssd",
  "iops": null, "throughput": null,
  "capacityTier": "cloudStorage",
  "tieringPolicy": "auto",
  "minimumCoolingDays": 31
}
JSON
Output

None

Create volume using iSCSI with an existing iGroup

Note If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.

1. Select the working environment

Perform the workflow Get working environments and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter.From the capacityFeatures field in the response, choose the value of the capacityTier parameter.

2. Select the aggregate

Perform the workflow Get aggregates and choose the name for the aggregateName value.

3. Choose the size for the disk

Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.

4. Choose the iGroup

Perform the workflow Get iGroups and choose the igroups for the iscasiInfoigroups value. Also select the osType value for the iscasiInfoosName.

5. Create the quote

Perform the workflow Create quote. This is a recommended step but is not mandatory.

6. Create the volume

HTTP method Path

POST

/occm/api/gcp/ha/volumes

curl example
curl --location --request POST 'https://api.bluexp.netapp.com/occm/api/gcp/vsa/volumes' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' --d @JSONinput
Curl
Input

The JSON input example includes the minimum list of input parameters, including:

  • <WORKING_ENV_ID> (workingEnvironmentId) string

  • <SVM_NAME> (svmName) string

  • <AGGR_NAME> (aggregateName) string

If an aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.

JSON input example
{
  "workingEnvironmentId": "VsaWorkingEnvironment-UvFmWXoD",
  "svmName": "svm_zivaws01we01",
  "aggregateName": "aggr1",
  "name": "zivaws01we01vol05Iscsi",
  "size": {
    "size": 100,
    "unit": "GB"
  },
  "iscsiInfo": {
    "igroups": ["zivIgroup1"],
    "osName": "linux"
  },
  "snapshotPolicyName": "default",
  "enableThinProvisioning": true,
  "enableCompression": true,
  "enableDeduplication": true,
  "maxNumOfDisksApprovedToAdd": 0
}
JSON
Output

None

Create volume using iSCSI for high availability pair

You can use this workflow to create a volume using the iSCSI protocol for an HA working environment.

There are two workflows available depending on whether a new or existing iGroup is used. You need to select the correct workflow:

Create volume using iSCSI with a new iGroup

Note If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.

1. Select the working environment

Perform the workflow Get working environments and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter. From the capacityFeatures field in the response, choose the value of the capacityTier parameter.

2. Select the aggregate

Perform the workflow Get aggregates and choose the name for the aggregateName value. From the providerVolumes field in the response, you must also choose the value of the providerVolumeType parameter, the value of the iops parameter, and the value of the throughput parameter.

3. Choose the size for the disk

Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.

4. Choose the iscsiInfo parameters

You must choose the following values for the REST API call:

  • A unique igroup name for igroupCreationRequestigroupName parameter

  • The required iqn’s to igroupCreationRequestinitiators parameter.

  • The required operating system for the osName parameter from one of the following:

    • windows

    • linux

    • vmware

    • windows_2008

    • windows_gpt

5. Create the quote

Perform the workflow Create quote.This is a recommended step but is not mandatory.

6. Create the volume

HTTP method Path

POST

/occm/api/gcp/vsa/volumes

curl example
curl --location --request POST 'https://api.bluexp.netapp.com/occm/api/gcp/ha/volumes' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' --d @JSONinput
Curl
Input

The JSON input example includes the minimum list of input parameters, including:

  • <WORKING_ENV_ID> (workingEnvironmentId) string

  • <SVM_NAME> (svmName) string

  • <AGGR_NAME> (aggregateName) string

If aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.

JSON input example
{
  "workingEnvironmentId": "VsaWorkingEnvironment-SfpVUZSc",
  "svmName": "svm1",
  "aggregateName": "aggr1",
  "name": "gcp_vol_ha_iscsi",
  "size": {
    "size": 100,
    "unit": "GB"
  },
    "snapshotPolicyName": "default",
    "igroupCreationRequest": {
        "igroupName": "myIgroup",
        "initiators": [
            "iqn.1994-05.com.redhat:96de86825216",
            "iqn.1994-05.com.redhat:96de86823426"
        ]
    },
    "osName": "linux"
  },
  "enableThinProvisioning": true,
  "enableCompression": true,
  "enableDeduplication": true,
  "maxNumOfDisksApprovedToAdd": 0,
  "evCapacityApprovedToAdd": null,
  "verifyNameUniqueness": true,
  "providerVolumeType": "pd-ssd",
  "iops": null, "throughput": null,
  "capacityTier": "cloudStorage",
  "tieringPolicy": "auto",
  "minimumCoolingDays": 31
}
JSON
Output

None

Create volume using iSCSI with an existing iGroup

Note If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.

1. Select the working environment

Perform the workflow Get working environments and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter.

2. Select the aggregate

Perform the workflow Get aggregates and choose the name for the aggregateName value.

3. Choose the size for the disk

Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.

4. Choose the iGroup

Perform the workflow Get iGroups and choose the igroups for the iscasiInfoigroups value. Also select the osType value for the iscasiInfoosName.

5. Create the quote

Perform the workflow Create quote. This is a recommended step but is not mandatory.

6. Create the volume

HTTP method Path

POST

/occm/api/gcp/vsa/volumes

curl example
curl --location --request POST 'https://api.bluexp.netapp.com/occm/api/gcp/ha/volumes' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' --d @JSONinput
Curl
Input

The JSON input example includes the minimum list of input parameters, including:

  • <WORKING_ENV_ID> (workingEnvironmentId) string

  • <SVM_NAME> (svmName) string

  • <AGGR_NAME> (aggregateName) string

If an aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.

JSON input example
{
  "workingEnvironmentId": "VsaWorkingEnvironment-UvFmWXoD",
  "svmName": "svm_zivaws01we01",
  "aggregateName": "aggr1",
  "name": "zivaws01we01vol05Iscsi",
  "size": {
    "size": 100,
    "unit": "GB"
  },
  "iscsiInfo": {
    "igroups": ["zivIgroup1"],
    "osName": "linux"
  },
  "snapshotPolicyName": "default",
  "enableThinProvisioning": true,
  "enableCompression": true,
  "enableDeduplication": true,
  "maxNumOfDisksApprovedToAdd": 0
}
JSON
Output

None