1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-24 02:19:58 -05:00
vsphere-automation-sdk-python/samples/vsphere/vcenter/vlcm/cluster/installed_images
2024-07-05 12:00:20 +05:30
..
__init__.py Adding the deliverables for vcenter, nsx. Adding the new samples. Update the README.md, setup.py and other files for 8.0U3 2024-07-05 12:00:20 +05:30
installed_images.py Adding the deliverables for vcenter, nsx. Adding the new samples. Update the README.md, setup.py and other files for 8.0U3 2024-07-05 12:00:20 +05:30
README.md Adding the deliverables for vcenter, nsx. Adding the new samples. Update the README.md, setup.py and other files for 8.0U3 2024-07-05 12:00:20 +05:30

vLCM/Cluster/Installed_Images

This directory contains samples of the cluster-level vLCM installed images API

The installed images API provides a way to easily see the software running on hosts in a given cluster. This API will scan the hosts in the target cluster and generate a report detailing what images are being run. These images are organized into three categories: "highest versioned image", "most widely used image", and "hostImageList" which just contains the rest of the images.

APIs

POST

  • The extract POST method triggers the installed images workflow, which is an asynchronous operation. This API returns a task ID which can be used to monitor the progress of the task.

GET

  • This GET method is a synchronous operation and it returns the most recently generated installed images report for the cluster corresponding to the provided MoID.

Running the samples

To view the available command-line options:

python samples/vsphere/vcenter/vlcm/cluster/installed_images/installed_images.py -h

To run the sample:

$ python samples/vsphere/vcenter/vlcm/cluster/installed_images/installed_images.py -v -s <vCenter server IP> -u <username> -p <password> --cluster <cluster MoID>