Beispiel #1
0
        public void StorageGatewayCreateStorediSCSIVolume()
        {
            #region to-create-a-stored-iscsi-volume-1471367662813

            var client   = new AmazonStorageGatewayClient();
            var response = client.CreateStorediSCSIVolume(new CreateStorediSCSIVolumeRequest
            {
                DiskId               = "pci-0000:03:00.0-scsi-0:0:0:0",
                GatewayARN           = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
                NetworkInterfaceId   = "10.1.1.1",
                PreserveExistingData = true,
                SnapshotId           = "snap-f47b7b94",
                TargetName           = "my-volume"
            });

            string targetARN         = response.TargetARN;
            string volumeARN         = response.VolumeARN;
            long   volumeSizeInBytes = response.VolumeSizeInBytes;

            #endregion
        }