Skip to content

/AWS1/IF_EC2=>ENABLEIPAMINETREGISTRYASSOC()

About EnableIpamInternetRegistryAssociation

Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM internet registry association by providing BGP Public Key Infrastructure (BPKI) certificate details. After enabling, you can create Route Origin Authorizations (ROAs) for prefixes registered with the internet registry.

Method Signature

METHODS /AWS1/IF_EC2~ENABLEIPAMINETREGISTRYASSOC
  IMPORTING
    !IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
    !IV_IPAMINETREGISTRYASSOCID TYPE /AWS1/EC2IPAMINETREGASSOCID OPTIONAL
    !IV_RPKIVERSION TYPE /AWS1/EC2STRING OPTIONAL
    !IV_SERVICEURI TYPE /AWS1/EC2STRING OPTIONAL
    !IV_CHILDHANDLE TYPE /AWS1/EC2STRING OPTIONAL
    !IV_PARENTHANDLE TYPE /AWS1/EC2STRING OPTIONAL
    !IV_PARENTBPKITA TYPE /AWS1/EC2STRING OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/EC2STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2enbipamnetregascrs
  RAISING
    /AWS1/CX_EC2CLIENTEXC
    /AWS1/CX_EC2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_ipaminetregistryassocid TYPE /AWS1/EC2IPAMINETREGASSOCID /AWS1/EC2IPAMINETREGASSOCID

The ID of the IPAM internet registry association to enable.

iv_rpkiversion TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The RPKI version to use from the Parent Response XML.

iv_serviceuri TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The RPKI service URI for the publication point from the Parent Response XML.

iv_childhandle TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The child handle for the BPKI certificate hierarchy from the Parent Response XML.

iv_parenthandle TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The parent handle for the BPKI certificate hierarchy from the Parent Response XML.

iv_parentbpkita TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The parent BPKI Trust Anchor certificate in PEM format from the Parent Response XML.

Optional arguments:

iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the operation, 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_clienttoken TYPE /AWS1/EC2STRING /AWS1/EC2STRING

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the operation ignores the request, but does not return an error.

RETURNING

oo_output TYPE REF TO /aws1/cl_ec2enbipamnetregascrs /AWS1/CL_EC2ENBIPAMNETREGASCRS

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->enableipaminetregistryassoc(
  iv_childhandle = |string|
  iv_clienttoken = |string|
  iv_dryrun = ABAP_TRUE
  iv_ipaminetregistryassocid = |string|
  iv_parentbpkita = |string|
  iv_parenthandle = |string|
  iv_rpkiversion = |string|
  iv_serviceuri = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_ipaminternetregistryass = lo_result->get_ipaminetregistryassoc( ).
  IF lo_ipaminternetregistryass IS NOT INITIAL.
    lv_string = lo_ipaminternetregistryass->get_ownerid( ).
    lv_ipaminternetregistryass_1 = lo_ipaminternetregistryass->get_ipaminetregistryassocid( ).
    lv_resourcearn = lo_ipaminternetregistryass->get_ipaminetregistryassocarn( ).
    lv_ipamid = lo_ipaminternetregistryass->get_ipamid( ).
    lv_string = lo_ipaminternetregistryass->get_ipamregion( ).
    lv_rir = lo_ipaminternetregistryass->get_rir( ).
    lv_string = lo_ipaminternetregistryass->get_organizationhandle( ).
    lv_string = lo_ipaminternetregistryass->get_description( ).
    lv_ipaminternetregistryass_2 = lo_ipaminternetregistryass->get_state( ).
    lv_string = lo_ipaminternetregistryass->get_childrequestxml( ).
    LOOP AT lo_ipaminternetregistryass->get_tags( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_key( ).
        lv_string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.