com.vmware.nsx.serviceinsertion.services.service_instances.instance_runtimes package¶
Submodules¶
com.vmware.nsx.serviceinsertion.services.service_instances.instance_runtimes.interfaces_client module¶
-
class
com.vmware.nsx.serviceinsertion.services.service_instances.instance_runtimes.interfaces_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
(service_id, service_instance_id, instance_runtime_id, interface_index, source=None)¶ Returns statistics of a specified interface via associated logical port. If the logical port is attached to a logical router port, query parameter “source=realtime” is not supported.
- Parameters
service_id (
str
) – (required)service_instance_id (
str
) – (required)instance_runtime_id (
str
) – (required)interface_index (
str
) – (required)source (
str
orNone
) – Data source type. (optional)
- Return type
- Returns
com.vmware.nsx.model.RuntimeInterfaceStatistics
- 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.serviceinsertion.services.service_instances.instance_runtimes.interfaces_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
(service_id, service_instance_id, instance_runtime_id, interface_index, source=None)¶ Returns operational status of a specified interface
- Parameters
service_id (
str
) – (required)service_instance_id (
str
) – (required)instance_runtime_id (
str
) – (required)interface_index (
str
) – (required)source (
str
orNone
) – Data source type. (optional)
- Return type
com.vmware.nsx.model_client.RuntimeInterfaceOperationalStatus
- Returns
com.vmware.nsx.model.RuntimeInterfaceOperationalStatus
- 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.serviceinsertion.services.service_instances.instance_runtimes.interfaces_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance