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.

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.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

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