Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcenter.iso.iso_path.get_datastore_path() missing #399

Open
Yannik opened this issue Nov 8, 2023 · 3 comments
Open

vcenter.iso.iso_path.get_datastore_path() missing #399

Yannik opened this issue Nov 8, 2023 · 3 comments
Assignees
Labels

Comments

@Yannik
Copy link

Yannik commented Nov 8, 2023

Describe the bug

Hi,
according to the docs, there should be a vcenter.iso.iso_path.get_datastore_path() method to get the datastore path of a content library item:
https://vdc-download.vmware.com/vmwb-repository/dcr-public/c2c7244e-817b-40d8-98f3-6c2ad5db56d6/af6d8ff7-1c38-4571-b72a-614ac319a62b/operations/com/vmware/vcenter/iso/iso_path.get_datastore_path-operation.html

However, when I try to use that method, I get an error that the iso_path attribute does not exist:

>>> client.vcenter.iso_path.get_datastore_path('52973462-d3fd-47c4-b532-c8b8a2dfc655')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yannik/.local/lib/python3.11/site-packages/vmware/vapi/bindings/stub.py", line 413, in __getattribute__
    result = object.__getattribute__(self, name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubFactory' object has no attribute 'iso_path'

Reproduction steps

client = create_vsphere_client(...)
client.vcenter.iso_path.get_datastore_path('<valid-library-item-guid>')

Expected behavior

The datastore path of the library item should be returned.

Additional context

No response

@Yannik Yannik added the bug label Nov 8, 2023
@Yannik
Copy link
Author

Yannik commented Nov 8, 2023

Looks like the method is not present in the newer docs: https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/iso/

Therefore I'd like changing this to a feature request. We really need this method.

@Yannik Yannik changed the title vcenter.iso.iso_path.get_datastore_path() broken / missing vcenter.iso.iso_path.get_datastore_path() missing Nov 8, 2023
@kunal-pmj
Copy link

The API is internal hence not present in the public SDK.
This is the latest API documentation : https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/iso/

This documentation has deprecated : https://vdc-download.vmware.com/vmwb-repository/dcr-public/c2c7244e-817b-40d8-98f3-6c2ad5db56d6/af6d8ff7-1c38-4571-b72a-614ac319a62b/operations/com/vmware/vcenter/iso/iso_path.get_datastore_path-operation.html

We will get back to you on the request to make this API available.

@kunal-pmj kunal-pmj self-assigned this Nov 10, 2023
@Yannik
Copy link
Author

Yannik commented Nov 10, 2023

Thank you @kunal-pmj. It is very important for us to be able to access this API call to get the datastore path of a ISO stored in the content library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants