Skip to main content

cachedi_scsi_volumes

Creates, updates, deletes, gets or lists a cachedi_scsi_volumes resource.

Overview

Namecachedi_scsi_volumes
TypeResource
Idaws.storagegateway.cachedi_scsi_volumes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cachedi_scsi_volumesarrayAn array of objects where each object contains metadata about one cached volume.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cachedi_scsi_volumesselectregionReturns a description of the gateway volumes specified in the request. This operation is only supported in the cached volume gateway types. The list of gateway volumes in the request must be from one gateway. In the response, Storage Gateway returns volume information sorted by volume Amazon Resource Name (ARN).
create_cachedi_scsi_volumeinsertregion, GatewayARN, VolumeSizeInBytes, TargetName, NetworkInterfaceId, ClientTokenCreates a cached volume on a specified cached volume gateway. This operation is only supported in the cached volume gateway type. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of the gateway volumes specified in the request. This operation is only supported in the cached volume gateway types. The list of gateway volumes in the request must be from one gateway. In the response, Storage Gateway returns volume information sorted by volume Amazon Resource Name (ARN).

SELECT
cachedi_scsi_volumes
FROM aws.storagegateway.cachedi_scsi_volumes
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a cached volume on a specified cached volume gateway. This operation is only supported in the cached volume gateway type. 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.

INSERT INTO aws.storagegateway.cachedi_scsi_volumes (
GatewayARN,
VolumeSizeInBytes,
SnapshotId,
TargetName,
SourceVolumeARN,
NetworkInterfaceId,
ClientToken,
KMSEncrypted,
KMSKey,
Tags,
region
)
SELECT
'{{ GatewayARN }}' /* required */,
{{ VolumeSizeInBytes }} /* required */,
'{{ SnapshotId }}',
'{{ TargetName }}' /* required */,
'{{ SourceVolumeARN }}',
'{{ NetworkInterfaceId }}' /* required */,
'{{ ClientToken }}' /* required */,
{{ KMSEncrypted }},
'{{ KMSKey }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
target_arn,
volume_arn
;