API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  apic products:replace not supporting product name in v10

    Posted Thu February 03, 2022 09:32 AM
    could you please suggest on   why product command does not support old product name which needs to be replaced. as per new process, i need to get url by using list command and filter it and place it in mapping file. is there any solution for this ?

    v10
    =======

    apic products:replace product:version MappingFile.txt --scope space --space space --catalog catalog

    --org organization --server server

    MappingFile.txt
    ==============
    product_url: https://apichello-mgmt-api-manager-cp4i-apic.hello123-erieindemnityc-47a298f0ba20223a9596e58bccc6cbca-0000.us-south.containers.appdomain.cloud/api/catalogs/4ff76e15-00e7-4ade-8e94-039a7722457c/8a116838-bf9c-4e3c-982b-8b393c846aff/products/7590aa9a-2523-44db-a365-aeeaff0c2d31
    plans:
    - source: default-plan
    target: default-plan
    - source: developer
    target: developer

    V5 Command
    =========

    apic products: replace $OLD_PRODUCT_NAME $NEW_PRODUCT_NAME --plans """$APIC_PLAN_LIST""" --scope space --space $SPACE_NAME --catalog $CATALOG_NAME

    --organization $APIC_ORGANIZATION --server $APIC_SERVER

     

    $APIC_PLAN_LIST
    =============
    it is variable contains our plan details

    ------------------------------
    santhoshkumar surisetty
    ------------------------------


  • 2.  RE: apic products:replace not supporting product name in v10

    Posted Thu February 24, 2022 06:42 PM
    Edited by Shiu Poon Mon February 28, 2022 12:32 PM

    @santhoshkumar surisetty, have you tried to add `--product-name xxxx --product-version xx` to your above command?  If not, please give that a try.

    Re-reading your question about, the issue you have is V5 allows you to use name:version only, but in v10, you need the url.

    That is correct and there is no workaround.


    ------------------------------
    Shiu Poon
    Senior Technical Staff Member - Security/Integration
    IBM
    San Jose CA
    ------------------------------



  • 3.  RE: apic products:replace not supporting product name in v10

    Posted Mon February 28, 2022 12:38 PM
    Further to the comment from @Shiu Poon above, @santhoshkumar surisetty you can also use the Product's URL with the name and version.

    So instead of:
    product_url:https://apichello-mgmt-api-manager-cp4i-apic.hello123-erieindemnityc-47a298f0ba20223a9596e58bccc6cbca-0000.us-south.containers.appdomain.cloud/api/catalogs/4ff76e15-00e7-4ade-8e94-039a7722457c/8a116838-bf9c-4e3c-982b-8b393c846aff/products/7590aa9a-2523-44db-a365-aeeaff0c2d31

    You could do:
    product_url:https://apichello-mgmt-api-manager-cp4i-apic.hello123-erieindemnityc-47a298f0ba20223a9596e58bccc6cbca-0000.us-south.containers.appdomain.cloud/api/catalogs/4ff76e15-00e7-4ade-8e94-039a7722457c/8a116838-bf9c-4e3c-982b-8b393c846aff/products/product-name/product-version

    Note the use of product's name and version at the end instead of id.

    ------------------------------
    SUMANTO Biswas
    ------------------------------



  • 4.  RE: apic products:replace not supporting product name in v10

    Posted Mon February 28, 2022 03:48 PM
    thank you.

    ------------------------------
    santhoshkumar surisetty
    ------------------------------