com.vmware.nsx_policy.global_infra.settings.firewall package¶
Subpackages¶
Submodules¶
com.vmware.nsx_policy.global_infra.settings.firewall.idfw_client module¶
-
class
com.vmware.nsx_policy.global_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
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.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
cluster_id (
str
) – Cluster ID (required)compute_cluster_idfw_configuration (
com.vmware.nsx_policy.model_client.ComputeClusterIdfwConfiguration
) – (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
(cluster_id, compute_cluster_idfw_configuration)¶ Update the compute cluster idfw configuration
- Parameters
cluster_id (
str
) – Cluster ID (required)compute_cluster_idfw_configuration (
com.vmware.nsx_policy.model_client.ComputeClusterIdfwConfiguration
) – (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
-
class
com.vmware.nsx_policy.global_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.global_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.global_infra.settings.firewall.security_client module¶
-
class
com.vmware.nsx_policy.global_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
orNone
) – Check all parents (optional, default to false)enforcement_point_path (
str
orNone
) – Path of the enforcement point (optional)
- Return type
- 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
- 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
- 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.global_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
- 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
- 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.global_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