Skip to content

/AWS1/CL_EC2=>DESCRIBEREGIONS()

About DescribeRegions

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Amazon EC2 service endpoints.

For information about enabling and disabling Regions for your account, see Specify which Amazon Web Services Regions your account can use in the Amazon Web Services Account Management Reference Guide.

The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

Method Signature

IMPORTING

Optional arguments:

IT_FILTERS TYPE /AWS1/CL_EC2FILTER=>TT_FILTERLIST TT_FILTERLIST

The filters.

  • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

  • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

  • region-name - The name of the Region (for example, us-east-1).

IT_REGIONNAMES TYPE /AWS1/CL_EC2REGIONNAMESTRLST_W=>TT_REGIONNAMESTRINGLIST TT_REGIONNAMESTRINGLIST

The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

IV_ALLREGIONS TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Indicates whether to display all Regions, including Regions that are disabled for your account.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2DESCRREGIONSRESULT /AWS1/CL_EC2DESCRREGIONSRESULT