How to Bootstrap gateway bundles from source container gateway to target Ephemeral gateway
search cancel

How to Bootstrap gateway bundles from source container gateway to target Ephemeral gateway

book

Article ID: 390280

calendar_today

Updated On: 03-09-2025

Products

CA API Gateway

Issue/Introduction

We are in the process of converting existing Gateway to Ephemeral mode.

We need to import all existing gateway resources like - policies, services, users, IDP, passwords, certificates etc at bootstrap/Startup of the gateway and need to finalize the process for the same. I will propose to setup a meeting for the same at the earliest.

Environment

11.1

Resolution

While trying with Graphman bundles for bootstrapping the Ephemeral gateway ,Mutation failed because of inability to create custom roles. Currently, graphman doesn't support  creating new ROLEs. Support is limited to updating the existing roles (limited to user/group assignees). 
 
This limitation was overturned by applying the following approach via Restman.
  • Enable RESTMAN on your source gateway and obtain the roles with a GET query: https://<gateway>/restman/1.0/roles
  • Identify the custom roles with their IDs
  • Obtain the corresponding bundle for each of them: https://<gateway>/restman/1.0/bundle?role=<Id>
  • Put the <bundle></bundle> section into a file and name it <my custom role>.bundle (this if for docker. For K8S, follow the dedicated instructions in the values.yaml)
  • Enable RESTMAN on the target gateway
  • Boot the target gateway