Skip to content

/AWS1/CL_MDS=>DESCRIBECONTAINER()

About DescribeContainer

Retrieves the properties of the requested container. This request is commonly used to retrieve the endpoint of a container. An endpoint is a value assigned by the service when a new container is created. A container's endpoint does not change after it has been assigned. The DescribeContainer request returns a single Container object based on ContainerName. To return all Container objects that are associated with a specified AWS account, use ListContainers.

Method Signature

IMPORTING

Optional arguments:

iv_containername TYPE /AWS1/MDSCONTAINERNAME /AWS1/MDSCONTAINERNAME

The name of the container to query.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdsdescrcontainerout /AWS1/CL_MDSDESCRCONTAINEROUT

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_mds~describecontainer( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_container = lo_result->get_container( ).
  IF lo_container IS NOT INITIAL.
    lv_endpoint = lo_container->get_endpoint( ).
    lv_timestamp = lo_container->get_creationtime( ).
    lv_containerarn = lo_container->get_arn( ).
    lv_containername = lo_container->get_name( ).
    lv_containerstatus = lo_container->get_status( ).
    lv_containeraccesslogginge = lo_container->get_accessloggingenabled( ).
  ENDIF.
ENDIF.