oci.DataSafe.DatabaseSecurityConfigManagement
Explore with Pulumi AI
This resource provides the Database Security Config Management resource in Oracle Cloud Infrastructure Data Safe service.
Updates the database security configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseSecurityConfigManagement = new oci.datasafe.DatabaseSecurityConfigManagement("test_database_security_config_management", {
    compartmentId: compartmentId,
    targetId: testTargetDatabase.id,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: databaseSecurityConfigManagementDescription,
    displayName: databaseSecurityConfigManagementDisplayName,
    freeformTags: {
        Department: "Finance",
    },
    sqlFirewallConfig: {
        excludeJob: databaseSecurityConfigManagementSqlFirewallConfigExcludeJob,
        status: databaseSecurityConfigManagementSqlFirewallConfigStatus,
        violationLogAutoPurge: databaseSecurityConfigManagementSqlFirewallConfigViolationLogAutoPurge,
    },
});
import pulumi
import pulumi_oci as oci
test_database_security_config_management = oci.data_safe.DatabaseSecurityConfigManagement("test_database_security_config_management",
    compartment_id=compartment_id,
    target_id=test_target_database["id"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=database_security_config_management_description,
    display_name=database_security_config_management_display_name,
    freeform_tags={
        "Department": "Finance",
    },
    sql_firewall_config={
        "exclude_job": database_security_config_management_sql_firewall_config_exclude_job,
        "status": database_security_config_management_sql_firewall_config_status,
        "violation_log_auto_purge": database_security_config_management_sql_firewall_config_violation_log_auto_purge,
    })
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.NewDatabaseSecurityConfigManagement(ctx, "test_database_security_config_management", &datasafe.DatabaseSecurityConfigManagementArgs{
			CompartmentId: pulumi.Any(compartmentId),
			TargetId:      pulumi.Any(testTargetDatabase.Id),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			Description: pulumi.Any(databaseSecurityConfigManagementDescription),
			DisplayName: pulumi.Any(databaseSecurityConfigManagementDisplayName),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			SqlFirewallConfig: &datasafe.DatabaseSecurityConfigManagementSqlFirewallConfigArgs{
				ExcludeJob:            pulumi.Any(databaseSecurityConfigManagementSqlFirewallConfigExcludeJob),
				Status:                pulumi.Any(databaseSecurityConfigManagementSqlFirewallConfigStatus),
				ViolationLogAutoPurge: pulumi.Any(databaseSecurityConfigManagementSqlFirewallConfigViolationLogAutoPurge),
			},
		})
		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 testDatabaseSecurityConfigManagement = new Oci.DataSafe.DatabaseSecurityConfigManagement("test_database_security_config_management", new()
    {
        CompartmentId = compartmentId,
        TargetId = testTargetDatabase.Id,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = databaseSecurityConfigManagementDescription,
        DisplayName = databaseSecurityConfigManagementDisplayName,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        SqlFirewallConfig = new Oci.DataSafe.Inputs.DatabaseSecurityConfigManagementSqlFirewallConfigArgs
        {
            ExcludeJob = databaseSecurityConfigManagementSqlFirewallConfigExcludeJob,
            Status = databaseSecurityConfigManagementSqlFirewallConfigStatus,
            ViolationLogAutoPurge = databaseSecurityConfigManagementSqlFirewallConfigViolationLogAutoPurge,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DatabaseSecurityConfigManagement;
import com.pulumi.oci.DataSafe.DatabaseSecurityConfigManagementArgs;
import com.pulumi.oci.DataSafe.inputs.DatabaseSecurityConfigManagementSqlFirewallConfigArgs;
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 testDatabaseSecurityConfigManagement = new DatabaseSecurityConfigManagement("testDatabaseSecurityConfigManagement", DatabaseSecurityConfigManagementArgs.builder()
            .compartmentId(compartmentId)
            .targetId(testTargetDatabase.id())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(databaseSecurityConfigManagementDescription)
            .displayName(databaseSecurityConfigManagementDisplayName)
            .freeformTags(Map.of("Department", "Finance"))
            .sqlFirewallConfig(DatabaseSecurityConfigManagementSqlFirewallConfigArgs.builder()
                .excludeJob(databaseSecurityConfigManagementSqlFirewallConfigExcludeJob)
                .status(databaseSecurityConfigManagementSqlFirewallConfigStatus)
                .violationLogAutoPurge(databaseSecurityConfigManagementSqlFirewallConfigViolationLogAutoPurge)
                .build())
            .build());
    }
}
resources:
  testDatabaseSecurityConfigManagement:
    type: oci:DataSafe:DatabaseSecurityConfigManagement
    name: test_database_security_config_management
    properties:
      compartmentId: ${compartmentId}
      targetId: ${testTargetDatabase.id}
      definedTags:
        Operations.CostCenter: '42'
      description: ${databaseSecurityConfigManagementDescription}
      displayName: ${databaseSecurityConfigManagementDisplayName}
      freeformTags:
        Department: Finance
      sqlFirewallConfig:
        excludeJob: ${databaseSecurityConfigManagementSqlFirewallConfigExcludeJob}
        status: ${databaseSecurityConfigManagementSqlFirewallConfigStatus}
        violationLogAutoPurge: ${databaseSecurityConfigManagementSqlFirewallConfigViolationLogAutoPurge}
Create DatabaseSecurityConfigManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseSecurityConfigManagement(name: string, args?: DatabaseSecurityConfigManagementArgs, opts?: CustomResourceOptions);@overload
def DatabaseSecurityConfigManagement(resource_name: str,
                                     args: Optional[DatabaseSecurityConfigManagementArgs] = None,
                                     opts: Optional[ResourceOptions] = None)
@overload
def DatabaseSecurityConfigManagement(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     compartment_id: Optional[str] = None,
                                     defined_tags: Optional[Mapping[str, str]] = None,
                                     description: Optional[str] = None,
                                     display_name: Optional[str] = None,
                                     freeform_tags: Optional[Mapping[str, str]] = None,
                                     refresh_trigger: Optional[bool] = None,
                                     sql_firewall_config: Optional[DatabaseSecurityConfigManagementSqlFirewallConfigArgs] = None,
                                     target_id: Optional[str] = None)func NewDatabaseSecurityConfigManagement(ctx *Context, name string, args *DatabaseSecurityConfigManagementArgs, opts ...ResourceOption) (*DatabaseSecurityConfigManagement, error)public DatabaseSecurityConfigManagement(string name, DatabaseSecurityConfigManagementArgs? args = null, CustomResourceOptions? opts = null)
public DatabaseSecurityConfigManagement(String name, DatabaseSecurityConfigManagementArgs args)
public DatabaseSecurityConfigManagement(String name, DatabaseSecurityConfigManagementArgs args, CustomResourceOptions options)
type: oci:DataSafe:DatabaseSecurityConfigManagement
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 DatabaseSecurityConfigManagementArgs
- 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 DatabaseSecurityConfigManagementArgs
- 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 DatabaseSecurityConfigManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseSecurityConfigManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseSecurityConfigManagementArgs
- 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 databaseSecurityConfigManagementResource = new Oci.DataSafe.DatabaseSecurityConfigManagement("databaseSecurityConfigManagementResource", new()
{
    CompartmentId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    RefreshTrigger = false,
    SqlFirewallConfig = new Oci.DataSafe.Inputs.DatabaseSecurityConfigManagementSqlFirewallConfigArgs
    {
        ExcludeJob = "string",
        Status = "string",
        TimeStatusUpdated = "string",
        ViolationLogAutoPurge = "string",
    },
    TargetId = "string",
});
example, err := datasafe.NewDatabaseSecurityConfigManagement(ctx, "databaseSecurityConfigManagementResource", &datasafe.DatabaseSecurityConfigManagementArgs{
	CompartmentId: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	RefreshTrigger: pulumi.Bool(false),
	SqlFirewallConfig: &datasafe.DatabaseSecurityConfigManagementSqlFirewallConfigArgs{
		ExcludeJob:            pulumi.String("string"),
		Status:                pulumi.String("string"),
		TimeStatusUpdated:     pulumi.String("string"),
		ViolationLogAutoPurge: pulumi.String("string"),
	},
	TargetId: pulumi.String("string"),
})
var databaseSecurityConfigManagementResource = new DatabaseSecurityConfigManagement("databaseSecurityConfigManagementResource", DatabaseSecurityConfigManagementArgs.builder()
    .compartmentId("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .refreshTrigger(false)
    .sqlFirewallConfig(DatabaseSecurityConfigManagementSqlFirewallConfigArgs.builder()
        .excludeJob("string")
        .status("string")
        .timeStatusUpdated("string")
        .violationLogAutoPurge("string")
        .build())
    .targetId("string")
    .build());
database_security_config_management_resource = oci.data_safe.DatabaseSecurityConfigManagement("databaseSecurityConfigManagementResource",
    compartment_id="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    refresh_trigger=False,
    sql_firewall_config={
        "exclude_job": "string",
        "status": "string",
        "time_status_updated": "string",
        "violation_log_auto_purge": "string",
    },
    target_id="string")
const databaseSecurityConfigManagementResource = new oci.datasafe.DatabaseSecurityConfigManagement("databaseSecurityConfigManagementResource", {
    compartmentId: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    refreshTrigger: false,
    sqlFirewallConfig: {
        excludeJob: "string",
        status: "string",
        timeStatusUpdated: "string",
        violationLogAutoPurge: "string",
    },
    targetId: "string",
});
type: oci:DataSafe:DatabaseSecurityConfigManagement
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    displayName: string
    freeformTags:
        string: string
    refreshTrigger: false
    sqlFirewallConfig:
        excludeJob: string
        status: string
        timeStatusUpdated: string
        violationLogAutoPurge: string
    targetId: string
DatabaseSecurityConfigManagement 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 DatabaseSecurityConfigManagement resource accepts the following input properties:
- CompartmentId string
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- DisplayName string
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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"}
- RefreshTrigger bool
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- SqlFirewall DatabaseConfig Security Config Management Sql Firewall Config 
- (Updatable) Details to update the SQL firewall config.
- TargetId string
- Unique target identifier.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- DisplayName string
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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"}
- RefreshTrigger bool
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- SqlFirewall DatabaseConfig Security Config Management Sql Firewall Config Args 
- (Updatable) Details to update the SQL firewall config.
- TargetId string
- Unique target identifier.
- compartmentId String
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- displayName String
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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"}
- refreshTrigger Boolean
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sqlFirewall DatabaseConfig Security Config Management Sql Firewall Config 
- (Updatable) Details to update the SQL firewall config.
- targetId String
- Unique target identifier.
- compartmentId string
- (Updatable) The OCID of the compartment containing the database security config.
- {[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 security policy.
- displayName string
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- {[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"}
- refreshTrigger boolean
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sqlFirewall DatabaseConfig Security Config Management Sql Firewall Config 
- (Updatable) Details to update the SQL firewall config.
- targetId string
- Unique target identifier.
- compartment_id str
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- display_name str
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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"}
- refresh_trigger bool
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sql_firewall_ Databaseconfig Security Config Management Sql Firewall Config Args 
- (Updatable) Details to update the SQL firewall config.
- target_id str
- Unique target identifier.
- compartmentId String
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- displayName String
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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"}
- refreshTrigger Boolean
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sqlFirewall Property MapConfig 
- (Updatable) Details to update the SQL firewall config.
- targetId String
- Unique target identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseSecurityConfigManagement 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 database security config in Data Safe.
- State string
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- TimeLast stringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the database security configuration 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 database security config in Data Safe.
- State string
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- TimeLast stringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the database security configuration 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 database security config in Data Safe.
- state String
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- timeLast StringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- timeUpdated String
- The date and time the database security configuration 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 database security config in Data Safe.
- state string
- The current state of the database security config.
- {[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 database security config was created, in the format defined by RFC3339.
- timeLast stringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- timeUpdated string
- The date and time the database security configuration 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 database security config in Data Safe.
- state str
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- time_last_ strrefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- time_updated str
- The date and time the database security configuration 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 database security config in Data Safe.
- state String
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- timeLast StringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- timeUpdated String
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
Look up Existing DatabaseSecurityConfigManagement Resource
Get an existing DatabaseSecurityConfigManagement 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?: DatabaseSecurityConfigManagementState, opts?: CustomResourceOptions): DatabaseSecurityConfigManagement@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        lifecycle_details: Optional[str] = None,
        refresh_trigger: Optional[bool] = None,
        sql_firewall_config: Optional[DatabaseSecurityConfigManagementSqlFirewallConfigArgs] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        target_id: Optional[str] = None,
        time_created: Optional[str] = None,
        time_last_refreshed: Optional[str] = None,
        time_updated: Optional[str] = None) -> DatabaseSecurityConfigManagementfunc GetDatabaseSecurityConfigManagement(ctx *Context, name string, id IDInput, state *DatabaseSecurityConfigManagementState, opts ...ResourceOption) (*DatabaseSecurityConfigManagement, error)public static DatabaseSecurityConfigManagement Get(string name, Input<string> id, DatabaseSecurityConfigManagementState? state, CustomResourceOptions? opts = null)public static DatabaseSecurityConfigManagement get(String name, Output<String> id, DatabaseSecurityConfigManagementState state, CustomResourceOptions options)resources:  _:    type: oci:DataSafe:DatabaseSecurityConfigManagement    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- DisplayName string
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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 database security config in Data Safe.
- RefreshTrigger bool
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- SqlFirewall DatabaseConfig Security Config Management Sql Firewall Config 
- (Updatable) Details to update the SQL firewall config.
- State string
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- TimeLast stringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- DisplayName string
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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 database security config in Data Safe.
- RefreshTrigger bool
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- SqlFirewall DatabaseConfig Security Config Management Sql Firewall Config Args 
- (Updatable) Details to update the SQL firewall config.
- State string
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- TimeLast stringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
- compartmentId String
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- displayName String
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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 database security config in Data Safe.
- refreshTrigger Boolean
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sqlFirewall DatabaseConfig Security Config Management Sql Firewall Config 
- (Updatable) Details to update the SQL firewall config.
- state String
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- timeLast StringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- timeUpdated String
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
- compartmentId string
- (Updatable) The OCID of the compartment containing the database security config.
- {[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 security policy.
- displayName string
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- {[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 database security config in Data Safe.
- refreshTrigger boolean
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sqlFirewall DatabaseConfig Security Config Management Sql Firewall Config 
- (Updatable) Details to update the SQL firewall config.
- state string
- The current state of the database security config.
- {[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 database security config was created, in the format defined by RFC3339.
- timeLast stringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- timeUpdated string
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
- compartment_id str
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- display_name str
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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 database security config in Data Safe.
- refresh_trigger bool
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sql_firewall_ Databaseconfig Security Config Management Sql Firewall Config Args 
- (Updatable) Details to update the SQL firewall config.
- state str
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- time_last_ strrefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- time_updated str
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
- compartmentId String
- (Updatable) The OCID of the compartment containing the database security config.
- 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 security policy.
- displayName String
- (Updatable) The display name of the database security config. The name does not have to be unique, and it is changeable.
- 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 database security config in Data Safe.
- refreshTrigger Boolean
- (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sqlFirewall Property MapConfig 
- (Updatable) Details to update the SQL firewall config.
- state String
- The current state of the database security config.
- 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 database security config was created, in the format defined by RFC3339.
- timeLast StringRefreshed 
- The last date and time the database security config was refreshed, in the format defined by RFC3339.
- timeUpdated String
- The date and time the database security configuration was last updated, in the format defined by RFC3339.
Supporting Types
DatabaseSecurityConfigManagementSqlFirewallConfig, DatabaseSecurityConfigManagementSqlFirewallConfigArgs              
- ExcludeJob string
- (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
- Status string
- (Updatable) Specifies whether the firewall is enabled or disabled on the target database.
- TimeStatus stringUpdated 
- The most recent time when the firewall status is updated, in the format defined by RFC3339.
- ViolationLog stringAuto Purge 
- (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
- ExcludeJob string
- (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
- Status string
- (Updatable) Specifies whether the firewall is enabled or disabled on the target database.
- TimeStatus stringUpdated 
- The most recent time when the firewall status is updated, in the format defined by RFC3339.
- ViolationLog stringAuto Purge 
- (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
- excludeJob String
- (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
- status String
- (Updatable) Specifies whether the firewall is enabled or disabled on the target database.
- timeStatus StringUpdated 
- The most recent time when the firewall status is updated, in the format defined by RFC3339.
- violationLog StringAuto Purge 
- (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
- excludeJob string
- (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
- status string
- (Updatable) Specifies whether the firewall is enabled or disabled on the target database.
- timeStatus stringUpdated 
- The most recent time when the firewall status is updated, in the format defined by RFC3339.
- violationLog stringAuto Purge 
- (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
- exclude_job str
- (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
- status str
- (Updatable) Specifies whether the firewall is enabled or disabled on the target database.
- time_status_ strupdated 
- The most recent time when the firewall status is updated, in the format defined by RFC3339.
- violation_log_ strauto_ purge 
- (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
- excludeJob String
- (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
- status String
- (Updatable) Specifies whether the firewall is enabled or disabled on the target database.
- timeStatus StringUpdated 
- The most recent time when the firewall status is updated, in the format defined by RFC3339.
- violationLog StringAuto Purge 
- (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
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 ociTerraform Provider.