1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. SqlFirewallPolicyManagement
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.DataSafe.SqlFirewallPolicyManagement

Explore with Pulumi AI

This resource provides the Sql Firewall Policy Management resource in Oracle Cloud Infrastructure Data Safe service.

Updates the SQL firewall policy.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSqlFirewallPolicyManagement = new oci.datasafe.SqlFirewallPolicyManagement("test_sql_firewall_policy_management", {
    compartmentId: compartmentId,
    targetId: testTargetDatabase.id,
    dbUserName: testUser.name,
    allowedClientIps: sqlFirewallPolicyManagementAllowedClientIps,
    allowedClientOsUsernames: sqlFirewallPolicyManagementAllowedClientOsUsernames,
    allowedClientPrograms: sqlFirewallPolicyManagementAllowedClientPrograms,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: sqlFirewallPolicyManagementDescription,
    displayName: sqlFirewallPolicyManagementDisplayName,
    enforcementScope: sqlFirewallPolicyManagementEnforcementScope,
    freeformTags: {
        Department: "Finance",
    },
    status: sqlFirewallPolicyManagementStatus,
    violationAction: sqlFirewallPolicyManagementViolationAction,
    violationAudit: sqlFirewallPolicyManagementViolationAudit,
});
Copy
import pulumi
import pulumi_oci as oci

