you can also use the Product's URL with the name and version.
Note the use of product's name and version at the end instead of id.
Original Message:
Sent: Thu February 24, 2022 06:42 PM
From: Shiu Poon
Subject: apic products:replace not supporting product name in v10
@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
Original Message:
Sent: Thu February 03, 2022 09:32 AM
From: santhoshkumar surisetty
Subject: apic products:replace not supporting product name in v10
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
------------------------------