Linking Environments Between Subaccounts

Environments in SAP Integration Suite, advanced event mesh represent the operational environments within your organization and allow you to manage event broker services in multiple environments within the same advanced event mesh account. However, if your organization has configured multiple advanced event mesh subaccounts so that you have a separate subaccount for each environment in your organization, you can make one subaccount the primary account for Event Portal. This setup enables you to design your event-driven architecture (EDA) and promote applications to the event broker services in your various environments from a single Event Portal instance.

Considerations for Linking Subaccounts

When you link subaccounts, be aware of the following considerations:

  • You must have the Account Administrator role to link subaccounts.

  • You must pick one subaccount to be your primary subaccount for Event Portal. Event Portal is disabled in all subaccounts that you link to your Event Portal subaccount.

  • In your Event Portal subaccount, you create an environment for every other subaccount that you want to link to Event Portal.

  • Each subaccount that you link to your Event Portal subaccount can have only one environment and can't have any existing application domains or modeled event meshes in its instance of Event Portal.

  • After you link subaccounts, you continue to create and manage event broker services in the subaccount that represents a specific environment; only the Event Portal functionality moves to your Event Portal subaccount.

  • You can be logged in to only one advanced event mesh subaccount at a time. When you move between your primary Event Portal subaccount and the subaccounts containing your event broker services, you log into the account you move to and you are then automatically logged out of the account you left.

Preparing to Link Subaccounts

Before you begin linking subaccounts, complete the following steps:

  1. Decide which subaccount you want to make your primary Event Portal subaccount.

    For example, if you have a subaccount where you're already using Event Portal or one with more than one environment in the subaccount, you may want to use that account.

  2. Make sure that the subaccounts that will link to your Event Portal subaccount each have only one environment and have no application domains or modeled event meshes in its instance of Event Portal.

Linking Subaccounts to a Primary Event Portal Account

Linking a subaccount to the primary Event Portal subaccount requires you to complete three tasks. You can complete the first two tasks in either order, but the link will not be complete until you finish the third task. You must perform these tasks:

  1. Enabling Linking in a Secondary Subaccount
  2. Creating an Environment for a Linked Subaccount
  3. Adding a Link Code to an Event Portal Subaccount

Enabling Linking in a Secondary Subaccount

When you enable linking in a subaccount, Event Portal is disabled in the account. You also generate a link code required by the environment in the primary Event Portal subaccount to communicate with the event broker services in the secondary subaccount as if they were both in the same subaccount.

The link code includes connection details and an API token. Like other API tokens, you cannot later retrieve a copy from the Cloud Console. If you generate a new link code in a secondary account, the old one stops working and must be replaced in the primary account before Runtime Event Manager can reconnect to the operational event broker services in the secondary account.

You must be an Account Administrator to enable linking in a subaccount and generate link codes.

To enable linking and generate a link code, perform these steps:

  1. Log in to the Cloud Console if you have not done so yet. The URL to access the Cloud Console differs based on your SAP BTP region. For more information, see Logging In to the Cloud Console.
  2. On the navigation bar, select User & Account .
  3. Verify that the subaccount the menu shows you are logged into is the one that you want to link to your primary Event Portal subaccount.
  4. On the navigation bar, select User & Account < Account Details.
  5. Select the Account Settings tab.
  6. In the Link to Another advanced event mesh Subaccount section, click Enable Subaccount Linking. If the subaccount has more than one environment, or Event Portal has application domains or modeled event meshes in this subaccount, you cannot select this option.
  7. Click Create Link Code.
  8. Click Copy to copy the link code to your clipboard. 
  9. (Optional) Paste the link code to a .txt file. After you close the dialog, you can't get a new copy of the code.
  10. Click Close.
  11. Follow the steps in Adding a Link Code to an Event Portal Subaccount to complete the link.

Creating an Environment for a Linked Subaccount

You must be an Account Administrator to create environments. Repeat this task in your Event Portal subaccount for every subaccount that you want to link to Event Portal.

To create an environment for a linked subaccount, perform these steps:

  1. On the navigation bar, select User & Account . Verify that you are logged in to your primary Event Portal subaccount.
  2. On the navigation bar, select User & Account < Environments.
  3. Click Create Environment and select For brokers in a secondary advanced event mesh subaccount.
  4. In the Create Environment dialog, enter an Environment Name.
  5. (Optional) Enter a Description for the linked environment.
  6. Select whether the Environment Type is Production or Non-Production. You can't change this setting after you create the environment. Production environments are intended to host live resources. Non-production environments are intended for development and testing.
  7. (Optional) In the Appearance section:
    1. Click the Color menu to open the color picker where you can select a color for the environment badge.
    2. Click the Icon menu to open the icon picker where you can select an icon to represent the environment.
  8. Perform one of the following steps:

Adding a Link Code to an Event Portal Subaccount

After you enable linking in a secondary subaccount and create an environment for that subaccount in your primary Event Portal subaccount, you can add the link code from the secondary subaccount to the environment in the Event Portal subaccount.

To add a link code to an environment:

  1. If you have not done so yet, or if you need a new link code, create a link code in the secondary subaccount. For more information, see Enabling Linking in a Secondary Subaccount.
  2. On the navigation bar, select User & Account . Verify that you are logged in to your primary Event Portal subaccount.
  3. On the navigation bar, select User & Account < Environments.
  4. In the list of environments, click More Actions for the environment you want to add a link code to, and select Manage Link to advanced event mesh Subaccount.
  5. Paste the link code in the Link Another advanced event mesh Subaccount dialog.
  6. Click Link.

Managing Subaccount Links

After you have linked subaccounts, you can update link codes as necessary and disable subaccount links.

When you generate a new link code in a secondary subaccount, the link between Event Portal and the event brokers in the secondary subaccount is disabled until you add it to the Event Portal subaccount.

When you disable a subaccount link, the linked environment remains in the primary Event Portal subaccount. You can delete the environment or relink it to the same or another subaccount.

To update a link code, perform these steps:

  1. Verify that you are logged in to the subaccount that you want to update the link code for and, on the navigation bar, select User & Account > Account Details
  2. Select the Account Settings tab.
  3. In the Link to Another advanced event mesh Subaccount section, click Regenerate Link Code.
  4. Click Copy to copy the link code to your clipboard. 
  5. Click Close.
  6. Follow the steps in Adding a Link Code to an Event Portal Subaccount to update the link code in the primary Event Portal subaccount.

To remove a link between subaccounts, perform these steps:

  1. Verify that you are logged in to the subaccount that you want to update the link code for and, on the navigation bar, select User & Account > Account Details
  2. Select the Account Settings tab.
  3. In the Link to Another advanced event mesh Subaccount section, click the Enable Subaccount Linking toggle to turn off linking.