Skip to content

/AWS1/CL_STG=>UPDATEVTLDEVICETYPE()

About UpdateVTLDeviceType

Updates the type of medium changer in a tape gateway. When you activate a tape gateway, you select a medium changer type for the tape gateway. This operation enables you to select a different type of medium changer after a tape gateway is activated. This operation is only supported in the tape gateway type.

Method Signature

IMPORTING

Required arguments:

iv_vtldevicearn TYPE /AWS1/STGVTLDEVICEARN /AWS1/STGVTLDEVICEARN

The Amazon Resource Name (ARN) of the medium changer you want to select.

iv_devicetype TYPE /AWS1/STGDEVICETYPE /AWS1/STGDEVICETYPE

The type of medium changer you want to select.

Valid Values: STK-L700 | AWS-Gateway-VTL | IBM-03584L32-0402

RETURNING

oo_output TYPE REF TO /aws1/cl_stgupdvtldevtypeout /AWS1/CL_STGUPDVTLDEVTYPEOUT

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_stg~updatevtldevicetype(
  iv_devicetype = |string|
  iv_vtldevicearn = |string|
).

This is an example of reading all possible response values

lv_vtldevicearn = lo_result->get_vtldevicearn( ).

To update a VTL device type

Updates the type of medium changer in a gateway-VTL after a gateway-VTL is activated.

DATA(lo_result) = lo_client->/aws1/if_stg~updatevtldevicetype(
  iv_devicetype = |Medium Changer|
  iv_vtldevicearn = |arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B/device/AMZN_SGW-1FAD4876_MEDIACHANGER_00001|
).