DescribeVTLDevices - Storage Gateway

DescribeVTLDevices

Returns a description of virtual tape library (VTL) devices for the specified tape gateway. In the response, Storage Gateway returns VTL device information.

This operation is only supported in the tape gateway type.

Request Syntax

{ "GatewayARN": "string", "Limit": number, "Marker": "string", "VTLDeviceARNs": [ "string" ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

GatewayARN

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and AWS Region.

Type: String

Length Constraints: Minimum length of 50. Maximum length of 500.

Required: Yes

Limit

Specifies that the number of VTL devices described be limited to the specified number.

Type: Integer

Valid Range: Minimum value of 1.

Required: No

Marker

An opaque string that indicates the position at which to begin describing the VTL devices.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1000.

Required: No

VTLDeviceARNs

An array of strings, where each string represents the Amazon Resource Name (ARN) of a VTL device.

Note

All of the specified VTL devices must be from the same gateway. If no VTL devices are specified, the result will contain all devices on the specified gateway.

Type: Array of strings

Length Constraints: Minimum length of 50. Maximum length of 500.

Required: No

Response Syntax

{ "GatewayARN": "string", "Marker": "string", "VTLDevices": [ { "DeviceiSCSIAttributes": { "ChapEnabled": boolean, "NetworkInterfaceId": "string", "NetworkInterfacePort": number, "TargetARN": "string" }, "VTLDeviceARN": "string", "VTLDeviceProductIdentifier": "string", "VTLDeviceType": "string", "VTLDeviceVendor": "string" } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

GatewayARN

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and AWS Region.

Type: String

Length Constraints: Minimum length of 50. Maximum length of 500.

Marker

An opaque string that indicates the position at which the VTL devices that were fetched for description ended. Use the marker in your next request to fetch the next set of VTL devices in the list. If there are no more VTL devices to describe, this field does not appear in the response.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1000.

VTLDevices

An array of VTL device objects composed of the Amazon Resource Name (ARN) of the VTL devices.

Type: Array of VTLDevice objects

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerError

An internal server error has occurred during the request. For more information, see the error and message fields.

HTTP Status Code: 400

InvalidGatewayRequestException

An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.

HTTP Status Code: 400

Examples

Get descriptions of the VTL devices on a gateway

The following example gets descriptions of all the VTL devices on a gateway with ID sgw-12A3456B. The request identifies the gateway by ARN. In the request, string 999999999999 is the account number associated with the AWS account sending the request. Note that the response shown is truncated, it shows the media changer and only two tape drives. The trailing string in each device ARN is the device ID.

Sample Request

POST / HTTP/1.1 Host: storagegateway.us-east-2.amazonaws.com x-amz-Date: 20131025T120000Z Authorization: CSOC7TJPLR0OOKIRLGOHVAICUFVV4KQNSO5AEMVJF66Q9EXAMPLE Content-type: application/x-amz-json-1.1 x-amz-target: StorageGateway_20130630.DescribeVTLDevices { "GatewayARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B" }

Sample Response

{ "GatewayARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B", "VTLDevices": [ { "DeviceiSCSIAttributes": { "ChapEnabled": "false", "NetworkInterfaceId": "*", "NetworkInterfacePort": "3260", "TargetARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:sgw-1fad4876-mediachanger" }, "VTLDeviceARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_MEDIACHANGER_00001", "VTLDeviceProductIdentifier": "L700", "VTLDeviceType": "Medium Changer", "VTLDeviceVendor": "STK" }, { "DeviceiSCSIAttributes": { "ChapEnabled": "false", "NetworkInterfaceId": "*", "NetworkInterfacePort": "3260", "TargetARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:sgw-1fad4876-tapedrive-01" }, "VTLDeviceARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_TAPEDRIVE_00001", "VTLDeviceProductIdentifier": "ULT3580-TD5", "VTLDeviceType": "Tape Drive", "VTLDeviceVendor": "IBM" }, { "DeviceiSCSIAttributes": { "ChapEnabled": "false", "NetworkInterfaceId": "*", "NetworkInterfacePort": "3260", "TargetARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:sgw-1fad4876-tapedrive-02" }, "VTLDeviceARN": "arn:aws:storagegateway:us-east-2:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_TAPEDRIVE_00002", "VTLDeviceProductIdentifier": "ULT3580-TD5", "VTLDeviceType": "Tape Drive", "VTLDeviceVendor": "IBM" } ] }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: