oci.DataSafe.SqlFirewallPolicy
Explore with Pulumi AI
This resource provides the Sql Firewall Policy resource in Oracle Cloud Infrastructure Data Safe service.
Updates the SQL Firewall policy.
Create SqlFirewallPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlFirewallPolicy(name: string, args: SqlFirewallPolicyArgs, opts?: CustomResourceOptions);
@overload
def SqlFirewallPolicy(resource_name: str,
args: SqlFirewallPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlFirewallPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
sql_firewall_policy_id: Optional[str] = None,
compartment_id: Optional[str] = None,
allowed_client_programs: Optional[Sequence[str]] = None,
allowed_client_ips: Optional[Sequence[str]] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enforcement_scope: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
allowed_client_os_usernames: Optional[Sequence[str]] = None,
status: Optional[str] = None,
violation_action: Optional[str] = None,
violation_audit: Optional[str] = None)
func NewSqlFirewallPolicy(ctx *Context, name string, args SqlFirewallPolicyArgs, opts ...ResourceOption) (*SqlFirewallPolicy, error)
public SqlFirewallPolicy(string name, SqlFirewallPolicyArgs args, CustomResourceOptions? opts = null)
public SqlFirewallPolicy(String name, SqlFirewallPolicyArgs args)
public SqlFirewallPolicy(String name, SqlFirewallPolicyArgs args, CustomResourceOptions options)
type: oci:DataSafe:SqlFirewallPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlFirewallPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlFirewallPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlFirewallPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlFirewallPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlFirewallPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlFirewallPolicyResource = new Oci.DataSafe.SqlFirewallPolicy("sqlFirewallPolicyResource", new()
{
SqlFirewallPolicyId = "string",
CompartmentId = "string",
AllowedClientPrograms = new[]
{
"string",
},
AllowedClientIps = new[]
{
"string",
},
DefinedTags =
{
{ "string", "any" },
},
Description = "string",
DisplayName = "string",
EnforcementScope = "string",
FreeformTags =
{
{ "string", "any" },
},
AllowedClientOsUsernames = new[]
{
"string",
},
Status = "string",
ViolationAction = "string",
ViolationAudit = "string",
});
example, err := DataSafe.NewSqlFirewallPolicy(ctx, "sqlFirewallPolicyResource", &DataSafe.SqlFirewallPolicyArgs{
SqlFirewallPolicyId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
AllowedClientPrograms: pulumi.StringArray{
pulumi.String("string"),
},
AllowedClientIps: pulumi.StringArray{
pulumi.String("string"),
},
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EnforcementScope: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
AllowedClientOsUsernames: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
ViolationAction: pulumi.String("string"),
ViolationAudit: pulumi.String("string"),
})
var sqlFirewallPolicyResource = new SqlFirewallPolicy("sqlFirewallPolicyResource", SqlFirewallPolicyArgs.builder()
.sqlFirewallPolicyId("string")
.compartmentId("string")
.allowedClientPrograms("string")
.allowedClientIps("string")
.definedTags(Map.of("string", "any"))
.description("string")
.displayName("string")
.enforcementScope("string")
.freeformTags(Map.of("string", "any"))
.allowedClientOsUsernames("string")
.status("string")
.violationAction("string")
.violationAudit("string")
.build());
sql_firewall_policy_resource = oci.data_safe.SqlFirewallPolicy("sqlFirewallPolicyResource",
sql_firewall_policy_id="string",
compartment_id="string",
allowed_client_programs=["string"],
allowed_client_ips=["string"],
defined_tags={
"string": "any",
},
description="string",
display_name="string",
enforcement_scope="string",
freeform_tags={
"string": "any",
},
allowed_client_os_usernames=["string"],
status="string",
violation_action="string",
violation_audit="string")
const sqlFirewallPolicyResource = new oci.datasafe.SqlFirewallPolicy("sqlFirewallPolicyResource", {
sqlFirewallPolicyId: "string",
compartmentId: "string",
allowedClientPrograms: ["string"],
allowedClientIps: ["string"],
definedTags: {
string: "any",
},
description: "string",
displayName: "string",
enforcementScope: "string",
freeformTags: {
string: "any",
},
allowedClientOsUsernames: ["string"],
status: "string",
violationAction: "string",
violationAudit: "string",
});
type: oci:DataSafe:SqlFirewallPolicy
properties:
allowedClientIps:
- string
allowedClientOsUsernames:
- string
allowedClientPrograms:
- string
compartmentId: string
definedTags:
string: any
description: string
displayName: string
enforcementScope: string
freeformTags:
string: any
sqlFirewallPolicyId: string
status: string
violationAction: string
violationAudit: string
SqlFirewallPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SqlFirewallPolicy resource accepts the following input properties:
- Sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- Allowed
Client List<string>Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- Allowed
Client List<string>Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- Allowed
Client List<string>Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the SQL Firewall policy.
- Display
Name string - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Dictionary<string, object>
- (Updatable) 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"}
- Status string
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- Violation
Action string - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- Allowed
Client []stringIps - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- Allowed
Client []stringOs Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- Allowed
Client []stringPrograms - (Updatable) List of allowed client programs for the SQL Firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the SQL Firewall policy.
- Display
Name string - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL Firewall policy enforcement option.
- map[string]interface{}
- (Updatable) 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"}
- Status string
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- Violation
Action string - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- sql
Firewall StringPolicy Id - The OCID of the SQL Firewall policy resource.
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the SQL Firewall policy.
- display
Name String - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<String,Object>
- (Updatable) 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"}
- status String
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- violation
Action String - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- allowed
Client string[]Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed
Client string[]Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed
Client string[]Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment
Id string - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the SQL Firewall policy.
- display
Name string - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope string - (Updatable) Specifies the SQL Firewall policy enforcement option.
- {[key: string]: any}
- (Updatable) 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"}
- status string
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- violation
Action string - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- sql_
firewall_ strpolicy_ id - The OCID of the SQL Firewall policy resource.
- allowed_
client_ Sequence[str]ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed_
client_ Sequence[str]os_ usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed_
client_ Sequence[str]programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment_
id str - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the SQL Firewall policy.
- display_
name str - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement_
scope str - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Mapping[str, Any]
- (Updatable) 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"}
- status str
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- violation_
action str - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation_
audit str (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- sql
Firewall StringPolicy Id - The OCID of the SQL Firewall policy resource.
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the SQL Firewall policy.
- display
Name String - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<Any>
- (Updatable) 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"}
- status String
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- violation
Action String - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlFirewallPolicy resource produces the following output properties:
- Db
User stringName - The database user name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Level string - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- State string
- The current state of the SQL Firewall policy.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- Db
User stringName - The database user name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Level string - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- State string
- The current state of the SQL Firewall policy.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- db
User StringName - The database user name.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Level String - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state String
- The current state of the SQL Firewall policy.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- db
User stringName - The database user name.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Level string - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state string
- The current state of the SQL Firewall policy.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- db_
user_ strname - The database user name.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the current state of the SQL Firewall policy in Data Safe.
- security_
policy_ strid - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql_
level str - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state str
- The current state of the SQL Firewall policy.
- Mapping[str, Any]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time_
updated str - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- db
User StringName - The database user name.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Level String - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state String
- The current state of the SQL Firewall policy.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
Look up Existing SqlFirewallPolicy Resource
Get an existing SqlFirewallPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SqlFirewallPolicyState, opts?: CustomResourceOptions): SqlFirewallPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_client_ips: Optional[Sequence[str]] = None,
allowed_client_os_usernames: Optional[Sequence[str]] = None,
allowed_client_programs: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
db_user_name: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enforcement_scope: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
lifecycle_details: Optional[str] = None,
security_policy_id: Optional[str] = None,
sql_firewall_policy_id: Optional[str] = None,
sql_level: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
violation_action: Optional[str] = None,
violation_audit: Optional[str] = None) -> SqlFirewallPolicy
func GetSqlFirewallPolicy(ctx *Context, name string, id IDInput, state *SqlFirewallPolicyState, opts ...ResourceOption) (*SqlFirewallPolicy, error)
public static SqlFirewallPolicy Get(string name, Input<string> id, SqlFirewallPolicyState? state, CustomResourceOptions? opts = null)
public static SqlFirewallPolicy get(String name, Output<String> id, SqlFirewallPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allowed
Client List<string>Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- Allowed
Client List<string>Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- Allowed
Client List<string>Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Db
User stringName - The database user name.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the SQL Firewall policy.
- Display
Name string - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Dictionary<string, object>
- (Updatable) 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"}
- Lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- Sql
Level string - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- State string
- The current state of the SQL Firewall policy.
- Status string
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- Violation
Action string - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Allowed
Client []stringIps - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- Allowed
Client []stringOs Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- Allowed
Client []stringPrograms - (Updatable) List of allowed client programs for the SQL Firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Db
User stringName - The database user name.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the SQL Firewall policy.
- Display
Name string - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL Firewall policy enforcement option.
- map[string]interface{}
- (Updatable) 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"}
- Lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- Sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- Sql
Level string - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- State string
- The current state of the SQL Firewall policy.
- Status string
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- Violation
Action string - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- db
User StringName - The database user name.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the SQL Firewall policy.
- display
Name String - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<String,Object>
- (Updatable) 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"}
- lifecycle
Details String - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall StringPolicy Id - The OCID of the SQL Firewall policy resource.
- sql
Level String - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state String
- The current state of the SQL Firewall policy.
- status String
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation
Action String - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client string[]Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed
Client string[]Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed
Client string[]Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment
Id string - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- db
User stringName - The database user name.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the SQL Firewall policy.
- display
Name string - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope string - (Updatable) Specifies the SQL Firewall policy enforcement option.
- {[key: string]: any}
- (Updatable) 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"}
- lifecycle
Details string - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy stringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall stringPolicy Id - The OCID of the SQL Firewall policy resource.
- sql
Level string - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state string
- The current state of the SQL Firewall policy.
- status string
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated string - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation
Action string - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed_
client_ Sequence[str]ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed_
client_ Sequence[str]os_ usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed_
client_ Sequence[str]programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment_
id str - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- db_
user_ strname - The database user name.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the SQL Firewall policy.
- display_
name str - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement_
scope str - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Mapping[str, Any]
- (Updatable) 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"}
- lifecycle_
details str - Details about the current state of the SQL Firewall policy in Data Safe.
- security_
policy_ strid - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql_
firewall_ strpolicy_ id - The OCID of the SQL Firewall policy resource.
- sql_
level str - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state str
- The current state of the SQL Firewall policy.
- status str
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- Mapping[str, Any]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time_
updated str - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation_
action str - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation_
audit str (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- db
User StringName - The database user name.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the SQL Firewall policy.
- display
Name String - (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<Any>
- (Updatable) 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"}
- lifecycle
Details String - Details about the current state of the SQL Firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL Firewall policy.
- sql
Firewall StringPolicy Id - The OCID of the SQL Firewall policy resource.
- sql
Level String - Specifies the level of SQL included for this SQL Firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state String
- The current state of the SQL Firewall policy.
- status String
- (Updatable) Specifies whether the SQL Firewall policy is enabled or disabled.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violation
Action String - (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL Firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
SqlFirewallPolicies can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/sqlFirewallPolicy:SqlFirewallPolicy test_sql_firewall_policy "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.