<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does vsphere-automation-sdk-python require vddk in VMware{code} Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2950369#M2201</link>
    <description>&lt;P&gt;Thanks a lot above error,&lt;/P&gt;&lt;P&gt;[root@vmware-ub-200-251 vsphere-automation-sdk-python-master]# python3 ./samples/vsphere/vcenter/vm/list_vms.py -s x.x.x.x -u root -p QAteams1 --skipverification&lt;BR /&gt;vcenter server = x.x.xx&lt;BR /&gt;vc username = root&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 63, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 58, in main&lt;BR /&gt;list_vm = ListVM()&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 43, in __init__&lt;BR /&gt;session=session)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/vsphere/client.py", line 175, in create_vsphere_client&lt;BR /&gt;hok_token=hok_token, private_key=private_key)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/vsphere/client.py", line 116, in __init__&lt;BR /&gt;session_id = session_svc.create()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/com/vmware/cis_client.py", line 201, in create&lt;BR /&gt;return self._invoke('create', None)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 345, in _invoke&lt;BR /&gt;return self._api_interface.native_invoke(ctx, _method_name, kwargs)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 266, in native_invoke&lt;BR /&gt;method_result = self.invoke(ctx, method_id, data_val)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 202, in invoke&lt;BR /&gt;ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/security/client/security_context_filter.py", line 102, in invoke&lt;BR /&gt;self, service_id, operation_id, input_value, ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/provider/filter.py", line 76, in invoke&lt;BR /&gt;service_id, operation_id, input_value, ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/json_connector.py", line 79, in invoke&lt;BR /&gt;response = self._do_request(VAPI_INVOKE, ctx, params)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/json_connector.py", line 127, in _do_request&lt;BR /&gt;http_response.data.raise_for_status()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status&lt;BR /&gt;raise HTTPError(http_error_msg, response=self)&lt;BR /&gt;requests.exceptions.HTTPError: 404 Client Error: Not Found for url: &lt;A href="https://x.x.x.x/api/" target="_blank"&gt;https://x.x.x.x/api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 02:30:40 GMT</pubDate>
    <dc:creator>dbiswas91</dc:creator>
    <dc:date>2023-01-24T02:30:40Z</dc:date>
    <item>
      <title>Does vsphere-automation-sdk-python require vddk</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2949596#M2194</link>
      <description>&lt;P&gt;As the current vddk8.0 version does not support Perl vsphere automation sdk,&lt;/P&gt;&lt;P&gt;Is it require vddk to be installed on same system for&amp;nbsp; vsphere-automation-sdk-python.&lt;/P&gt;&lt;P&gt;I am new to vmware, plz correct me if my understading wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;facing following error:&lt;/P&gt;&lt;P&gt;[root@vsphere-automation-sdk-python-master]# python3 ./samples/vsphere/vcenter/vm/list_vms.py -s x.x.x.x -u root -p xxxxx&lt;BR /&gt;vcenter server = x.x.x.x&lt;BR /&gt;vc username = root&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 456, in wrap_socket&lt;BR /&gt;cnx.do_handshake()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1934, in do_handshake&lt;BR /&gt;self._raise_ssl_error(self._ssl, result)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1671, in _raise_ssl_error&lt;BR /&gt;_raise_current_error()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue&lt;BR /&gt;raise exception_type(errors)&lt;BR /&gt;OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen&lt;BR /&gt;chunked=chunked)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request&lt;BR /&gt;self._validate_conn(conn)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn&lt;BR /&gt;conn.connect()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 344, in connect&lt;BR /&gt;ssl_context=context)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 358, in ssl_wrap_socket&lt;BR /&gt;return context.wrap_socket(sock)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 462, in wrap_socket&lt;BR /&gt;raise ssl.SSLError('bad handshake: %r' % e)&lt;BR /&gt;ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send&lt;BR /&gt;timeout=timeout&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen&lt;BR /&gt;_stacktrace=sys.exc_info()[2])&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment&lt;BR /&gt;raise MaxRetryError(_pool, url, error or ResponseError(cause))&lt;BR /&gt;urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='x.x.x.x', port=443): Max retries exceeded with url: /api (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 62, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 57, in main&lt;BR /&gt;list_vm = ListVM()&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 42, in __init__&lt;BR /&gt;session=session)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/vsphere/client.py", line 175, in create_vsphere_client&lt;BR /&gt;hok_token=hok_token, private_key=private_key)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/vsphere/client.py", line 116, in __init__&lt;BR /&gt;session_id = session_svc.create()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/com/vmware/cis_client.py", line 201, in create&lt;BR /&gt;return self._invoke('create', None)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 345, in _invoke&lt;BR /&gt;return self._api_interface.native_invoke(ctx, _method_name, kwargs)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 266, in native_invoke&lt;BR /&gt;method_result = self.invoke(ctx, method_id, data_val)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 202, in invoke&lt;BR /&gt;ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/security/client/security_context_filter.py", line 102, in invoke&lt;BR /&gt;self, service_id, operation_id, input_value, ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/provider/filter.py", line 76, in invoke&lt;BR /&gt;service_id, operation_id, input_value, ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/json_connector.py", line 79, in invoke&lt;BR /&gt;response = self._do_request(VAPI_INVOKE, ctx, params)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/json_connector.py", line 122, in _do_request&lt;BR /&gt;headers=request_headers, body=request_body))&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/rpc/requests_provider.py", line 98, in do_request&lt;BR /&gt;cookies=http_request.cookies, timeout=timeout)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request&lt;BR /&gt;resp = self.send(prep, **send_kwargs)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send&lt;BR /&gt;r = adapter.send(request, **kwargs)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 514, in send&lt;BR /&gt;raise SSLError(e, request=request)&lt;BR /&gt;requests.exceptions.SSLError: HTTPSConnectionPool(host='x.x.x.x', port=443): Max retries exceeded with url: /api (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plz help me on this.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:36:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2949596#M2194</guid>
      <dc:creator>dbiswas91</dc:creator>
      <dc:date>2023-01-19T17:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Does vsphere-automation-sdk-python require vddk</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2949623#M2195</link>
      <description>&lt;P&gt;As your post probably sits best in the {code} section of the Communities where there are dedicated areas for SDKs, I have reported it to the volunteer moderators.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 18:41:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2949623#M2195</guid>
      <dc:creator>scott28tt</dc:creator>
      <dc:date>2023-01-19T18:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Does vsphere-automation-sdk-python require vddk</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2950179#M2198</link>
      <description>&lt;P&gt;Add argument "&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;--skipverification&lt;/STRONG&gt;&lt;/FONT&gt;" at the end of the command.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;--skipverification&lt;/STRONG&gt; = It skips verifying&amp;nbsp;server certificate when connecting to vc.&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;BR /&gt;&amp;gt;&amp;nbsp;python3 ./samples/vsphere/vcenter/vm/list_vms.py -s x.x.x.x -u &lt;A href="mailto:Administrator@vsphere.local" target="_blank"&gt;Administrator@vsphere.local&lt;/A&gt; -p xxxxx&amp;nbsp;&lt;STRONG&gt;--skipverification&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 10:46:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2950179#M2198</guid>
      <dc:creator>doskiran</dc:creator>
      <dc:date>2023-01-23T10:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Does vsphere-automation-sdk-python require vddk</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2950369#M2201</link>
      <description>&lt;P&gt;Thanks a lot above error,&lt;/P&gt;&lt;P&gt;[root@vmware-ub-200-251 vsphere-automation-sdk-python-master]# python3 ./samples/vsphere/vcenter/vm/list_vms.py -s x.x.x.x -u root -p QAteams1 --skipverification&lt;BR /&gt;vcenter server = x.x.xx&lt;BR /&gt;vc username = root&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 63, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 58, in main&lt;BR /&gt;list_vm = ListVM()&lt;BR /&gt;File "./samples/vsphere/vcenter/vm/list_vms.py", line 43, in __init__&lt;BR /&gt;session=session)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/vsphere/client.py", line 175, in create_vsphere_client&lt;BR /&gt;hok_token=hok_token, private_key=private_key)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/vsphere/client.py", line 116, in __init__&lt;BR /&gt;session_id = session_svc.create()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/com/vmware/cis_client.py", line 201, in create&lt;BR /&gt;return self._invoke('create', None)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 345, in _invoke&lt;BR /&gt;return self._api_interface.native_invoke(ctx, _method_name, kwargs)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 266, in native_invoke&lt;BR /&gt;method_result = self.invoke(ctx, method_id, data_val)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 202, in invoke&lt;BR /&gt;ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/security/client/security_context_filter.py", line 102, in invoke&lt;BR /&gt;self, service_id, operation_id, input_value, ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/provider/filter.py", line 76, in invoke&lt;BR /&gt;service_id, operation_id, input_value, ctx)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/json_connector.py", line 79, in invoke&lt;BR /&gt;response = self._do_request(VAPI_INVOKE, ctx, params)&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/vmware/vapi/protocol/client/msg/json_connector.py", line 127, in _do_request&lt;BR /&gt;http_response.data.raise_for_status()&lt;BR /&gt;File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status&lt;BR /&gt;raise HTTPError(http_error_msg, response=self)&lt;BR /&gt;requests.exceptions.HTTPError: 404 Client Error: Not Found for url: &lt;A href="https://x.x.x.x/api/" target="_blank"&gt;https://x.x.x.x/api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 02:30:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2950369#M2201</guid>
      <dc:creator>dbiswas91</dc:creator>
      <dc:date>2023-01-24T02:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does vsphere-automation-sdk-python require vddk</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2954023#M2226</link>
      <description>&lt;P&gt;vSphere Automation SDK works only with vCenter sessions.&lt;/P&gt;&lt;P&gt;Because there are no public APIs for ESXi VMODL2.&lt;/P&gt;&lt;P&gt;Hence pass vCenter credentials in the command.&lt;/P&gt;&lt;P&gt;To run with ESXi&amp;nbsp;credentials, use vSphere management SDKs .&lt;BR /&gt;i.e,&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;pyVmomi(SOAP based) allows you to manage VMware ESXi and vCenter using Python.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pyVmomi: &lt;A href="https://github.com/vmware/pyvmomi" target="_blank"&gt;https://github.com/vmware/pyvmomi&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Feb 2023 08:40:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Does-vsphere-automation-sdk-python-require-vddk/m-p/2954023#M2226</guid>
      <dc:creator>doskiran</dc:creator>
      <dc:date>2023-02-13T08:40:19Z</dc:date>
    </item>
  </channel>
</rss>

