Skip to content

/AWS1/IF_DPL=>ADDTAGSTOONPREMISESINSTANCES()

About AddTagsToOnPremisesInstances

Adds tags to on-premises instances.

Method Signature

METHODS /AWS1/IF_DPL~ADDTAGSTOONPREMISESINSTANCES
  IMPORTING
    !IT_TAGS TYPE /AWS1/CL_DPLTAG=>TT_TAGLIST OPTIONAL
    !IT_INSTANCENAMES TYPE /AWS1/CL_DPLINSTANCENAMELIST_W=>TT_INSTANCENAMELIST OPTIONAL
  RAISING
    /AWS1/CX_DPLINSTLIMITEXCDEX
    /AWS1/CX_DPLINSTNAMEREQUIREDEX
    /AWS1/CX_DPLINSTANCENOTREGEDEX
    /AWS1/CX_DPLINVALIDINSTNAMEEX
    /AWS1/CX_DPLINVALIDTAGEX
    /AWS1/CX_DPLTAGLIMITEXCEEDEDEX
    /AWS1/CX_DPLTAGREQUIREDEX
    /AWS1/CX_DPLCLIENTEXC
    /AWS1/CX_DPLSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

it_tags TYPE /AWS1/CL_DPLTAG=>TT_TAGLIST TT_TAGLIST

The tag key-value pairs to add to the on-premises instances.

Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.

it_instancenames TYPE /AWS1/CL_DPLINSTANCENAMELIST_W=>TT_INSTANCENAMELIST TT_INSTANCENAMELIST

The names of the on-premises instances to which to add tags.

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.

lo_client->addtagstoonpremisesinstances(
  it_instancenames = VALUE /aws1/cl_dplinstancenamelist_w=>tt_instancenamelist(
    ( new /aws1/cl_dplinstancenamelist_w( |string| ) )
  )
  it_tags = VALUE /aws1/cl_dpltag=>tt_taglist(
    (
      new /aws1/cl_dpltag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
).