AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateCachediSCSIVolume operation. Creates a cached volume on a specified cached volume gateway. This operation is only supported in the cached volume gateway architecture.

Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, the gateway creates the volume and returns information about it. This information includes the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Optionally, you can provide the ARN for an existing volume as the SourceVolumeARN for this cached volume, which creates an exact copy of the existing volume’s latest recovery point. The VolumeSizeInBytes value must be equal to or larger than the size of the copied volume, in bytes.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.StorageGateway.AmazonStorageGatewayRequest
      Amazon.StorageGateway.Model.CreateCachediSCSIVolumeRequest

Namespace: Amazon.StorageGateway.Model
Assembly: AWSSDK.StorageGateway.dll
Version: 3.x.y.z

Syntax

C#
public class CreateCachediSCSIVolumeRequest : AmazonStorageGatewayRequest
         IAmazonWebServiceRequest

The CreateCachediSCSIVolumeRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ClientToken System.String

Gets and sets the property ClientToken.

Public Property GatewayARN System.String

Gets and sets the property GatewayARN.

Public Property NetworkInterfaceId System.String

Gets and sets the property NetworkInterfaceId.

Public Property SnapshotId System.String

Gets and sets the property SnapshotId.

Public Property SourceVolumeARN System.String

Gets and sets the property SourceVolumeARN.

The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The VolumeSizeInBytes value for this new volume must be equal to or larger than the size of the existing volume, in bytes.

Public Property TargetName System.String

Gets and sets the property TargetName.

Public Property VolumeSizeInBytes System.Int64

Gets and sets the property VolumeSizeInBytes.

Examples

Creates a cached volume on a specified cached gateway.

To create a cached iSCSI volume


var response = client.CreateCachediSCSIVolume(new CreateCachediSCSIVolumeRequest 
{
    ClientToken = "cachedvol112233",
    GatewayARN = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
    NetworkInterfaceId = "10.1.1.1",
    SnapshotId = "snap-f47b7b94",
    TargetName = "my-volume",
    VolumeSizeInBytes = 536870912000
});

string targetARN = response.TargetARN;
string volumeARN = response.VolumeARN;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms