com.vmware.nsx_policy.infra.domains package¶
Subpackages¶
Submodules¶
com.vmware.nsx_policy.infra.domains.communication_maps_client module¶
-
class
com.vmware.nsx_policy.infra.domains.communication_maps_client.
CommunicationEntries
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
-
REVISE_OPERATION_AFTER
= 'insert_after'¶ Possible value for
operation
of methodCommunicationEntries.revise()
.
-
REVISE_OPERATION_BEFORE
= 'insert_before'¶ Possible value for
operation
of methodCommunicationEntries.revise()
.
-
REVISE_OPERATION_BOTTOM
= 'insert_bottom'¶ Possible value for
operation
of methodCommunicationEntries.revise()
.
-
REVISE_OPERATION_TOP
= 'insert_top'¶ Possible value for
operation
of methodCommunicationEntries.revise()
.
-
delete
(domain_id, communication_map_id, communication_entry_id)¶ Delete CommunicationEntry
Parameters: - domain_id (
str
) – (required) - communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
get
(domain_id, communication_map_id, communication_entry_id)¶ Read CommunicationEntry
Parameters: - domain_id (
str
) – (required) - communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.CommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
list
(domain_id, communication_map_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List CommunicationEntries
Parameters: - domain_id (
str
) – (required) - communication_map_id (
str
) – (required) - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: com.vmware.nsx_policy.model_client.CommunicationEntryListResult
Returns: com.vmware.nsx_policy.model.CommunicationEntryListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
patch
(domain_id, communication_map_id, communication_entry_id, communication_entry)¶ Patch the CommunicationEntry.
Parameters: - domain_id (
str
) – (required) - communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required) - communication_entry (
com.vmware.nsx_policy.model_client.CommunicationEntry
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
revise
(domain_id, communication_map_id, communication_entry_id, communication_entry, anchor_path=None, operation=None)¶ This is used to re-order a communictation entry within a communication map.
Parameters: - domain_id (
str
) – (required) - communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required) - communication_entry (
com.vmware.nsx_policy.model_client.CommunicationEntry
) – (required) - anchor_path (
str
orNone
) – The communication map/communication entry path if operation is ‘insert_after’ or ‘insert_before’ (optional) - operation (
str
orNone
) – Operation (optional, default to insert_top)
Return type: Returns: com.vmware.nsx_policy.model.CommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
update
(domain_id, communication_map_id, communication_entry_id, communication_entry)¶ Update the CommunicationEntry. If a CommunicationEntry with the communication-entry-id is not already present, this API fails with a 404. Creation of CommunicationEntries is not allowed using this API.
Parameters: - domain_id (
str
) – (required) - communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required) - communication_entry (
com.vmware.nsx_policy.model_client.CommunicationEntry
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.CommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
-
class
com.vmware.nsx_policy.infra.domains.communication_maps_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
com.vmware.nsx_policy.infra.domains.edge_communication_maps_client module¶
-
class
com.vmware.nsx_policy.infra.domains.edge_communication_maps_client.
CommunicationEntries
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
-
delete
(domain_id, edge_communication_map_id, communication_entry_id)¶ Delete CommunicationEntry
Parameters: - domain_id (
str
) – (required) - edge_communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
get
(domain_id, edge_communication_map_id, communication_entry_id)¶ Read CommunicationEntry
Parameters: - domain_id (
str
) – (required) - edge_communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.CommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
list
(domain_id, edge_communication_map_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List CommunicationEntries
Parameters: - domain_id (
str
) – (required) - edge_communication_map_id (
str
) – (required) - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: com.vmware.nsx_policy.model_client.CommunicationEntryListResult
Returns: com.vmware.nsx_policy.model.CommunicationEntryListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
patch
(domain_id, edge_communication_map_id, communication_entry_id, communication_entry)¶ Update the edge CommunicationEntry. If a CommunicationEntry with the entry-id is not already present, this API fails with a 404. Creation of CommunicationEntries is not allowed using this API.
Parameters: - domain_id (
str
) – (required) - edge_communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required) - communication_entry (
com.vmware.nsx_policy.model_client.CommunicationEntry
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
update
(domain_id, edge_communication_map_id, communication_entry_id, communication_entry)¶ Update the edge CommunicationEntry. If a CommunicationEntry with the entry-id is not already present, this API fails with a 404. Creation of CommunicationEntries is not allowed using this API.
Parameters: - domain_id (
str
) – (required) - edge_communication_map_id (
str
) – (required) - communication_entry_id (
str
) – (required) - communication_entry (
com.vmware.nsx_policy.model_client.CommunicationEntry
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.CommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
-
class
com.vmware.nsx_policy.infra.domains.edge_communication_maps_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
com.vmware.nsx_policy.infra.domains.groups_client module¶
-
class
com.vmware.nsx_policy.infra.domains.groups_client.
PortMirroringInstances
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
-
delete
(domain_id, group_id, port_mirroring_instance_id)¶ API will delete port mirroring instance. Mirroring from source to destination ports will be stopped.
Parameters: - domain_id (
str
) – Domain ID (required) - group_id (
str
) – Group ID (required) - port_mirroring_instance_id (
str
) – Port Mirroring Instance Id (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
get
(domain_id, group_id, port_mirroring_instance_id)¶ API will return details of port mirroring instance. If instance does not exist, it will return 404.
Parameters: - domain_id (
str
) – Domain ID (required) - group_id (
str
) – Group ID (required) - port_mirroring_instance_id (
str
) – Port Mirroring Instance Id (required)
Return type: Returns: com.vmware.nsx_policy.model.PortMirroringInstance
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
list
(domain_id, group_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ API will list all port mirroring instances active on current group.
Parameters: - domain_id (
str
) – Domain ID (required) - group_id (
str
) – Group ID (required) - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: com.vmware.nsx_policy.model_client.PortMirroringInstanceListResult
Returns: com.vmware.nsx_policy.model.PortMirroringInstanceListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
patch
(domain_id, group_id, port_mirroring_instance_id, port_mirroring_instance)¶ Create a new Port Mirroring Instance if the Port Mirroring Instance with given id does not already exist. If the Port Mirroring Instance with the given id already exists, patch with the existing Port Mirroring Instance.
Parameters: - domain_id (
str
) – Domain ID (required) - group_id (
str
) – Group ID (required) - port_mirroring_instance_id (
str
) – Port Mirroring Instance Id (required) - port_mirroring_instance (
com.vmware.nsx_policy.model_client.PortMirroringInstance
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
update
(domain_id, group_id, port_mirroring_instance_id, port_mirroring_instance)¶ Create or Replace port mirroring instance. Packets will be mirrored from source group to destination group.
Parameters: - domain_id (
str
) – Domain ID (required) - group_id (
str
) – Group ID (required) - port_mirroring_instance_id (
str
) – Port Mirroring Instance Id (required) - port_mirroring_instance (
com.vmware.nsx_policy.model_client.PortMirroringInstance
) – (required)
Return type: Returns: com.vmware.nsx_policy.model.PortMirroringInstance
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
-
class
com.vmware.nsx_policy.infra.domains.groups_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
com.vmware.nsx_policy.infra.domains.redirection_communication_maps_client module¶
-
class
com.vmware.nsx_policy.infra.domains.redirection_communication_maps_client.
CommunicationEntries
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
-
delete
(domain_id, redirection_map_id, communication_entry_id)¶ Delete RedirectionCommunicationEntry
Parameters: - domain_id (
str
) – Domain ID (required) - redirection_map_id (
str
) – Redirection Map ID (required) - communication_entry_id (
str
) – RedirectionCommunicationEntry ID (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
get
(domain_id, redirection_map_id, communication_entry_id)¶ Read communication entry
Parameters: - domain_id (
str
) – Domain id (required) - redirection_map_id (
str
) – Redirection map id (required) - communication_entry_id (
str
) – Communication entry id (required)
Return type: com.vmware.nsx_policy.model_client.RedirectionCommunicationEntry
Returns: com.vmware.nsx_policy.model.RedirectionCommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
list
(domain_id, redirection_map_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List communication entries
Parameters: - domain_id (
str
) – Domain id (required) - redirection_map_id (
str
) – Redirection map id (required) - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: com.vmware.nsx_policy.model_client.RedirectionCommunicationEntryListResult
Returns: com.vmware.nsx_policy.model.RedirectionCommunicationEntryListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
patch
(domain_id, redirection_map_id, communication_entry_id, redirection_communication_entry)¶ Create a communication entry with the communication-entry-id is not already present, otherwise update the communication entry.
Parameters: - domain_id (
str
) – Domain id (required) - redirection_map_id (
str
) – Redirection map id (required) - communication_entry_id (
str
) – Communication entry id (required) - redirection_communication_entry (
com.vmware.nsx_policy.model_client.RedirectionCommunicationEntry
) – (required)
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
update
(domain_id, redirection_map_id, communication_entry_id, redirection_communication_entry)¶ Create a communication entry with the communication-entry-id is not already present, otherwise update the communication entry.
Parameters: - domain_id (
str
) – Domain id (required) - redirection_map_id (
str
) – Redirection map id (required) - communication_entry_id (
str
) – Communication entry id (required) - redirection_communication_entry (
com.vmware.nsx_policy.model_client.RedirectionCommunicationEntry
) – (required)
Return type: com.vmware.nsx_policy.model_client.RedirectionCommunicationEntry
Returns: com.vmware.nsx_policy.model.RedirectionCommunicationEntry
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- domain_id (
-
-
class
com.vmware.nsx_policy.infra.domains.redirection_communication_maps_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase