/AWS1/IF_EBN=>SWAPENVIRONMENTCNAMES()¶
About SwapEnvironmentCNAMEs¶
Swaps the CNAMEs of two environments.
Method Signature¶
METHODS /AWS1/IF_EBN~SWAPENVIRONMENTCNAMES
IMPORTING
!IV_SOURCEENVIRONMENTID TYPE /AWS1/EBNENVIRONMENTID OPTIONAL
!IV_SOURCEENVIRONMENTNAME TYPE /AWS1/EBNENVIRONMENTNAME OPTIONAL
!IV_DESTINATIONENVIRONMENTID TYPE /AWS1/EBNENVIRONMENTID OPTIONAL
!IV_DSTENVIRONMENTNAME TYPE /AWS1/EBNENVIRONMENTNAME OPTIONAL
RAISING
/AWS1/CX_EBNCLIENTEXC
/AWS1/CX_EBNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_sourceenvironmentid TYPE /AWS1/EBNENVIRONMENTID /AWS1/EBNENVIRONMENTID¶
The ID of the source environment.
Condition: You must specify at least the
SourceEnvironmentIDor theSourceEnvironmentName. You may also specify both. If you specify theSourceEnvironmentId, you must specify theDestinationEnvironmentId.
iv_sourceenvironmentname TYPE /AWS1/EBNENVIRONMENTNAME /AWS1/EBNENVIRONMENTNAME¶
The name of the source environment.
Condition: You must specify at least the
SourceEnvironmentIDor theSourceEnvironmentName. You may also specify both. If you specify theSourceEnvironmentName, you must specify theDestinationEnvironmentName.
iv_destinationenvironmentid TYPE /AWS1/EBNENVIRONMENTID /AWS1/EBNENVIRONMENTID¶
The ID of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentIDor theDestinationEnvironmentName. You may also specify both. You must specify theSourceEnvironmentIdwith theDestinationEnvironmentId.
iv_dstenvironmentname TYPE /AWS1/EBNENVIRONMENTNAME /AWS1/EBNENVIRONMENTNAME¶
The name of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentIDor theDestinationEnvironmentName. You may also specify both. You must specify theSourceEnvironmentNamewith theDestinationEnvironmentName.
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->swapenvironmentcnames(
iv_destinationenvironmentid = |string|
iv_dstenvironmentname = |string|
iv_sourceenvironmentid = |string|
iv_sourceenvironmentname = |string|
).
To swap environment CNAMES¶
The following operation swaps the assigned subdomains of two environments:
lo_client->swapenvironmentcnames(
iv_dstenvironmentname = |my-env-green|
iv_sourceenvironmentname = |my-env-blue|
).