1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSecurityPolicyConfig
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataSafe.getSecurityPolicyConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

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

    Gets a security policy configuration by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityPolicyConfig = oci.DataSafe.getSecurityPolicyConfig({
        securityPolicyConfigId: testSecurityPolicyConfigOciDataSafeSecurityPolicyConfig.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_policy_config = oci.DataSafe.get_security_policy_config(security_policy_config_id=test_security_policy_config_oci_data_safe_security_policy_config["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.GetSecurityPolicyConfig(ctx, &datasafe.GetSecurityPolicyConfigArgs{
    			SecurityPolicyConfigId: testSecurityPolicyConfigOciDataSafeSecurityPolicyConfig.Id,
    		}, nil)
    		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 testSecurityPolicyConfig = Oci.DataSafe.GetSecurityPolicyConfig.Invoke(new()
        {
            SecurityPolicyConfigId = testSecurityPolicyConfigOciDataSafeSecurityPolicyConfig.Id,
        });
    
    });
    
    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.GetSecurityPolicyConfigArgs;
    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 testSecurityPolicyConfig = DataSafeFunctions.getSecurityPolicyConfig(GetSecurityPolicyConfigArgs.builder()
                .securityPolicyConfigId(testSecurityPolicyConfigOciDataSafeSecurityPolicyConfig.id())
                .build());
    
        }
    }
    
    variables:
      testSecurityPolicyConfig:
        fn::invoke:
          function: oci:DataSafe:getSecurityPolicyConfig
          arguments:
            securityPolicyConfigId: ${testSecurityPolicyConfigOciDataSafeSecurityPolicyConfig.id}
    

    Using getSecurityPolicyConfig

    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 getSecurityPolicyConfig(args: GetSecurityPolicyConfigArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyConfigResult>
    function getSecurityPolicyConfigOutput(args: GetSecurityPolicyConfigOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyConfigResult>
    def get_security_policy_config(security_policy_config_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyConfigResult
    def get_security_policy_config_output(security_policy_config_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyConfigResult]
    func LookupSecurityPolicyConfig(ctx *Context, args *LookupSecurityPolicyConfigArgs, opts ...InvokeOption) (*LookupSecurityPolicyConfigResult, error)
    func LookupSecurityPolicyConfigOutput(ctx *Context, args *LookupSecurityPolicyConfigOutputArgs, opts ...InvokeOption) LookupSecurityPolicyConfigResultOutput

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

    public static class GetSecurityPolicyConfig 
    {
        public static Task<GetSecurityPolicyConfigResult> InvokeAsync(GetSecurityPolicyConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityPolicyConfigResult> Invoke(GetSecurityPolicyConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityPolicyConfigResult> getSecurityPolicyConfig(GetSecurityPolicyConfigArgs args, InvokeOptions options)
    public static Output<GetSecurityPolicyConfigResult> getSecurityPolicyConfig(GetSecurityPolicyConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataSafe/getSecurityPolicyConfig:getSecurityPolicyConfig
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecurityPolicyConfigId string
    The OCID of the security policy configuration resource.
    SecurityPolicyConfigId string
    The OCID of the security policy configuration resource.
    securityPolicyConfigId String
    The OCID of the security policy configuration resource.
    securityPolicyConfigId string
    The OCID of the security policy configuration resource.
    security_policy_config_id str
    The OCID of the security policy configuration resource.
    securityPolicyConfigId String
    The OCID of the security policy configuration resource.

    getSecurityPolicyConfig Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the security policy configuration.
    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 security policy configuration.
    DisplayName string
    The display name of the security policy configuration.
    FirewallConfigs List<GetSecurityPolicyConfigFirewallConfig>
    The SQL Firewall related configurations.
    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 security policy configuration.
    LifecycleDetails string
    Details about the current state of the security policy configuration.
    SecurityPolicyConfigId string
    SecurityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    State string
    The current state of the security policy configuration.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    UnifiedAuditPolicyConfigs List<GetSecurityPolicyConfigUnifiedAuditPolicyConfig>
    The unified audit policy related configurations.
    CompartmentId string
    The OCID of the compartment containing the security policy configuration.
    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 security policy configuration.
    DisplayName string
    The display name of the security policy configuration.
    FirewallConfigs []GetSecurityPolicyConfigFirewallConfig
    The SQL Firewall related configurations.
    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 security policy configuration.
    LifecycleDetails string
    Details about the current state of the security policy configuration.
    SecurityPolicyConfigId string
    SecurityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    State string
    The current state of the security policy configuration.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    UnifiedAuditPolicyConfigs []GetSecurityPolicyConfigUnifiedAuditPolicyConfig
    The unified audit policy related configurations.
    compartmentId String
    The OCID of the compartment containing the security policy configuration.
    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 security policy configuration.
    displayName String
    The display name of the security policy configuration.
    firewallConfigs List<GetSecurityPolicyConfigFirewallConfig>
    The SQL Firewall related configurations.
    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 security policy configuration.
    lifecycleDetails String
    Details about the current state of the security policy configuration.
    securityPolicyConfigId String
    securityPolicyId String
    The OCID of the security policy corresponding to the security policy configuration.
    state String
    The current state of the security policy configuration.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unifiedAuditPolicyConfigs List<GetSecurityPolicyConfigUnifiedAuditPolicyConfig>
    The unified audit policy related configurations.
    compartmentId string
    The OCID of the compartment containing the security policy configuration.
    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 security policy configuration.
    displayName string
    The display name of the security policy configuration.
    firewallConfigs GetSecurityPolicyConfigFirewallConfig[]
    The SQL Firewall related configurations.
    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 security policy configuration.
    lifecycleDetails string
    Details about the current state of the security policy configuration.
    securityPolicyConfigId string
    securityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    state string
    The current state of the security policy configuration.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unifiedAuditPolicyConfigs GetSecurityPolicyConfigUnifiedAuditPolicyConfig[]
    The unified audit policy related configurations.
    compartment_id str
    The OCID of the compartment containing the security policy configuration.
    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 security policy configuration.
    display_name str
    The display name of the security policy configuration.
    firewall_configs Sequence[GetSecurityPolicyConfigFirewallConfig]
    The SQL Firewall related configurations.
    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 security policy configuration.
    lifecycle_details str
    Details about the current state of the security policy configuration.
    security_policy_config_id str
    security_policy_id str
    The OCID of the security policy corresponding to the security policy configuration.
    state str
    The current state of the security policy configuration.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the security policy configuration was created, in the format defined by RFC3339.
    time_updated str
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unified_audit_policy_configs Sequence[GetSecurityPolicyConfigUnifiedAuditPolicyConfig]
    The unified audit policy related configurations.
    compartmentId String
    The OCID of the compartment containing the security policy configuration.
    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 security policy configuration.
    displayName String
    The display name of the security policy configuration.
    firewallConfigs List<Property Map>
    The SQL Firewall related configurations.
    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 security policy configuration.
    lifecycleDetails String
    Details about the current state of the security policy configuration.
    securityPolicyConfigId String
    securityPolicyId String
    The OCID of the security policy corresponding to the security policy configuration.
    state String
    The current state of the security policy configuration.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unifiedAuditPolicyConfigs List<Property Map>
    The unified audit policy related configurations.

    Supporting Types

    GetSecurityPolicyConfigFirewallConfig

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

    GetSecurityPolicyConfigUnifiedAuditPolicyConfig

    ExcludeDatasafeUser string
    Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.
    ExcludeDatasafeUser string
    Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.
    excludeDatasafeUser String
    Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.
    excludeDatasafeUser string
    Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.
    exclude_datasafe_user str
    Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.
    excludeDatasafeUser String
    Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi