1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getDatabaseSecurityConfig
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.DataSafe.getDatabaseSecurityConfig

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides details about a specific Database Security Config resource in Oracle Cloud Infrastructure Data Safe service.

Gets a database security configuration by identifier.

Example Usage

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

const testDatabaseSecurityConfig = oci.DataSafe.getDatabaseSecurityConfig({
    databaseSecurityConfigId: testDatabaseSecurityConfigOciDataSafeDatabaseSecurityConfig.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_database_security_config = oci.DataSafe.get_database_security_config(database_security_config_id=test_database_security_config_oci_data_safe_database_security_config["id"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetDatabaseSecurityConfig(ctx, &datasafe.GetDatabaseSecurityConfigArgs{
			DatabaseSecurityConfigId: testDatabaseSecurityConfigOciDataSafeDatabaseSecurityConfig.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDatabaseSecurityConfig = Oci.DataSafe.GetDatabaseSecurityConfig.Invoke(new()
    {
        DatabaseSecurityConfigId = testDatabaseSecurityConfigOciDataSafeDatabaseSecurityConfig.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetDatabaseSecurityConfigArgs;
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) {
        final var testDatabaseSecurityConfig = DataSafeFunctions.getDatabaseSecurityConfig(GetDatabaseSecurityConfigArgs.builder()
            .databaseSecurityConfigId(testDatabaseSecurityConfigOciDataSafeDatabaseSecurityConfig.id())
            .build());

    }
}
Copy
variables:
  testDatabaseSecurityConfig:
    fn::invoke:
      function: oci:DataSafe:getDatabaseSecurityConfig
      arguments:
        databaseSecurityConfigId: ${testDatabaseSecurityConfigOciDataSafeDatabaseSecurityConfig.id}
Copy

Using getDatabaseSecurityConfig

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDatabaseSecurityConfig(args: GetDatabaseSecurityConfigArgs, opts?: InvokeOptions): Promise<GetDatabaseSecurityConfigResult>
function getDatabaseSecurityConfigOutput(args: GetDatabaseSecurityConfigOutputArgs, opts?: InvokeOptions): Output<GetDatabaseSecurityConfigResult>
Copy
def get_database_security_config(database_security_config_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDatabaseSecurityConfigResult
def get_database_security_config_output(database_security_config_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseSecurityConfigResult]
Copy
func GetDatabaseSecurityConfig(ctx *Context, args *GetDatabaseSecurityConfigArgs, opts ...InvokeOption) (*GetDatabaseSecurityConfigResult, error)
func GetDatabaseSecurityConfigOutput(ctx *Context, args *GetDatabaseSecurityConfigOutputArgs, opts ...InvokeOption) GetDatabaseSecurityConfigResultOutput
Copy

> Note: This function is named GetDatabaseSecurityConfig in the Go SDK.

public static class GetDatabaseSecurityConfig 
{
    public static Task<GetDatabaseSecurityConfigResult> InvokeAsync(GetDatabaseSecurityConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseSecurityConfigResult> Invoke(GetDatabaseSecurityConfigInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseSecurityConfigResult> getDatabaseSecurityConfig(GetDatabaseSecurityConfigArgs args, InvokeOptions options)
public static Output<GetDatabaseSecurityConfigResult> getDatabaseSecurityConfig(GetDatabaseSecurityConfigArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getDatabaseSecurityConfig:getDatabaseSecurityConfig
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DatabaseSecurityConfigId This property is required. string
The OCID of the database security configuration resource.
DatabaseSecurityConfigId This property is required. string
The OCID of the database security configuration resource.
databaseSecurityConfigId This property is required. String
The OCID of the database security configuration resource.
databaseSecurityConfigId This property is required. string
The OCID of the database security configuration resource.
database_security_config_id This property is required. str
The OCID of the database security configuration resource.
databaseSecurityConfigId This property is required. String
The OCID of the database security configuration resource.

getDatabaseSecurityConfig Result

The following output properties are available:

CompartmentId string
The OCID of the compartment containing the database security config.
DatabaseSecurityConfigId string
DefinedTags Dictionary<string, string>
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
The description of the database security config.
DisplayName string
The display name of the database security config.
FreeformTags Dictionary<string, string>
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"}
Id string
The OCID of the database security config.
LifecycleDetails string
Details about the current state of the database security config in Data Safe.
RefreshTrigger int
SqlFirewallConfigs List<GetDatabaseSecurityConfigSqlFirewallConfig>
The SQL Firewall related configurations.
State string
The current state of the database security config.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
TargetId string
The target OCID corresponding to the database security config.
TimeCreated string
The time that the database security config was created, in the format defined by RFC3339.
TimeLastRefreshed string
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
The OCID of the compartment containing the database security config.
DatabaseSecurityConfigId string
DefinedTags map[string]string
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
The description of the database security config.
DisplayName string
The display name of the database security config.
FreeformTags map[string]string
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"}
Id string
The OCID of the database security config.
LifecycleDetails string
Details about the current state of the database security config in Data Safe.
RefreshTrigger int
SqlFirewallConfigs []GetDatabaseSecurityConfigSqlFirewallConfig
The SQL Firewall related configurations.
State string
The current state of the database security config.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
TargetId string
The target OCID corresponding to the database security config.
TimeCreated string
The time that the database security config was created, in the format defined by RFC3339.
TimeLastRefreshed string
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
The OCID of the compartment containing the database security config.
databaseSecurityConfigId String
definedTags Map<String,String>
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
The description of the database security config.
displayName String
The display name of the database security config.
freeformTags Map<String,String>
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"}
id String
The OCID of the database security config.
lifecycleDetails String
Details about the current state of the database security config in Data Safe.
refreshTrigger Integer
sqlFirewallConfigs List<GetDatabaseSecurityConfigSqlFirewallConfig>
The SQL Firewall related configurations.
state String
The current state of the database security config.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
targetId String
The target OCID corresponding to the database security config.
timeCreated String
The time that the database security config was created, in the format defined by RFC3339.
timeLastRefreshed String
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
The OCID of the compartment containing the database security config.
databaseSecurityConfigId string
definedTags {[key: string]: string}
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
The description of the database security config.
displayName string
The display name of the database security config.
freeformTags {[key: string]: string}
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"}
id string
The OCID of the database security config.
lifecycleDetails string
Details about the current state of the database security config in Data Safe.
refreshTrigger number
sqlFirewallConfigs GetDatabaseSecurityConfigSqlFirewallConfig[]
The SQL Firewall related configurations.
state string
The current state of the database security config.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
targetId string
The target OCID corresponding to the database security config.
timeCreated string
The time that the database security config was created, in the format defined by RFC3339.
timeLastRefreshed string
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
The OCID of the compartment containing the database security config.
database_security_config_id str
defined_tags Mapping[str, str]
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
The description of the database security config.
display_name str
The display name of the database security config.
freeform_tags Mapping[str, str]
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"}
id str
The OCID of the database security config.
lifecycle_details str
Details about the current state of the database security config in Data Safe.
refresh_trigger int
sql_firewall_configs Sequence[datasafe.GetDatabaseSecurityConfigSqlFirewallConfig]
The SQL Firewall related configurations.
state str
The current state of the database security config.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
target_id str
The target OCID corresponding to the database security config.
time_created str
The time that the database security config was created, in the format defined by RFC3339.
time_last_refreshed str
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
The OCID of the compartment containing the database security config.
databaseSecurityConfigId String
definedTags Map<String>
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
The description of the database security config.
displayName String
The display name of the database security config.
freeformTags Map<String>
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"}
id String
The OCID of the database security config.
lifecycleDetails String
Details about the current state of the database security config in Data Safe.
refreshTrigger Number
sqlFirewallConfigs List<Property Map>
The SQL Firewall related configurations.
state String
The current state of the database security config.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
targetId String
The target OCID corresponding to the database security config.
timeCreated String
The time that the database security config was created, in the format defined by RFC3339.
timeLastRefreshed String
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

GetDatabaseSecurityConfigSqlFirewallConfig

ExcludeJob This property is required. string
Specifies whether the firewall should include or exclude the database internal job activities.
Status This property is required. string
Specifies if the firewall is enabled or disabled on the target database.
TimeStatusUpdated This property is required. string
The most recent time when the firewall status is updated, in the format defined by RFC3339.
ViolationLogAutoPurge This property is required. string
Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
ExcludeJob This property is required. string
Specifies whether the firewall should include or exclude the database internal job activities.
Status This property is required. string
Specifies if the firewall is enabled or disabled on the target database.
TimeStatusUpdated This property is required. string
The most recent time when the firewall status is updated, in the format defined by RFC3339.
ViolationLogAutoPurge This property is required. string
Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
excludeJob This property is required. String
Specifies whether the firewall should include or exclude the database internal job activities.
status This property is required. String
Specifies if the firewall is enabled or disabled on the target database.
timeStatusUpdated This property is required. String
The most recent time when the firewall status is updated, in the format defined by RFC3339.
violationLogAutoPurge This property is required. String
Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
excludeJob This property is required. string
Specifies whether the firewall should include or exclude the database internal job activities.
status This property is required. string
Specifies if the firewall is enabled or disabled on the target database.
timeStatusUpdated This property is required. string
The most recent time when the firewall status is updated, in the format defined by RFC3339.
violationLogAutoPurge This property is required. string
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 This property is required. str
Specifies whether the firewall should include or exclude the database internal job activities.
status This property is required. str
Specifies if the firewall is enabled or disabled on the target database.
time_status_updated This property is required. str
The most recent time when the firewall status is updated, in the format defined by RFC3339.
violation_log_auto_purge This property is required. str
Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.
excludeJob This property is required. String
Specifies whether the firewall should include or exclude the database internal job activities.
status This property is required. String
Specifies if the firewall is enabled or disabled on the target database.
timeStatusUpdated This property is required. String
The most recent time when the firewall status is updated, in the format defined by RFC3339.
violationLogAutoPurge This property is required. String
Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting on Data Safe.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi