com.vmware.nsx.vpn.ipsec package¶
Submodules¶
com.vmware.nsx.vpn.ipsec.sessions_client module¶
-
class
com.vmware.nsx.vpn.ipsec.sessions_client.
Statistics
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
GET_SOURCE_CACHED
= 'cached'¶ Possible value for
source
of methodStatistics.get()
.
-
GET_SOURCE_REALTIME
= 'realtime'¶ Possible value for
source
of methodStatistics.get()
.
-
get
(session_id, source=None)¶ Get statistics of a vpn session across all tunnels and IKE session. Query parameter “source=realtime” is the only supported source.
- Parameters
session_id (
str
) – (required)source (
str
orNone
) – Data source type. (optional)
- Return type
- Returns
com.vmware.nsx.model.IPSecVPNSessionStatistics
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
reset
(session_id)¶ Reset the statistics of the given VPN session.
- Parameters
session_id (
str
) – (required)- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.vpn.ipsec.sessions_client.
Status
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
GET_SOURCE_CACHED
= 'cached'¶ Possible value for
source
of methodStatus.get()
.
-
GET_SOURCE_REALTIME
= 'realtime'¶ Possible value for
source
of methodStatus.get()
.
-
get
(session_id, source=None)¶ List status of IPSec session. Query parameter source supports both realtime and cached mode.
- Parameters
session_id (
str
) – (required)source (
str
orNone
) – Data source type. (optional)
- Return type
- Returns
com.vmware.nsx.model.IPSecVPNSessionStatus
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.vpn.ipsec.sessions_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
-
class
com.vmware.nsx.vpn.ipsec.sessions_client.
Summary
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
GET_SOURCE_CACHED
= 'cached'¶ Possible value for
source
of methodSummary.get()
.
-
GET_SOURCE_REALTIME
= 'realtime'¶ Possible value for
source
of methodSummary.get()
.
-
get
(site_id=None, source=None)¶ VPN session summary gets summary per vpn sessions and IKE session. Query parameter source supports only cached mode.
- Parameters
site_id (
str
orNone
) – Peer site id (optional)source (
str
orNone
) – Data source type. (optional)
- Return type
- Returns
com.vmware.nsx.model.IPSecVPNSessionSummary
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found