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,
});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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
The SqlFirewallPolicyManagement resource accepts the following input properties:
- Allowed
Client List<string>Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- Allowed
Client List<string>Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- Allowed
Client List<string>Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- Db
User stringName - The database user name.
- Dictionary<string, 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.
- Display
Name string - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL firewall policy enforcement option.
- Dictionary<string, 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"}
- Sql
Firewall stringPolicy Id - 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.
- Target
Id string - Unique target identifier.
- Violation
Action string - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Allowed
Client []stringIps - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- Allowed
Client []stringOs Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- Allowed
Client []stringPrograms - (Updatable) List of allowed client programs for the SQL firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- Db
User stringName - The database user name.
- map[string]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.
- Display
Name string - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL firewall policy enforcement option.
- map[string]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"}
- Sql
Firewall stringPolicy Id - 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.
- Target
Id string - Unique target identifier.
- Violation
Action string - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db
User StringName - The database user name.
- Map<String,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.
- display
Name String - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL firewall policy enforcement option.
- Map<String,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"}
- sql
Firewall StringPolicy Id - 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.
- target
Id String - Unique target identifier.
- violation
Action String - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client string[]Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed
Client string[]Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed
Client string[]Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment
Id string - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db
User stringName - The database user name.
- {[key: string]: 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.
- display
Name string - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope string - (Updatable) Specifies the SQL firewall policy enforcement option.
- {[key: string]: 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"}
- sql
Firewall stringPolicy Id - 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.
- target
Id string - Unique target identifier.
- violation
Action string - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed_
client_ Sequence[str]ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed_
client_ Sequence[str]os_ usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed_
client_ Sequence[str]programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment_
id str - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db_
user_ strname - The database user name.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the SQL firewall policy.
- display_
name str - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement_
scope str - (Updatable) Specifies the SQL firewall policy enforcement option.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- sql_
firewall_ strpolicy_ id - 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
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db
User StringName - The database user name.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the SQL firewall policy.
- display
Name String - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL firewall policy enforcement option.
- Map<String>
- (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 StringPolicy Id - 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.
- target
Id String - Unique target identifier.
- violation
Action String - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlFirewallPolicyManagement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the SQL firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL firewall policy.
- Sql
Level string - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- 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"}
- Time
Created string - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the SQL firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL firewall policy.
- Sql
Level string - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- 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"}
- Time
Created string - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the SQL firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL firewall policy.
- sql
Level String - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- 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"}
- time
Created String - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the current state of the SQL firewall policy in Data Safe.
- security
Policy stringId - The OCID of the security policy corresponding to the SQL firewall policy.
- sql
Level string - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- {[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"}
- time
Created string - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- time
Updated string - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the current state of the SQL firewall policy in Data Safe.
- security_
policy_ strid - The OCID of the security policy corresponding to the SQL firewall policy.
- sql_
level str - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- 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.
- lifecycle
Details String - Details about the current state of the SQL firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL firewall policy.
- sql
Level String - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- 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"}
- time
Created String - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
Look up Existing 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allowed
Client List<string>Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- Allowed
Client List<string>Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- Allowed
Client List<string>Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- Db
User stringName - The database user name.
- Dictionary<string, 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.
- Display
Name string - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL firewall policy enforcement option.
- Dictionary<string, 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"}
- Lifecycle
Details string - Details about the current state of the SQL firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL firewall policy.
- Sql
Firewall stringPolicy Id - The OCID of the SQL firewall policy resource.
- Sql
Level string - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- State string
- The current state of the SQL firewall policy.
- Status string
- (Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
- Dictionary<string, 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"}
- Target
Id string - Unique target identifier.
- Time
Created string - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- Violation
Action string - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Allowed
Client []stringIps - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- Allowed
Client []stringOs Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- Allowed
Client []stringPrograms - (Updatable) List of allowed client programs for the SQL firewall policy.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- Db
User stringName - The database user name.
- map[string]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.
- Display
Name string - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- Enforcement
Scope string - (Updatable) Specifies the SQL firewall policy enforcement option.
- map[string]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"}
- Lifecycle
Details string - Details about the current state of the SQL firewall policy in Data Safe.
- Security
Policy stringId - The OCID of the security policy corresponding to the SQL firewall policy.
- Sql
Firewall stringPolicy Id - The OCID of the SQL firewall policy resource.
- Sql
Level string - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- State string
- The current state of the SQL firewall policy.
- Status string
- (Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
- map[string]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"}
- Target
Id string - Unique target identifier.
- Time
Created string - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- Violation
Action string - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- Violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db
User StringName - The database user name.
- Map<String,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.
- display
Name String - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL firewall policy enforcement option.
- Map<String,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"}
- lifecycle
Details String - Details about the current state of the SQL firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL firewall policy.
- sql
Firewall StringPolicy Id - The OCID of the SQL firewall policy resource.
- sql
Level String - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state String
- The current state of the SQL firewall policy.
- status String
- (Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
- Map<String,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"}
- target
Id String - Unique target identifier.
- time
Created String - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- violation
Action String - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed
Client string[]Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed
Client string[]Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed
Client string[]Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment
Id string - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db
User stringName - The database user name.
- {[key: string]: 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.
- display
Name string - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope string - (Updatable) Specifies the SQL firewall policy enforcement option.
- {[key: string]: 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"}
- lifecycle
Details string - Details about the current state of the SQL firewall policy in Data Safe.
- security
Policy stringId - The OCID of the security policy corresponding to the SQL firewall policy.
- sql
Firewall stringPolicy Id - The OCID of the SQL firewall policy resource.
- sql
Level string - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state string
- The current state of the SQL firewall policy.
- status string
- (Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
- {[key: string]: 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"}
- target
Id string - Unique target identifier.
- time
Created string - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- time
Updated string - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- violation
Action string - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- violation
Audit string (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- allowed_
client_ Sequence[str]ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed_
client_ Sequence[str]os_ usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed_
client_ Sequence[str]programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment_
id str - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db_
user_ strname - The database user name.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the SQL firewall policy.
- display_
name str - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement_
scope str - (Updatable) Specifies the SQL firewall policy enforcement option.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- lifecycle_
details str - Details about the current state of the SQL firewall policy in Data Safe.
- security_
policy_ strid - The OCID of the security policy corresponding to the SQL firewall policy.
- sql_
firewall_ strpolicy_ id - The OCID of the SQL firewall policy resource.
- sql_
level str - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state str
- The current state of the SQL firewall policy.
- status str
- (Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- 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
- allowed
Client List<String>Ips - (Updatable) List of allowed ip addresses for the SQL firewall policy.
- allowed
Client List<String>Os Usernames - (Updatable) List of allowed operating system user names for the SQL firewall policy.
- allowed
Client List<String>Programs - (Updatable) List of allowed client programs for the SQL firewall policy.
- compartment
Id String - (Updatable) The OCID of the compartment containing the SQL firewall policy.
- db
User StringName - The database user name.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the SQL firewall policy.
- display
Name String - (Updatable) The display name of the SQL firewall policy. The name does not have to be unique, and it is changeable.
- enforcement
Scope String - (Updatable) Specifies the SQL firewall policy enforcement option.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- lifecycle
Details String - Details about the current state of the SQL firewall policy in Data Safe.
- security
Policy StringId - The OCID of the security policy corresponding to the SQL firewall policy.
- sql
Firewall StringPolicy Id - The OCID of the SQL firewall policy resource.
- sql
Level String - Specifies the level of SQL included for this SQL firewall policy. USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units.
- state String
- The current state of the SQL firewall policy.
- status String
- (Updatable) Specifies whether the SQL firewall policy is enabled or disabled.
- Map<String>
- 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 String - Unique target identifier.
- time
Created String - The time that the SQL firewall policy was created, in the format defined by RFC3339.
- time
Updated String - The date and time the SQL firewall policy was last updated, in the format defined by RFC3339.
- violation
Action String - (Updatable) Specifies the SQL firewall action based on detection of SQL firewall violations.
- violation
Audit String (Updatable) Specifies whether a unified audit policy should be enabled for auditing the SQL firewall policy violations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
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.