vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

vcd vapp list shows all vapps instead of those in current vdc

Open Gelob opened this issue 7 years ago • 8 comments

Documentation says:

vcd vapp list Get list of vApps in current virtual datacenter.

  1. Login to the system org vcd login blah.vcloud System "username" -w -i
  2. Change org vcd org use 4843-17347 now using org: '4843-17347', vdc: '4843-17347-4788', vApp: ''.
  3. 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

Gelob avatar Mar 07 '18 22:03 Gelob

vcd vm list also shows as not implemented even after selecting a vapp

vcd vm list
Usage: vcd vm list [OPTIONS]

Error: not implemented

Gelob avatar Mar 07 '18 23:03 Gelob

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 avatar Mar 08 '18 02:03 rocknes

@rocknes do you know when vcd vm list will be implemented?

Gelob avatar Mar 12 '18 22:03 Gelob

Can't commit to a timeline as of now, but we do have it on our radar.

rocknes avatar Mar 12 '18 23:03 rocknes

@rocknes any update on this being implemented?

Gelob avatar Nov 19 '18 00:11 Gelob

@rocknes And now? Maybe u know some workarond ways to get vm's list via CLI?

rk-c avatar Aug 12 '20 07:08 rk-c

Hey do u have any idea I want check which all vapp is down only and want to bring that vapp back up?

Pavana-k avatar Aug 19 '20 05:08 Pavana-k

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.

Rockness avatar Aug 19 '20 06:08 Rockness