The vmware_nsx.api_client.eventlet_client Module

class vmware_nsx.api_client.eventlet_client.EventletApiClient(api_providers, user, password, concurrent_connections=3, gen_timeout=-1, use_https=True, connect_timeout=5)

Bases: vmware_nsx.api_client.base.ApiClientBase

Eventlet-based implementation of NSX ApiClient ABC.

acquire_redirect_connection(conn_params, auto_login=True, headers=None)

Check out or create connection to redirected NSX API server.

Args:
conn_params: tuple specifying target of redirect, see
self._conn_params()

auto_login: returned connection should have valid session cookie headers: headers to pass on if auto_login

Returns: An available HTTPConnection instance corresponding to the
specified conn_params. If a connection did not previously exist, new connections are created with the highest prioity in the connection pool and one of these new connections returned.

Previous topic

The vmware_nsx.api_client.client Module

Next topic

The vmware_nsx.api_client.eventlet_request Module

This Page