SecurityList

class oci.core.models.SecurityList(**kwargs)

Bases: object

A set of virtual firewall rules for your VCN. Security lists are configured at the subnet level, but the rules are applied to the ingress and egress traffic for the individual instances in the subnet. The rules can be stateful or stateless. For more information, see Security Lists. Note: Compare security lists to :class:`NetworkSecurityGroup`s, which let you apply a set of security rules to a specific set of VNICs instead of an entire subnet. Oracle recommends using network security groups instead of security lists, although you can use either or both together.

Attributes

LIFECYCLE_STATE_AVAILABLE A constant which can be used with the lifecycle_state property of a SecurityList.
LIFECYCLE_STATE_PROVISIONING A constant which can be used with the lifecycle_state property of a SecurityList.
LIFECYCLE_STATE_TERMINATED A constant which can be used with the lifecycle_state property of a SecurityList.
LIFECYCLE_STATE_TERMINATING A constant which can be used with the lifecycle_state property of a SecurityList.
compartment_id [Required] Gets the compartment_id of this SecurityList.
defined_tags Gets the defined_tags of this SecurityList.
display_name [Required] Gets the display_name of this SecurityList.
egress_security_rules [Required] Gets the egress_security_rules of this SecurityList.
freeform_tags Gets the freeform_tags of this SecurityList.
id [Required] Gets the id of this SecurityList.
ingress_security_rules [Required] Gets the ingress_security_rules of this SecurityList.
lifecycle_state [Required] Gets the lifecycle_state of this SecurityList.
time_created [Required] Gets the time_created of this SecurityList.
vcn_id [Required] Gets the vcn_id of this SecurityList.

Methods

__init__(**kwargs) Initializes a new SecurityList object with values from keyword arguments.

Important: Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, Linux iptables, Windows firewall). If there are issues with some type of access to an instance, make sure both the security lists associated with the instance’s subnet and the instance’s firewall rules are set correctly.

To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a SecurityList. This constant has a value of “AVAILABLE”

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a SecurityList. This constant has a value of “PROVISIONING”

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a SecurityList. This constant has a value of “TERMINATED”

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a SecurityList. This constant has a value of “TERMINATING”

__init__(**kwargs)

Initializes a new SecurityList object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this SecurityList.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this SecurityList.
  • display_name (str) – The value to assign to the display_name property of this SecurityList.
  • egress_security_rules (list[oci.core.models.EgressSecurityRule]) – The value to assign to the egress_security_rules property of this SecurityList.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this SecurityList.
  • id (str) – The value to assign to the id property of this SecurityList.
  • ingress_security_rules (list[oci.core.models.IngressSecurityRule]) – The value to assign to the ingress_security_rules property of this SecurityList.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this SecurityList. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this SecurityList.
  • vcn_id (str) – The value to assign to the vcn_id property of this SecurityList.
compartment_id

[Required] Gets the compartment_id of this SecurityList. The OCID of the compartment containing the security list.

Returns:The compartment_id of this SecurityList.
Return type:str
defined_tags

Gets the defined_tags of this SecurityList. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this SecurityList.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this SecurityList. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this SecurityList.
Return type:str
egress_security_rules

[Required] Gets the egress_security_rules of this SecurityList. Rules for allowing egress IP packets.

Returns:The egress_security_rules of this SecurityList.
Return type:list[oci.core.models.EgressSecurityRule]
freeform_tags

Gets the freeform_tags of this SecurityList. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this SecurityList.
Return type:dict(str, str)
id

[Required] Gets the id of this SecurityList. The security list’s Oracle Cloud ID (OCID).

Returns:The id of this SecurityList.
Return type:str
ingress_security_rules

[Required] Gets the ingress_security_rules of this SecurityList. Rules for allowing ingress IP packets.

Returns:The ingress_security_rules of this SecurityList.
Return type:list[oci.core.models.IngressSecurityRule]
lifecycle_state

[Required] Gets the lifecycle_state of this SecurityList. The security list’s current state.

Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this SecurityList.
Return type:str
time_created

[Required] Gets the time_created of this SecurityList. The date and time the security list was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this SecurityList.
Return type:datetime
vcn_id

[Required] Gets the vcn_id of this SecurityList. The OCID of the VCN the security list belongs to.

Returns:The vcn_id of this SecurityList.
Return type:str