Skip to content

/AWS1/CL_TCB=>PUTSOLNETWORKPACKAGECONTENT()

About PutSolNetworkPackageContent

Uploads the contents of a network package.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Method Signature

IMPORTING

Required arguments:

iv_nsdinfoid TYPE /AWS1/TCBNSDINFOID /AWS1/TCBNSDINFOID

Network service descriptor info ID.

iv_file TYPE /AWS1/TCBSENSITIVEBLOB /AWS1/TCBSENSITIVEBLOB

Network package file.

Optional arguments:

iv_contenttype TYPE /AWS1/TCBPACKAGECONTENTTYPE /AWS1/TCBPACKAGECONTENTTYPE

Network package content type.

RETURNING

oo_output TYPE REF TO /aws1/cl_tcbputsolnetworkpac01 /AWS1/CL_TCBPUTSOLNETWORKPAC01

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_tcb~putsolnetworkpackagecontent(
  iv_contenttype = |string|
  iv_file = '5347567362473873563239796247513D'
  iv_nsdinfoid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_nsdinfoid = lo_result->get_id( ).
  lv_nsdinfoarn = lo_result->get_arn( ).
  lv_nsdid = lo_result->get_nsdid( ).
  lv_string = lo_result->get_nsdname( ).
  lv_string = lo_result->get_nsdversion( ).
  LOOP AT lo_result->get_vnfpkgids( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_vnfpkgid = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  lo_putsolnetworkpackagecon = lo_result->get_metadata( ).
  IF lo_putsolnetworkpackagecon IS NOT INITIAL.
    lo_networkartifactmeta = lo_putsolnetworkpackagecon->get_nsd( ).
    IF lo_networkartifactmeta IS NOT INITIAL.
      LOOP AT lo_networkartifactmeta->get_overrides( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_string = lo_row_3->get_name( ).
          lv_string = lo_row_3->get_defaultvalue( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDIF.

Upload the network package content of an NSD archive

Upload the network package content of an NSD archive

DATA(lo_result) = lo_client->/aws1/if_tcb~putsolnetworkpackagecontent(
  iv_contenttype = |application/zip|
  iv_file = '5545734442425141414141414150714C69564D4141414141414141414141414141'
  iv_nsdinfoid = |np-0d5b823eb5c2a9241|
).