The vmware_nsx.api_client.client Module

class vmware_nsx.api_client.client.NsxApiClient(api_providers, user, password, concurrent_connections=3, gen_timeout=-1, use_https=True, connect_timeout=5, http_timeout=75, retries=2, redirects=2)

Bases: vmware_nsx.api_client.eventlet_client.EventletApiClient

The Nsx API Client.

get_version()
login(user=None, password=None)

Login to NSX controller.

Assumes same password is used for all controllers.

Parameters:
  • user – controller user (usually admin). Provided for backwards compatibility. In the normal mode of operation this should be None.
  • password – controller password. Provided for backwards compatibility. In the normal mode of operation this should be None.
request(method, url, body='', content_type='application/json')

Issues request to controller.

Previous topic

The vmware_nsx.api_client.base Module

Next topic

The vmware_nsx.api_client.eventlet_client Module

This Page