vcd vapp list shows all vapps instead of those in current vdc
Documentation says:
vcd vapp list Get list of vApps in current virtual datacenter.
- Login to the system org
vcd login blah.vcloud System "username" -w -i - Change org
vcd org use 4843-17347now using org: '4843-17347', vdc: '4843-17347-4788', vApp: ''. - Run vcd vapp list, it returns all vapps from all vdcs instead of the current vdc only
Even if I run vcd vdc use 4843-17347-4788 before running vcd vapp list I still get all of the vapps from all orgs instead of the current one.
vcd version
vcd-cli, VMware vCloud Director Command Line Interface, 20.1.2
vcd vm list also shows as not implemented even after selecting a vapp
vcd vm list
Usage: vcd vm list [OPTIONS]
Error: not implemented
Hi Gelob,
vcd vm list hasn't been implemented yet, that's why you are seeing the message.
vcd vapp list has been implemented using query service (refer vcd-cli : vapp.py, line238, function list_vapps). Unfortunately the way it has been implemented currently doesn't take vdc into consideration while returning the results.
I guess vcd search can be used to find vApps in a particular vdc e.g. vcd search vapp -f 'vdcName==<name of vdc>'
@rocknes do you know when vcd vm list will be implemented?
Can't commit to a timeline as of now, but we do have it on our radar.
@rocknes any update on this being implemented?
@rocknes And now? Maybe u know some workarond ways to get vm's list via CLI?
Hey do u have any idea I want check which all vapp is down only and want to bring that vapp back up?
I think you should contact the ID rocknes instead of me (rockness) , Plz check
Best wishes, Yan
在 2020年8月19日,13:59,Pavana-k [email protected] 写道:
Hey do u have any idea I want check which all vapp is down only and want to bring that vapp back up?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmware/vcd-cli/issues/196#issuecomment-675869344, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGB5KGDHK447O6OPC4N4MLSBNS5XANCNFSM4EUFV7EA.