/AWS1/IF_ELB=>DESCRIBELOADBALANCERPOLICIES()¶
About DescribeLoadBalancerPolicies¶
Describes the specified policies.
If you specify a load balancer name, the action returns the descriptions of all policies created for the load balancer.
If you specify a policy name associated with your load balancer, the action returns the description of that policy.
If you don't specify a load balancer name, the action returns descriptions of the specified sample policies, or descriptions of all sample policies.
The names of the sample policies have the ELBSample- prefix.
Method Signature¶
METHODS /AWS1/IF_ELB~DESCRIBELOADBALANCERPOLICIES
IMPORTING
!IV_LOADBALANCERNAME TYPE /AWS1/ELBACCESSPOINTNAME OPTIONAL
!IT_POLICYNAMES TYPE /AWS1/CL_ELBPOLICYNAMES_W=>TT_POLICYNAMES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_elbdscloadbalancerp01
RAISING
/AWS1/CX_ELBACCPOINTNOTFOUNDEX
/AWS1/CX_ELBPOLICYNOTFOUNDEX
/AWS1/CX_ELBCLIENTEXC
/AWS1/CX_ELBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_loadbalancername TYPE /AWS1/ELBACCESSPOINTNAME /AWS1/ELBACCESSPOINTNAME¶
The name of the load balancer.
it_policynames TYPE /AWS1/CL_ELBPOLICYNAMES_W=>TT_POLICYNAMES TT_POLICYNAMES¶
The names of the policies.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_elbdscloadbalancerp01 /AWS1/CL_ELBDSCLOADBALANCERP01¶
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->describeloadbalancerpolicies(
it_policynames = VALUE /aws1/cl_elbpolicynames_w=>tt_policynames(
( new /aws1/cl_elbpolicynames_w( |string| ) )
)
iv_loadbalancername = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_policydescriptions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_policyname = lo_row_1->get_policyname( ).
lv_policytypename = lo_row_1->get_policytypename( ).
LOOP AT lo_row_1->get_policyattributedescs( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_attributename = lo_row_3->get_attributename( ).
lv_attributevalue = lo_row_3->get_attributevalue( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
To describe a policy associated with a load balancer¶
This example describes the specified policy associated with the specified load balancer.
DATA(lo_result) = lo_client->describeloadbalancerpolicies(
it_policynames = VALUE /aws1/cl_elbpolicynames_w=>tt_policynames(
( new /aws1/cl_elbpolicynames_w( |my-authentication-policy| ) )
)
iv_loadbalancername = |my-load-balancer|
).