Skip to content

/AWS1/CL_STG=>DESCRIBESTOREDISCSIVOLUMES()

About DescribeStorediSCSIVolumes

Returns the description of the gateway volumes specified in the request. The list of gateway volumes in the request must be from one gateway. In the response, Storage Gateway returns volume information sorted by volume ARNs. This operation is only supported in stored volume gateway type.

Method Signature

IMPORTING

Required arguments:

it_volumearns TYPE /AWS1/CL_STGVOLUMEARNS_W=>TT_VOLUMEARNS TT_VOLUMEARNS

An array of strings where each string represents the Amazon Resource Name (ARN) of a stored volume. All of the specified stored volumes must be from the same gateway. Use ListVolumes to get volume ARNs for a gateway.

RETURNING

oo_output TYPE REF TO /aws1/cl_stgdscstorediscsivo01 /AWS1/CL_STGDSCSTOREDISCSIVO01

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~describestorediscsivolumes(
  it_volumearns = VALUE /aws1/cl_stgvolumearns_w=>tt_volumearns(
    ( new /aws1/cl_stgvolumearns_w( |string| ) )
  )
).

This is an example of reading all possible response values

LOOP AT lo_result->get_storediscsivolumes( ) into lo_row.
  lv_volumearn = lo_row_1->get_volumearn( ).
  lv_volumeid = lo_row_1->get_volumeid( ).
  lv_volumetype = lo_row_1->get_volumetype( ).
  lv_volumestatus = lo_row_1->get_volumestatus( ).
  lv_volumeattachmentstatus = lo_row_1->get_volumeattachmentstatus( ).
  lv_long = lo_row_1->get_volumesizeinbytes( ).
  lv_doubleobject = lo_row_1->get_volumeprogress( ).
  lv_diskid = lo_row_1->get_volumediskid( ).
  lv_snapshotid = lo_row_1->get_sourcesnapshotid( ).
  lv_boolean2 = lo_row_1->get_preservedexistingdata( ).
  lv_targetarn = lo_volumeiscsiattributes->get_targetarn( ).
  lv_networkinterfaceid = lo_volumeiscsiattributes->get_networkinterfaceid( ).
  lv_integer = lo_volumeiscsiattributes->get_networkinterfaceport( ).
  lv_positiveintobject = lo_volumeiscsiattributes->get_lunnumber( ).
  lv_boolean2 = lo_volumeiscsiattributes->get_chapenabled( ).
  lv_createddate = lo_row_1->get_createddate( ).
  lv_volumeusedinbytes = lo_row_1->get_volumeusedinbytes( ).
  lv_kmskey = lo_row_1->get_kmskey( ).
  lv_targetname = lo_row_1->get_targetname( ).
ENDLOOP.

To describe the volumes of a gateway

Returns the description of the gateway volumes specified in the request belonging to the same gateway.

DATA(lo_result) = lo_client->/aws1/if_stg~describestorediscsivolumes(
  it_volumearns = VALUE /aws1/cl_stgvolumearns_w=>tt_volumearns(
    ( new /aws1/cl_stgvolumearns_w( |arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB| ) )
  )
).