UpdateSecurityRuleDetails

class oci.network_firewall.models.UpdateSecurityRuleDetails(**kwargs)

Bases: object

Update Request for Security Rule used in the firewall policy rules. Security Rules determine whether to block or allow a session based on traffic attributes, such as the source and destination IP address, protocol/port, and the HTTP(S) target URL.

Attributes

ACTION_ALLOW A constant which can be used with the action property of a UpdateSecurityRuleDetails.
ACTION_DROP A constant which can be used with the action property of a UpdateSecurityRuleDetails.
ACTION_INSPECT A constant which can be used with the action property of a UpdateSecurityRuleDetails.
ACTION_REJECT A constant which can be used with the action property of a UpdateSecurityRuleDetails.
INSPECTION_INTRUSION_DETECTION A constant which can be used with the inspection property of a UpdateSecurityRuleDetails.
INSPECTION_INTRUSION_PREVENTION A constant which can be used with the inspection property of a UpdateSecurityRuleDetails.
action [Required] Gets the action of this UpdateSecurityRuleDetails.
condition [Required] Gets the condition of this UpdateSecurityRuleDetails.
inspection Gets the inspection of this UpdateSecurityRuleDetails.
position Gets the position of this UpdateSecurityRuleDetails.

Methods

__init__(**kwargs) Initializes a new UpdateSecurityRuleDetails object with values from keyword arguments.
ACTION_ALLOW = 'ALLOW'

A constant which can be used with the action property of a UpdateSecurityRuleDetails. This constant has a value of “ALLOW”

ACTION_DROP = 'DROP'

A constant which can be used with the action property of a UpdateSecurityRuleDetails. This constant has a value of “DROP”

ACTION_INSPECT = 'INSPECT'

A constant which can be used with the action property of a UpdateSecurityRuleDetails. This constant has a value of “INSPECT”

ACTION_REJECT = 'REJECT'

A constant which can be used with the action property of a UpdateSecurityRuleDetails. This constant has a value of “REJECT”

INSPECTION_INTRUSION_DETECTION = 'INTRUSION_DETECTION'

A constant which can be used with the inspection property of a UpdateSecurityRuleDetails. This constant has a value of “INTRUSION_DETECTION”

INSPECTION_INTRUSION_PREVENTION = 'INTRUSION_PREVENTION'

A constant which can be used with the inspection property of a UpdateSecurityRuleDetails. This constant has a value of “INTRUSION_PREVENTION”

__init__(**kwargs)

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

Parameters:
  • condition (oci.network_firewall.models.SecurityRuleMatchCriteria) – The value to assign to the condition property of this UpdateSecurityRuleDetails.
  • action (str) – The value to assign to the action property of this UpdateSecurityRuleDetails. Allowed values for this property are: “ALLOW”, “DROP”, “REJECT”, “INSPECT”
  • inspection (str) – The value to assign to the inspection property of this UpdateSecurityRuleDetails. Allowed values for this property are: “INTRUSION_DETECTION”, “INTRUSION_PREVENTION”
  • position (oci.network_firewall.models.RulePosition) – The value to assign to the position property of this UpdateSecurityRuleDetails.
action

[Required] Gets the action of this UpdateSecurityRuleDetails. Types of Action on the Traffic flow.

  • ALLOW - Allows the traffic.
  • DROP - Silently drops the traffic, e.g. without sending a TCP reset.
  • REJECT - Rejects the traffic, sending a TCP reset to client and/or server as applicable.
  • INSPECT - Inspects traffic for vulnerability as specified in inspection, which may result in rejection.

Allowed values for this property are: “ALLOW”, “DROP”, “REJECT”, “INSPECT”

Returns:The action of this UpdateSecurityRuleDetails.
Return type:str
condition

[Required] Gets the condition of this UpdateSecurityRuleDetails.

Returns:The condition of this UpdateSecurityRuleDetails.
Return type:oci.network_firewall.models.SecurityRuleMatchCriteria
inspection

Gets the inspection of this UpdateSecurityRuleDetails. Type of inspection to affect the Traffic flow. This is only applicable if action is INSPECT.

  • INTRUSION_DETECTION - Intrusion Detection.
  • INTRUSION_PREVENTION - Intrusion Detection and Prevention. Traffic classified as potentially malicious will be rejected as described in type.

Allowed values for this property are: “INTRUSION_DETECTION”, “INTRUSION_PREVENTION”

Returns:The inspection of this UpdateSecurityRuleDetails.
Return type:str
position

Gets the position of this UpdateSecurityRuleDetails.

Returns:The position of this UpdateSecurityRuleDetails.
Return type:oci.network_firewall.models.RulePosition