Skip to content

/AWS1/CL_RBN=>LISTRULES()

About ListRules

Lists the Recycle Bin retention rules in the Region.

Method Signature

IMPORTING

Required arguments:

IV_RESOURCETYPE TYPE /AWS1/RBNRESOURCETYPE /AWS1/RBNRESOURCETYPE

The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify EBS_SNAPSHOT. To list retention rules that retain EBS-backed AMIs, specify EC2_IMAGE.

Optional arguments:

IV_MAXRESULTS TYPE /AWS1/RBNMAXRESULTS /AWS1/RBNMAXRESULTS

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken value.

IV_NEXTTOKEN TYPE /AWS1/RBNNEXTTOKEN /AWS1/RBNNEXTTOKEN

The token for the next page of results.

IT_RESOURCETAGS TYPE /AWS1/CL_RBNRESOURCETAG=>TT_RESOURCETAGS TT_RESOURCETAGS

Information about the resource tags used to identify resources that are retained by the retention rule.

IV_LOCKSTATE TYPE /AWS1/RBNLOCKSTATE /AWS1/RBNLOCKSTATE

The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_RBNLISTRULESRESPONSE /AWS1/CL_RBNLISTRULESRESPONSE