test_sql_firewall_policy_management = oci.data_safe.SqlFirewallPolicyManagement("test_sql_firewall_policy_management",
    compartment_id=compartment_id,
    target_id=test_target_database["id"],
    db_user_name=test_user["name"],
    allowed_client_ips=sql_firewall_policy_management_allowed_client_ips,
    allowed_client_os_usernames=sql_firewall_policy_management_allowed_client_os_usernames,
    allowed_client_programs=sql_firewall_policy_management_allowed_client_programs,
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=sql_firewall_policy_management_description,
    display_name=sql_firewall_policy_management_display_name,
    enforcement_scope=sql_firewall_policy_management_enforcement_scope,
    freeform_tags={
        "Department": "Finance",
    },
    status=sql_firewall_policy_management_status,
    violation_action=sql_firewall_policy_management_violation_action,
    violation_audit=sql_firewall_policy_management_violation_audit)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.NewSqlFirewallPolicyManagement(ctx, "test_sql_firewall_policy_management", &datasafe.SqlFirewallPolicyManagementArgs{
			CompartmentId:            pulumi.Any(compartmentId),
			TargetId:                 pulumi.Any(testTargetDatabase.Id),
			DbUserName:               pulumi.Any(testUser.Name),
			AllowedClientIps:         pulumi.Any(sqlFirewallPolicyManagementAllowedClientIps),
			AllowedClientOsUsernames: pulumi.Any(sqlFirewallPolicyManagementAllowedClientOsUsernames),
			AllowedClientPrograms:    pulumi.Any(sqlFirewallPolicyManagementAllowedClientPrograms),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			Description:      pulumi.Any(sqlFirewallPolicyManagementDescription),
			DisplayName:      pulumi.Any(sqlFirewallPolicyManagementDisplayName),
			EnforcementScope: pulumi.Any(sqlFirewallPolicyManagementEnforcementScope),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			Status:          pulumi.Any(sqlFirewallPolicyManagementStatus),
			ViolationAction: pulumi.Any(sqlFirewallPolicyManagementViolationAction),
			ViolationAudit:  pulumi.Any(sqlFirewallPolicyManagementViolationAudit),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSqlFirewallPolicyManagement = new Oci.DataSafe.SqlFirewallPolicyManagement("test_sql_firewall_policy_management", new()
    {
        CompartmentId = compartmentId,
        TargetId = testTargetDatabase.Id,
        DbUserName = testUser.Name,
        AllowedClientIps = sqlFirewallPolicyManagementAllowedClientIps,
        AllowedClientOsUsernames = sqlFirewallPolicyManagementAllowedClientOsUsernames,
        AllowedClientPrograms = sqlFirewallPolicyManagementAllowedClientPrograms,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = sqlFirewallPolicyManagementDescription,
        DisplayName = sqlFirewallPolicyManagementDisplayName,
        EnforcementScope = sqlFirewallPolicyManagementEnforcementScope,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        Status = sqlFirewallPolicyManagementStatus,
        ViolationAction = sqlFirewallPolicyManagementViolationAction,
        ViolationAudit = sqlFirewallPolicyManagementViolationAudit,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.SqlFirewallPolicyManagement;
import com.pulumi.oci.DataSafe.SqlFirewallPolicyManagementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testSqlFirewallPolicyManagement = new SqlFirewallPolicyManagement("testSqlFirewallPolicyManagement", SqlFirewallPolicyManagementArgs.builder()
            .compartmentId(compartmentId)
            .targetId(testTargetDatabase.id())
            .dbUserName(testUser.name())
            .allowedClientIps(sqlFirewallPolicyManagementAllowedClientIps)
            .allowedClientOsUsernames(sqlFirewallPolicyManagementAllowedClientOsUsernames)
            .allowedClientPrograms(sqlFirewallPolicyManagementAllowedClientPrograms)
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(sqlFirewallPolicyManagementDescription)
            .displayName(sqlFirewallPolicyManagementDisplayName)
            .enforcementScope(sqlFirewallPolicyManagementEnforcementScope)
            .freeformTags(Map.of("Department", "Finance"))
            .status(sqlFirewallPolicyManagementStatus)
            .violationAction(sqlFirewallPolicyManagementViolationAction)
            .violationAudit(sqlFirewallPolicyManagementViolationAudit)
            .build());

    }
}
Copy
resources:
  testSqlFirewallPolicyManagement:
    type: oci:DataSafe:SqlFirewallPolicyManagement
    name: test_sql_firewall_policy_management
    properties:
      compartmentId: ${compartmentId}
      targetId: ${testTargetDatabase.id}
      dbUserName: ${testUser.name}
      allowedClientIps: ${sqlFirewallPolicyManagementAllowedClientIps}
      allowedClientOsUsernames: ${sqlFirewallPolicyManagementAllowedClientOsUsernames}
      allowedClientPrograms: ${sqlFirewallPolicyManagementAllowedClientPrograms}
      definedTags:
        Operations.CostCenter: '42'
      description: ${sqlFirewallPolicyManagementDescription}
      displayName: ${sqlFirewallPolicyManagementDisplayName}
      enforcementScope: ${sqlFirewallPolicyManagementEnforcementScope}
      freeformTags:
        Department: Finance
      status: ${sqlFirewallPolicyManagementStatus}
      violationAction: ${sqlFirewallPolicyManagementViolationAction}
      violationAudit: ${sqlFirewallPolicyManagementViolationAudit}
Copy

Create SqlFirewallPolicyManagement Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SqlFirewallPolicyManagement(name: string, args?: SqlFirewallPolicyManagementArgs, opts?: CustomResourceOptions);
@overload
def SqlFirewallPolicyManagement(resource_name: str,
                                args: Optional[SqlFirewallPolicyManagementArgs] = None,
                                opts: Optional[ResourceOptions] = None)

@overload
def SqlFirewallPolicyManagement(resource_name: 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,
                                sql_firewall_policy_id: Optional[str] = None,
                                state: Optional[str] = None,
                                status: Optional[str] = None,
                                target_id: Optional[str] = None,
                                violation_action: Optional[str] = None,
                                violation_audit: Optional[str] = None)
func NewSqlFirewallPolicyManagement(ctx *Context, name string, args *SqlFirewallPolicyManagementArgs, opts ...ResourceOption) (*SqlFirewallPolicyManagement, error)
public SqlFirewallPolicyManagement(string name, SqlFirewallPolicyManagementArgs? args = null, CustomResourceOptions? opts = null)
public SqlFirewallPolicyManagement(String name, SqlFirewallPolicyManagementArgs args)
public SqlFirewallPolicyManagement(String name, SqlFirewallPolicyManagementArgs args, CustomResourceOptions options)
type: oci:DataSafe:SqlFirewallPolicyManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SqlFirewallPolicyManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SqlFirewallPolicyManagementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SqlFirewallPolicyManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SqlFirewallPolicyManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SqlFirewallPolicyManagementArgs
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 sqlFirewallPolicyManagementResource = new Oci.DataSafe.SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource", new()
{
    AllowedClientIps = new[]
    {
        "string",
    },
    AllowedClientOsUsernames = new[]
    {
        "string",
    },
    AllowedClientPrograms = new[]
    {
        "string",
    },
    CompartmentId = "string",
    DbUserName = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    EnforcementScope = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    SqlFirewallPolicyId = "string",
    State = "string",
    Status = "string",
    TargetId = "string",
    ViolationAction = "string",
    ViolationAudit = "string",
});
Copy
example, err := DataSafe.NewSqlFirewallPolicyManagement(ctx, "sqlFirewallPolicyManagementResource", &DataSafe.SqlFirewallPolicyManagementArgs{
	AllowedClientIps: pulumi.StringArray{
		pulumi.String("string"),
	},
	AllowedClientOsUsernames: pulumi.StringArray{
		pulumi.String("string"),
	},
	AllowedClientPrograms: pulumi.StringArray{
		pulumi.String("string"),
	},
	CompartmentId: pulumi.String("string"),
	DbUserName:    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"),
	},
	SqlFirewallPolicyId: pulumi.String("string"),
	State:               pulumi.String("string"),
	Status:              pulumi.String("string"),
	TargetId:            pulumi.String("string"),
	ViolationAction:     pulumi.String("string"),
	ViolationAudit:      pulumi.String("string"),
})
Copy
var sqlFirewallPolicyManagementResource = new SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource", SqlFirewallPolicyManagementArgs.builder()
    .allowedClientIps("string")
    .allowedClientOsUsernames("string")
    .allowedClientPrograms("string")
    .compartmentId("string")
    .dbUserName("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .displayName("string")
    .enforcementScope("string")
    .freeformTags(Map.of("string", "string"))
    .sqlFirewallPolicyId("string")
    .state("string")
    .status("string")
    .targetId("string")
    .violationAction("string")
    .violationAudit("string")
    .build());
