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, str]] = None,
                      description: Optional[str] = None,
                      display_name: Optional[str] = None,
                      enforcement_scope: Optional[str] = None,
                      freeform_tags: Optional[Mapping[str, str]] = 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", "string" },
    },
    Description = "string",
    DisplayName = "string",
    EnforcementScope = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    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.StringMap{
		"string": pulumi.String("string"),
	},
	Description:      pulumi.String("string"),
	DisplayName:      pulumi.String("string"),
	EnforcementScope: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	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", "string"))
    .description("string")
    .displayName("string")
    .enforcementScope("string")
    .freeformTags(Map.of("string", "string"))
    .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": "string",
    },
    description="string",
    display_name="string",
    enforcement_scope="string",
    freeform_tags={
        "string": "string",
    },
    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: "string",
    },
    description: "string",
    displayName: "string",
    enforcementScope: "string",
    freeformTags: {
        string: "string",
    },
    allowedClientOsUsernames: ["string"],
    status: "string",
    violationAction: "string",
    violationAudit: "string",
});
type: oci:DataSafe:SqlFirewallPolicy
properties:
    allowedClientIps:
        - string
    allowedClientOsUsernames:
        - string
    allowedClientPrograms:
        - string
    compartmentId: string
    definedTags:
        string: string
    description: string
    displayName: string
    enforcementScope: string
    freeformTags:
        string: string
    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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlFirewallPolicy resource accepts the following input properties:
- SqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- AllowedClient List<string>Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- AllowedClient List<string>Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- AllowedClient List<string>Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Dictionary<string, string>
- (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.
- DisplayName string
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- EnforcementScope string
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- Dictionary<string, string>
- (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.
- ViolationAction string
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- ViolationAudit 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 
- SqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- AllowedClient []stringIps 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- AllowedClient []stringOs Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- AllowedClient []stringPrograms 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- map[string]string
- (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.
- DisplayName string
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- EnforcementScope string
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- map[string]string
- (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.
- ViolationAction string
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- ViolationAudit 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 
- sqlFirewall StringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- allowedClient List<String>Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowedClient List<String>Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowedClient List<String>Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartmentId String
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Map<String,String>
- (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.
- displayName String
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcementScope String
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<String,String>
- (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.
- violationAction String
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violationAudit 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 
- sqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- allowedClient string[]Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowedClient string[]Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowedClient string[]Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartmentId string
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- {[key: string]: string}
- (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.
- displayName string
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcementScope string
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- {[key: string]: string}
- (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.
- violationAction string
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violationAudit 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, str]
- (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, str]
- (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 
- sqlFirewall StringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- allowedClient List<String>Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowedClient List<String>Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowedClient List<String>Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartmentId String
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- Map<String>
- (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.
- displayName String
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcementScope String
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<String>
- (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.
- violationAction String
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violationAudit 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:
- DbUser stringName 
- The database user name.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Details about the current state of the SQL Firewall policy in Data Safe.
- SecurityPolicy stringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- SqlLevel 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, string>
- 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"}
- TimeCreated string
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- DbUser stringName 
- The database user name.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Details about the current state of the SQL Firewall policy in Data Safe.
- SecurityPolicy stringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- SqlLevel 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]string
- 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"}
- TimeCreated string
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- dbUser StringName 
- The database user name.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- Details about the current state of the SQL Firewall policy in Data Safe.
- securityPolicy StringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- sqlLevel 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,String>
- 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"}
- timeCreated String
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- dbUser stringName 
- The database user name.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails string
- Details about the current state of the SQL Firewall policy in Data Safe.
- securityPolicy stringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- sqlLevel 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]: string}
- 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"}
- timeCreated string
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- timeUpdated 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, str]
- 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.
- dbUser StringName 
- The database user name.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- Details about the current state of the SQL Firewall policy in Data Safe.
- securityPolicy StringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- sqlLevel 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>
- 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"}
- timeCreated String
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- timeUpdated 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, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        enforcement_scope: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = 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, str]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        violation_action: Optional[str] = None,
        violation_audit: Optional[str] = None) -> SqlFirewallPolicyfunc 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)resources:  _:    type: oci:DataSafe:SqlFirewallPolicy    get:      id: ${id}- 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.
- AllowedClient List<string>Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- AllowedClient List<string>Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- AllowedClient List<string>Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- DbUser stringName 
- The database user name.
- Dictionary<string, string>
- (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.
- DisplayName string
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- EnforcementScope string
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- Dictionary<string, string>
- (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"}
- LifecycleDetails string
- Details about the current state of the SQL Firewall policy in Data Safe.
- SecurityPolicy stringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- SqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- SqlLevel 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, string>
- 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"}
- TimeCreated string
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- ViolationAction string
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- ViolationAudit 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 
- AllowedClient []stringIps 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- AllowedClient []stringOs Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- AllowedClient []stringPrograms 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- DbUser stringName 
- The database user name.
- map[string]string
- (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.
- DisplayName string
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- EnforcementScope string
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- map[string]string
- (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"}
- LifecycleDetails string
- Details about the current state of the SQL Firewall policy in Data Safe.
- SecurityPolicy stringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- SqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- SqlLevel 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]string
- 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"}
- TimeCreated string
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- ViolationAction string
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- ViolationAudit 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 
- allowedClient List<String>Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowedClient List<String>Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowedClient List<String>Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartmentId String
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- dbUser StringName 
- The database user name.
- Map<String,String>
- (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.
- displayName String
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcementScope String
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<String,String>
- (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"}
- lifecycleDetails String
- Details about the current state of the SQL Firewall policy in Data Safe.
- securityPolicy StringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- sqlFirewall StringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- sqlLevel 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,String>
- 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"}
- timeCreated String
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violationAction String
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violationAudit 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 
- allowedClient string[]Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowedClient string[]Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowedClient string[]Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartmentId string
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- dbUser stringName 
- The database user name.
- {[key: string]: string}
- (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.
- displayName string
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcementScope string
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- {[key: string]: string}
- (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"}
- lifecycleDetails string
- Details about the current state of the SQL Firewall policy in Data Safe.
- securityPolicy stringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- sqlFirewall stringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- sqlLevel 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]: string}
- 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"}
- timeCreated string
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- timeUpdated string
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violationAction string
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violationAudit 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, str]
- (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, str]
- (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, str]
- 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 
- allowedClient List<String>Ips 
- (Updatable) List of allowed ip addresses for the SQL Firewall policy.
- allowedClient List<String>Os Usernames 
- (Updatable) List of allowed operating system user names for the SQL Firewall policy.
- allowedClient List<String>Programs 
- (Updatable) List of allowed client programs for the SQL Firewall policy.
- compartmentId String
- (Updatable) The OCID of the compartment containing the SQL Firewall policy.
- dbUser StringName 
- The database user name.
- Map<String>
- (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.
- displayName String
- (Updatable) The display name of the SQL Firewall policy. The name does not have to be unique, and it is changeable.
- enforcementScope String
- (Updatable) Specifies the SQL Firewall policy enforcement option.
- Map<String>
- (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"}
- lifecycleDetails String
- Details about the current state of the SQL Firewall policy in Data Safe.
- securityPolicy StringId 
- The OCID of the security policy corresponding to the SQL Firewall policy.
- sqlFirewall StringPolicy Id 
- The OCID of the SQL Firewall policy resource.
- sqlLevel 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>
- 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"}
- timeCreated String
- The time that the SQL Firewall policy was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the SQL Firewall policy was last updated, in the format defined by RFC3339.
- violationAction String
- (Updatable) Specifies the SQL Firewall action based on detection of SQL Firewall violations.
- violationAudit 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 ociTerraform Provider.