Layer7 API Management

 View Only
  • 1.  Import Bundle using Rest API

    Posted Feb 19, 2020 06:32 PM
    I am unable to find a way to manage mappings during the bundle import using REST API. This is available if we use GatewayMigrationUtility.jar and we can Ignore certain types of mappings.
    If we were to use REST API then how can this be achieved?


  • 2.  RE: Import Bundle using Rest API

    Posted Feb 20, 2020 03:47 AM
    Can you please provide more details(steps followed)


  • 3.  RE: Import Bundle using Rest API

    Posted Feb 20, 2020 10:39 PM

    How can I executing below command using REST API? 

    java -jar GatewayMigrationUtility.jar manageMappings --bundle "%SoureBundle%" --type JDBC_CONNECTION -a NewOrExisting
    java -jar GatewayMigrationUtility.jar manageMappings --bundle "%SoureBundle%" --type TRUSTED_CERT -a Ignore

    In the above command, we are using GatewayMigrationUtility.jar to manage mappings as we wish prior to importing the bundle. How can we do that when we use REST API? 




  • 4.  RE: Import Bundle using Rest API

    Posted Feb 21, 2020 05:53 AM
    As on date we don't have the option to do similar to GMU tool using Restman services.


  • 5.  RE: Import Bundle using Rest API
    Best Answer

    Posted Feb 22, 2020 04:15 AM
    Edited by Christopher Hackett Feb 24, 2020 02:54 PM
    Hi Prasantha, hi Sampath,

    Well, manageMappings is something that the GMU does independently to RESTMAN, there is no way to do that with RESTMAN itself, you have to use the GMU or a similar tool as Sampath mentioned.

    Actually Sampath, there are a couple of alternatives around :) they are not free, but there is one that does not need RESTman but is very lightly maintained and not focused on. It is within every VM gateway, which is the ESM (or ASM) that requires a license, to be asked to Broadcom, but as I mentioned, is not very much looked after, and is not using bundles, and also, it only works for VMs and Hardware appliances.
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/api-gateway-service-manager/1-19.html

    The other non-free one, that is actively developed and is increasing very rapidly in the market is the AAGM, it is supported by our company, it uses restman, interfaces with CI/CD tools, it allows for integration with versioning control, it supports rollbacks, and all lot of other functions. It also supports ALL versions of the Gateway to date and we are working already for the integration with the Gateway 10. 
    Moreover, as a reply to your original post, it deals with mapping issues inteligently and automatically.
    Here is the link
    https://apiida.com/apiida-api-gateway-manager/?lang=en

    I suggest you have a look at that

    ------------------------------
    Maurizio Garzelli
    APIIDA
    APIIDA Principal Consultant
    https://apiida.com
    ------------------------------



  • 6.  RE: Import Bundle using Rest API

    Broadcom Employee
    Posted Feb 25, 2020 01:48 PM
    Mappings are not a concept that exists at the Gateway, so it doesn't have any reason to expose it in the API. Mappings only apply to the standalone bundle that has been exported from a Gateway, so it lies solidly in the space of the tooling, like GMU. The tooling needs to understand how to retrieve the destination resource that corresponds to a resource in the bundle, or in the case of changing the action, which resources need which kind of action, but the mapping itself manifests either int the bundle (in the <l7:Mappings> block) or in an external mapping file that is referenced at migrateIn time to perform the mappings prior to making the RestMan calls.

    ------------------------------
    Jay MacDonald - Adoption Architect - Broadcom API Management (Layer 7)
    ------------------------------