Skip to content

/AWS1/IF_EVS=>DELETEENVIRONMENTCONNECTOR()

About DeleteEnvironmentConnector

Deletes a connector from an Amazon EVS environment.

Before deleting a connector, you must remove all entitlements that are associated with the same vCenter.

Method Signature

METHODS /AWS1/IF_EVS~DELETEENVIRONMENTCONNECTOR
  IMPORTING
    !IV_CLIENTTOKEN TYPE /AWS1/EVSCLIENTTOKEN OPTIONAL
    !IV_ENVIRONMENTID TYPE /AWS1/EVSENVIRONMENTID OPTIONAL
    !IV_CONNECTORID TYPE /AWS1/EVSCONNECTORID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_evsdeleteenvcnctrrsp
  RAISING
    /AWS1/CX_EVSRESOURCENOTFOUNDEX
    /AWS1/CX_EVSTHROTTLINGEX
    /AWS1/CX_EVSVALIDATIONEX
    /AWS1/CX_EVSCLIENTEXC
    /AWS1/CX_EVSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_environmentid TYPE /AWS1/EVSENVIRONMENTID /AWS1/EVSENVIRONMENTID

A unique ID for the environment that the connector belongs to.

iv_connectorid TYPE /AWS1/EVSCONNECTORID /AWS1/EVSCONNECTORID

A unique ID for the connector to be deleted.

Optional arguments:

iv_clienttoken TYPE /AWS1/EVSCLIENTTOKEN /AWS1/EVSCLIENTTOKEN

This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.

A unique, case-sensitive identifier that you provide to ensure the idempotency of the connector deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.

RETURNING

oo_output TYPE REF TO /aws1/cl_evsdeleteenvcnctrrsp /AWS1/CL_EVSDELETEENVCNCTRRSP

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->deleteenvironmentconnector(
  iv_clienttoken = |string|
  iv_connectorid = |string|
  iv_environmentid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_connector = lo_result->get_connector( ).
  IF lo_connector IS NOT INITIAL.
    lv_environmentid = lo_connector->get_environmentid( ).
    lv_connectorid = lo_connector->get_connectorid( ).
    lv_connectortype = lo_connector->get_type( ).
    lv_appliancefqdn = lo_connector->get_appliancefqdn( ).
    lv_secretidentifier = lo_connector->get_secretarn( ).
    lv_connectorstate = lo_connector->get_state( ).
    lv_statedetails = lo_connector->get_statedetails( ).
    lv_checkresult = lo_connector->get_status( ).
    LOOP AT lo_connector->get_checks( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_checktype = lo_row_1->get_type( ).
        lv_checkresult = lo_row_1->get_result( ).
        lv_timestamp = lo_row_1->get_lastcheckattempt( ).
        lv_timestamp = lo_row_1->get_impairedsince( ).
      ENDIF.
    ENDLOOP.
    lv_timestamp = lo_connector->get_createdat( ).
    lv_timestamp = lo_connector->get_modifiedat( ).
  ENDIF.
  lo_environmentsummary = lo_result->get_environmentsummary( ).
  IF lo_environmentsummary IS NOT INITIAL.
    lv_environmentid = lo_environmentsummary->get_environmentid( ).
    lv_environmentname = lo_environmentsummary->get_environmentname( ).
    lv_vcfversion = lo_environmentsummary->get_vcfversion( ).
    lv_checkresult = lo_environmentsummary->get_environmentstatus( ).
    lv_environmentstate = lo_environmentsummary->get_environmentstate( ).
    lv_timestamp = lo_environmentsummary->get_createdat( ).
    lv_timestamp = lo_environmentsummary->get_modifiedat( ).
    lv_arn = lo_environmentsummary->get_environmentarn( ).
  ENDIF.
ENDIF.