UpdateSqlFirewallPolicyDetails¶
-
class
oci.data_safe.models.UpdateSqlFirewallPolicyDetails(**kwargs)¶ Bases:
objectDetails to update the SQL Firewall policy.
Attributes
ENFORCEMENT_SCOPE_ENFORCE_ALLA constant which can be used with the enforcement_scope property of a UpdateSqlFirewallPolicyDetails. ENFORCEMENT_SCOPE_ENFORCE_CONTEXTA constant which can be used with the enforcement_scope property of a UpdateSqlFirewallPolicyDetails. ENFORCEMENT_SCOPE_ENFORCE_SQLA constant which can be used with the enforcement_scope property of a UpdateSqlFirewallPolicyDetails. STATUS_DISABLEDA constant which can be used with the status property of a UpdateSqlFirewallPolicyDetails. STATUS_ENABLEDA constant which can be used with the status property of a UpdateSqlFirewallPolicyDetails. VIOLATION_ACTION_BLOCKA constant which can be used with the violation_action property of a UpdateSqlFirewallPolicyDetails. VIOLATION_ACTION_OBSERVEA constant which can be used with the violation_action property of a UpdateSqlFirewallPolicyDetails. VIOLATION_AUDIT_DISABLEDA constant which can be used with the violation_audit property of a UpdateSqlFirewallPolicyDetails. VIOLATION_AUDIT_ENABLEDA constant which can be used with the violation_audit property of a UpdateSqlFirewallPolicyDetails. allowed_client_ipsGets the allowed_client_ips of this UpdateSqlFirewallPolicyDetails. allowed_client_os_usernamesGets the allowed_client_os_usernames of this UpdateSqlFirewallPolicyDetails. allowed_client_programsGets the allowed_client_programs of this UpdateSqlFirewallPolicyDetails. defined_tagsGets the defined_tags of this UpdateSqlFirewallPolicyDetails. descriptionGets the description of this UpdateSqlFirewallPolicyDetails. display_nameGets the display_name of this UpdateSqlFirewallPolicyDetails. enforcement_scopeGets the enforcement_scope of this UpdateSqlFirewallPolicyDetails. freeform_tagsGets the freeform_tags of this UpdateSqlFirewallPolicyDetails. statusGets the status of this UpdateSqlFirewallPolicyDetails. violation_actionGets the violation_action of this UpdateSqlFirewallPolicyDetails. violation_auditGets the violation_audit of this UpdateSqlFirewallPolicyDetails. Methods
__init__(**kwargs)Initializes a new UpdateSqlFirewallPolicyDetails object with values from keyword arguments. -
ENFORCEMENT_SCOPE_ENFORCE_ALL= 'ENFORCE_ALL'¶ A constant which can be used with the enforcement_scope property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “ENFORCE_ALL”
-
ENFORCEMENT_SCOPE_ENFORCE_CONTEXT= 'ENFORCE_CONTEXT'¶ A constant which can be used with the enforcement_scope property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “ENFORCE_CONTEXT”
-
ENFORCEMENT_SCOPE_ENFORCE_SQL= 'ENFORCE_SQL'¶ A constant which can be used with the enforcement_scope property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “ENFORCE_SQL”
-
STATUS_DISABLED= 'DISABLED'¶ A constant which can be used with the status property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “DISABLED”
-
STATUS_ENABLED= 'ENABLED'¶ A constant which can be used with the status property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “ENABLED”
-
VIOLATION_ACTION_BLOCK= 'BLOCK'¶ A constant which can be used with the violation_action property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “BLOCK”
-
VIOLATION_ACTION_OBSERVE= 'OBSERVE'¶ A constant which can be used with the violation_action property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “OBSERVE”
-
VIOLATION_AUDIT_DISABLED= 'DISABLED'¶ A constant which can be used with the violation_audit property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “DISABLED”
-
VIOLATION_AUDIT_ENABLED= 'ENABLED'¶ A constant which can be used with the violation_audit property of a UpdateSqlFirewallPolicyDetails. This constant has a value of “ENABLED”
-
__init__(**kwargs)¶ Initializes a new UpdateSqlFirewallPolicyDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - display_name (str) – The value to assign to the display_name property of this UpdateSqlFirewallPolicyDetails.
- description (str) – The value to assign to the description property of this UpdateSqlFirewallPolicyDetails.
- status (str) – The value to assign to the status property of this UpdateSqlFirewallPolicyDetails. Allowed values for this property are: “ENABLED”, “DISABLED”
- enforcement_scope (str) – The value to assign to the enforcement_scope property of this UpdateSqlFirewallPolicyDetails. Allowed values for this property are: “ENFORCE_CONTEXT”, “ENFORCE_SQL”, “ENFORCE_ALL”
- violation_action (str) – The value to assign to the violation_action property of this UpdateSqlFirewallPolicyDetails. Allowed values for this property are: “BLOCK”, “OBSERVE”
- violation_audit (str) – The value to assign to the violation_audit property of this UpdateSqlFirewallPolicyDetails. Allowed values for this property are: “ENABLED”, “DISABLED”
- allowed_client_ips (list[str]) – The value to assign to the allowed_client_ips property of this UpdateSqlFirewallPolicyDetails.
- allowed_client_os_usernames (list[str]) – The value to assign to the allowed_client_os_usernames property of this UpdateSqlFirewallPolicyDetails.
- allowed_client_programs (list[str]) – The value to assign to the allowed_client_programs property of this UpdateSqlFirewallPolicyDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateSqlFirewallPolicyDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateSqlFirewallPolicyDetails.
-
allowed_client_ips¶ Gets the allowed_client_ips of this UpdateSqlFirewallPolicyDetails. List of allowed ip addresses for the SQL Firewall policy.
Returns: The allowed_client_ips of this UpdateSqlFirewallPolicyDetails. Return type: list[str]
-
allowed_client_os_usernames¶ Gets the allowed_client_os_usernames of this UpdateSqlFirewallPolicyDetails. List of allowed operating system user names for the SQL Firewall policy.
Returns: The allowed_client_os_usernames of this UpdateSqlFirewallPolicyDetails. Return type: list[str]
-
allowed_client_programs¶ Gets the allowed_client_programs of this UpdateSqlFirewallPolicyDetails. List of allowed client programs for the SQL Firewall policy.
Returns: The allowed_client_programs of this UpdateSqlFirewallPolicyDetails. Return type: list[str]
Gets the defined_tags of this UpdateSqlFirewallPolicyDetails. 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 UpdateSqlFirewallPolicyDetails. Return type: dict(str, dict(str, object))
-
description¶ Gets the description of this UpdateSqlFirewallPolicyDetails. The description of the SQL Firewall policy.
Returns: The description of this UpdateSqlFirewallPolicyDetails. Return type: str
-
display_name¶ Gets the display_name of this UpdateSqlFirewallPolicyDetails. The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
Returns: The display_name of this UpdateSqlFirewallPolicyDetails. Return type: str
-
enforcement_scope¶ Gets the enforcement_scope of this UpdateSqlFirewallPolicyDetails. Specifies the SQL Firewall policy enforcement option.
Allowed values for this property are: “ENFORCE_CONTEXT”, “ENFORCE_SQL”, “ENFORCE_ALL”
Returns: The enforcement_scope of this UpdateSqlFirewallPolicyDetails. Return type: str
Gets the freeform_tags of this UpdateSqlFirewallPolicyDetails. 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 UpdateSqlFirewallPolicyDetails. Return type: dict(str, str)
-
status¶ Gets the status of this UpdateSqlFirewallPolicyDetails. Specifies whether the SQL Firewall policy is enabled or disabled.
Allowed values for this property are: “ENABLED”, “DISABLED”
Returns: The status of this UpdateSqlFirewallPolicyDetails. Return type: str
-
violation_action¶ Gets the violation_action of this UpdateSqlFirewallPolicyDetails. Specifies the SQL Firewall action based on detection of SQL Firewall violations.
Allowed values for this property are: “BLOCK”, “OBSERVE”
Returns: The violation_action of this UpdateSqlFirewallPolicyDetails. Return type: str
-
violation_audit¶ Gets the violation_audit of this UpdateSqlFirewallPolicyDetails. Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
Allowed values for this property are: “ENABLED”, “DISABLED”
Returns: The violation_audit of this UpdateSqlFirewallPolicyDetails. Return type: str
-