IBM / lmctl

Cloud Pak for Network Automation (CP4NA) (previously ALM/TNCO) command line tool
Apache License 2.0
4 stars 19 forks source link

Add object group option to relevant commands and client methods #178

Closed maheshlokhande1 closed 1 year ago

maheshlokhande1 commented 1 year ago

Add objectgroup optional parameter to create requests using LMCTL for following objects where changes are needed

assembly Create a Assembly assemblyconfig Create a Assembly Configuration behaviourproject Create a Behaviour Project deploymentlocation Create a Deployment Location descriptor Create a Descriptor descriptortemplate Create a Descriptor Template intent Request an intent of any type on an Assembly resourcepkg Upload a Resource Package scenario Create a Scenario

dvaccarosenna commented 1 year ago

Final implementation

New option

--og, --object-group option and --ogid, --object-group-id option added to relevant commands.

The --og, --object-group option accepts the name of an object group. This option is the most convenient however, as the REST APIs expect the ID of an object group, using this option will result in an API call to retrieve the object group with the given name first, in order to determine the ID.

The --ogid, --object-group-id option accepts the ID of an object group and therefore does not result in any additional API calls.

Supported commands