com.vmware.nsx_policy.infra.settings.firewall package

Submodules

com.vmware.nsx_policy.infra.settings.firewall.idfw_client module

class com.vmware.nsx_policy.infra.settings.firewall.idfw_client.Cluster(config)

Bases: vmware.vapi.bindings.stub.VapiInterface

Parameters:config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
get(cluster_id)

Read compute cluster identity firewall configuration

Parameters:cluster_id (str) – Cluster ID (required)
Return type:com.vmware.nsx_policy.model_client.ComputeClusterIdfwConfiguration
Returns:com.vmware.nsx_policy.model.ComputeClusterIdfwConfiguration
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
list(cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)

API will list all compute cluster wise identity firewall configuration

Parameters:
  • cursor (str or None) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
  • included_fields (str or None) – Comma separated list of fields that should be included in query result (optional)
  • page_size (long or None) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
  • sort_ascending (bool or None) – (optional)
  • sort_by (str or None) – Field by which records are sorted (optional)
Return type:

com.vmware.nsx_policy.model_client.ComputeClusterIdfwConfigurationListResult

Returns:

com.vmware.nsx_policy.model.ComputeClusterIdfwConfigurationListResult

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

patch(cluster_id, compute_cluster_idfw_configuration)

Patch compute cluster identity firewall configuration.

Parameters:
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

update(cluster_id, compute_cluster_idfw_configuration)

Update the compute cluster idfw configuration

Parameters:
Return type:

com.vmware.nsx_policy.model_client.ComputeClusterIdfwConfiguration

Returns:

com.vmware.nsx_policy.model.ComputeClusterIdfwConfiguration

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_policy.infra.settings.firewall.idfw_client.StandaloneHostSwitchSetting(config)

Bases: vmware.vapi.bindings.stub.VapiInterface

Parameters:config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
get()

Read identity firewall configuration for standalone host

Return type:com.vmware.nsx_policy.model_client.StandaloneHostIdfwConfiguration
Returns:com.vmware.nsx_policy.model.StandaloneHostIdfwConfiguration
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
patch(standalone_host_idfw_configuration)

Patch identity firewall configuration for standalone host

Parameters:standalone_host_idfw_configuration (com.vmware.nsx_policy.model_client.StandaloneHostIdfwConfiguration) – (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
update(standalone_host_idfw_configuration)

Update the idfw configuration for standalone host

Parameters:standalone_host_idfw_configuration (com.vmware.nsx_policy.model_client.StandaloneHostIdfwConfiguration) – (required)
Return type:com.vmware.nsx_policy.model_client.StandaloneHostIdfwConfiguration
Returns:com.vmware.nsx_policy.model.StandaloneHostIdfwConfiguration
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_policy.infra.settings.firewall.idfw_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters:stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance

com.vmware.nsx_policy.infra.settings.firewall.security_client module

class com.vmware.nsx_policy.infra.settings.firewall.security_client.ExcludeList(config)

Bases: vmware.vapi.bindings.stub.VapiInterface

Parameters:config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
filter(intent_path, deep_check=None, enforcement_point_path=None)

Filter the firewall exclude list by the given object, to check whether the object is a member of this exclude list.

Parameters:
  • intent_path (str) – Path of the intent object to be searched in the exclude list (required)
  • deep_check (bool or None) – Check all parents (optional, default to false)
  • enforcement_point_path (str or None) – Path of the enforcement point (optional)
Return type:

com.vmware.nsx_policy.model_client.PolicyResourceReference

Returns:

com.vmware.nsx_policy.model.PolicyResourceReference

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

get()

Read exclude list for firewall

Return type:com.vmware.nsx_policy.model_client.PolicyExcludeList
Returns:com.vmware.nsx_policy.model.PolicyExcludeList
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
patch(policy_exclude_list)

Patch exclusion list for security policy.

Parameters:policy_exclude_list (com.vmware.nsx_policy.model_client.PolicyExcludeList) – (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
update(policy_exclude_list)

Update the exclusion list for security policy

Parameters:policy_exclude_list (com.vmware.nsx_policy.model_client.PolicyExcludeList) – (required)
Return type:com.vmware.nsx_policy.model_client.PolicyExcludeList
Returns:com.vmware.nsx_policy.model.PolicyExcludeList
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_policy.infra.settings.firewall.security_client.IntrusionServices(config)

Bases: vmware.vapi.bindings.stub.VapiInterface

Parameters:config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
get()

Intrusion detection system settings.

Return type:com.vmware.nsx_policy.model_client.IdsSettings
Returns:com.vmware.nsx_policy.model.IdsSettings
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
patch(ids_settings)

Intrusion detection system settings.

Parameters:ids_settings (com.vmware.nsx_policy.model_client.IdsSettings) – (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
update(ids_settings)

Intrusion detection system settings.

Parameters:ids_settings (com.vmware.nsx_policy.model_client.IdsSettings) – (required)
Return type:com.vmware.nsx_policy.model_client.IdsSettings
Returns:com.vmware.nsx_policy.model.IdsSettings
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_policy.infra.settings.firewall.security_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters:stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance