Skip to content

/AWS1/CL_LWD=>GETWORKLOADDEPLOYMENTPATTERN()

About GetWorkloadDeploymentPattern

Returns details for a given workload and deployment pattern, including the available specifications. You can use the ListWorkloads operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given workload.

Method Signature

IMPORTING

Required arguments:

iv_workloadname TYPE /AWS1/LWDWORKLOADNAME /AWS1/LWDWORKLOADNAME

The name of the workload.

iv_deploymentpatternname TYPE /AWS1/LWDDEPLOYMENTPATTERNNAME /AWS1/LWDDEPLOYMENTPATTERNNAME

The name of the deployment pattern.

RETURNING

oo_output TYPE REF TO /aws1/cl_lwdgetworkloaddeplo01 /AWS1/CL_LWDGETWORKLOADDEPLO01

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_lwd~getworkloaddeploymentpattern(
  iv_deploymentpatternname = |string|
  iv_workloadname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_workloaddeploymentpatte = lo_result->get_workloaddeploymentpat( ).
  IF lo_workloaddeploymentpatte IS NOT INITIAL.
    lv_workloadname = lo_workloaddeploymentpatte->get_workloadname( ).
    lv_deploymentpatternname = lo_workloaddeploymentpatte->get_deploymentpatternname( ).
    lv_workloadversionname = lo_workloaddeploymentpatte->get_workloadversionname( ).
    lv_string = lo_workloaddeploymentpatte->get_displayname( ).
    lv_string = lo_workloaddeploymentpatte->get_description( ).
    lv_workloaddeploymentpatte_1 = lo_workloaddeploymentpatte->get_status( ).
    lv_string = lo_workloaddeploymentpatte->get_statusmessage( ).
    LOOP AT lo_workloaddeploymentpatte->get_specifications( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_name( ).
        lv_string = lo_row_1->get_description( ).
        LOOP AT lo_row_1->get_allowedvalues( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_valuestring = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_string = lo_row_1->get_required( ).
        LOOP AT lo_row_1->get_conditionals( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_string = lo_row_5->get_name( ).
            lv_string = lo_row_5->get_value( ).
            lv_string = lo_row_5->get_comparator( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.

Get details about a specific Workload deployment pattern

Get details about a specific Workload deployment pattern

DATA(lo_result) = lo_client->/aws1/if_lwd~getworkloaddeploymentpattern(
  iv_deploymentpatternname = |adSelfManagedNewVpc|
  iv_workloadname = |MicrosoftActiveDirectory|
).