1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. SqlFirewallPolicy
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.SqlFirewallPolicy

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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:

    SqlFirewallPolicyId string
    The OCID of the SQL Firewall policy resource.
    AllowedClientIps List<string>
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    AllowedClientOsUsernames List<string>
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    AllowedClientPrograms List<string>
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    DefinedTags 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.
    FreeformTags 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

    SqlFirewallPolicyId string
    The OCID of the SQL Firewall policy resource.
    AllowedClientIps []string
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    AllowedClientOsUsernames []string
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    AllowedClientPrograms []string
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    DefinedTags 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.
    FreeformTags 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

    sqlFirewallPolicyId String
    The OCID of the SQL Firewall policy resource.
    allowedClientIps List<String>
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowedClientOsUsernames List<String>
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowedClientPrograms List<String>
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    compartmentId String
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    definedTags 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.
    freeformTags 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

    sqlFirewallPolicyId string
    The OCID of the SQL Firewall policy resource.
    allowedClientIps string[]
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowedClientOsUsernames string[]
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowedClientPrograms string[]
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    compartmentId string
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    definedTags {[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.
    freeformTags {[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_policy_id str
    The OCID of the SQL Firewall policy resource.
    allowed_client_ips Sequence[str]
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowed_client_os_usernames Sequence[str]
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowed_client_programs Sequence[str]
    (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.
    defined_tags 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.
    freeform_tags 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

    sqlFirewallPolicyId String
    The OCID of the SQL Firewall policy resource.
    allowedClientIps List<String>
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowedClientOsUsernames List<String>
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowedClientPrograms List<String>
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    compartmentId String
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    definedTags 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.
    freeformTags 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:

    DbUserName string
    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.
    SecurityPolicyId string
    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.
    SystemTags 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.
    DbUserName string
    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.
    SecurityPolicyId string
    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.
    SystemTags 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.
    dbUserName String
    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.
    securityPolicyId String
    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.
    systemTags 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.
    dbUserName string
    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.
    securityPolicyId string
    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.
    systemTags {[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_name str
    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_id str
    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.
    system_tags 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.
    dbUserName String
    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.
    securityPolicyId String
    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.
    systemTags 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) -> 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.
    The following state arguments are supported:
    AllowedClientIps List<string>
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    AllowedClientOsUsernames List<string>
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    AllowedClientPrograms List<string>
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    DbUserName string
    The database user name.
    DefinedTags 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.
    FreeformTags 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.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the SQL Firewall policy.
    SqlFirewallPolicyId string
    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.
    SystemTags 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

    AllowedClientIps []string
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    AllowedClientOsUsernames []string
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    AllowedClientPrograms []string
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    DbUserName string
    The database user name.
    DefinedTags 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.
    FreeformTags 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.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the SQL Firewall policy.
    SqlFirewallPolicyId string
    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.
    SystemTags 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

    allowedClientIps List<String>
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowedClientOsUsernames List<String>
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowedClientPrograms List<String>
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    compartmentId String
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    dbUserName String
    The database user name.
    definedTags 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.
    freeformTags 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.
    securityPolicyId String
    The OCID of the security policy corresponding to the SQL Firewall policy.
    sqlFirewallPolicyId String
    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.
    systemTags 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

    allowedClientIps string[]
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowedClientOsUsernames string[]
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowedClientPrograms string[]
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    compartmentId string
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    dbUserName string
    The database user name.
    definedTags {[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.
    freeformTags {[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.
    securityPolicyId string
    The OCID of the security policy corresponding to the SQL Firewall policy.
    sqlFirewallPolicyId string
    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.
    systemTags {[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_ips Sequence[str]
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowed_client_os_usernames Sequence[str]
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowed_client_programs Sequence[str]
    (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_name str
    The database user name.
    defined_tags 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.
    freeform_tags 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_id str
    The OCID of the security policy corresponding to the SQL Firewall policy.
    sql_firewall_policy_id str
    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.
    system_tags 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

    allowedClientIps List<String>
    (Updatable) List of allowed ip addresses for the SQL Firewall policy.
    allowedClientOsUsernames List<String>
    (Updatable) List of allowed operating system user names for the SQL Firewall policy.
    allowedClientPrograms List<String>
    (Updatable) List of allowed client programs for the SQL Firewall policy.
    compartmentId String
    (Updatable) The OCID of the compartment containing the SQL Firewall policy.
    dbUserName String
    The database user name.
    definedTags 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.
    freeformTags 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.
    securityPolicyId String
    The OCID of the security policy corresponding to the SQL Firewall policy.
    sqlFirewallPolicyId String
    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.
    systemTags 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi