Class SecurityRule
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.
Inherited Members
Namespace: Oci.NetworkfirewallService.Models
Assembly: OCI.DotNetSDK.Networkfirewall.dll
Syntax
public class SecurityRule
Properties
Action
Declaration
[Required(ErrorMessage = "Action is required.")]
[JsonProperty(PropertyName = "action")]
[JsonConverter(typeof(ResponseEnumConverter))]
public TrafficActionType? Action { get; set; }
Property Value
Type | Description |
---|---|
TrafficActionType? | Types of Action on the Traffic flow.
|
Remarks
Required
Condition
Declaration
[Required(ErrorMessage = "Condition is required.")]
[JsonProperty(PropertyName = "condition")]
public SecurityRuleMatchCriteria Condition { get; set; }
Property Value
Type | Description |
---|---|
SecurityRuleMatchCriteria |
Remarks
Required
Inspection
Declaration
[JsonProperty(PropertyName = "inspection")]
[JsonConverter(typeof(ResponseEnumConverter))]
public TrafficInspectionType? Inspection { get; set; }
Property Value
Type | Description |
---|---|
TrafficInspectionType? | Type of inspection to affect the Traffic flow. This is only applicable if action is INSPECT.
|
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name for the Security rule, must be unique within the policy. |
Remarks
Required
ParentResourceId
Declaration
[Required(ErrorMessage = "ParentResourceId is required.")]
[JsonProperty(PropertyName = "parentResourceId")]
public string ParentResourceId { get; set; }
Property Value
Type | Description |
---|---|
string | OCID of the Network Firewall Policy this security rule belongs to. |
Remarks
Required
Position
Declaration
[JsonProperty(PropertyName = "position")]
public RulePosition Position { get; set; }
Property Value
Type | Description |
---|---|
RulePosition |