Copy
sql_firewall_policy_management_resource = oci.data_safe.SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource",
    allowed_client_ips=["string"],
    allowed_client_os_usernames=["string"],
    allowed_client_programs=["string"],
    compartment_id="string",
    db_user_name="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    display_name="string",
    enforcement_scope="string",
    freeform_tags={
        "string": "string",
    },
    sql_firewall_policy_id="string",
    state="string",
    status="string",
    target_id="string",
    violation_action="string",
    violation_audit="string")
Copy
const sqlFirewallPolicyManagementResource = new oci.datasafe.SqlFirewallPolicyManagement("sqlFirewallPolicyManagementResource", {
    allowedClientIps: ["string"],
    allowedClientOsUsernames: ["string"],
    allowedClientPrograms: ["string"],
    compartmentId: "string",
    dbUserName: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    enforcementScope: "string",
    freeformTags: {
        string: "string",
    },
    sqlFirewallPolicyId: "string",
    state: "string",
    status: "string",
    targetId: "string",
    violationAction: "string",
    violationAudit: "string",
});
Copy
type: oci:DataSafe:SqlFirewallPolicyManagement
properties:
    allowedClientIps:
        - string
    allowedClientOsUsernames:
        - string
    allowedClientPrograms:
        - string
    compartmentId: string
    dbUserName: string
    definedTags:
        string: string
    description: string
    displayName: string
    enforcementScope: string
    freeformTags:
        string: string
    sqlFirewallPolicyId: string
    state: string
    status: string
    targetId: string
    violationAction: string
    violationAudit: string
Copy

SqlFirewallPolicyManagement 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 SqlFirewallPolicyManagement resource accepts the following input properties:

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 collection.
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"}
SqlFirewallPolicyId string
The OCID of the SQL firewall policy resource.
State string
The current state of the SQL firewall policy.
Status string
(Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
TargetId string
Unique target identifier.
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 collection.
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"}
SqlFirewallPolicyId string
The OCID of the SQL firewall policy resource.
State string
The current state of the SQL firewall policy.
Status string
(Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
TargetId string
Unique target identifier.
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 collection.
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"}
sqlFirewallPolicyId String
The OCID of the SQL firewall policy resource.
state String
The current state of the SQL firewall policy.
status String
(Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
targetId String
Unique target identifier.
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 collection.
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"}
sqlFirewallPolicyId string
The OCID of the SQL firewall policy resource.
state string
The current state of the SQL firewall policy.
status string
(Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
targetId string
Unique target identifier.
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 collection.
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"}
sql_firewall_policy_id str
The OCID of the SQL firewall policy resource.
state str
The current state of the SQL firewall policy.
status str
(Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
target_id str
Unique target identifier.
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 collection.
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"}
sqlFirewallPolicyId String
The OCID of the SQL firewall policy resource.
state String
The current state of the SQL firewall policy.
status String
(Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
targetId String
Unique target identifier.
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 SqlFirewallPolicyManagement resource produces the following output properties:

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 SqlFirewallPolicyManagement Resource

Get an existing SqlFirewallPolicyManagement 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?: SqlFirewallPolicyManagementState, opts?: CustomResourceOptions): SqlFirewallPolicyManagement
@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,
        target_id: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        violation_action: Optional[str] = None,
        violation_audit: Optional[str] = None) -> SqlFirewallPolicyManagement
func GetSqlFirewallPolicyManagement(ctx *Context, name string, id IDInput, state *SqlFirewallPolicyManagementState, opts ...ResourceOption) (*SqlFirewallPolicyManagement, error)
public static SqlFirewallPolicyManagement Get(string name, Input<string> id, SqlFirewallPolicyManagementState? state, CustomResourceOptions? opts = null)
public static SqlFirewallPolicyManagement get(String name, Output<String> id, SqlFirewallPolicyManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:DataSafe:SqlFirewallPolicyManagement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 collection.
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"}
TargetId string
Unique target identifier.
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 collection.
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"}
TargetId string
Unique target identifier.
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 collection.
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"}
targetId String
Unique target identifier.
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 collection.
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"}
targetId string
Unique target identifier.
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 collection.
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"}
target_id str
Unique target identifier.
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 collection.
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"}
targetId String
Unique target identifier.
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

Import is not supported for this resource.

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.