Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getDataSafeConfiguration
Explore with Pulumi AI
This data source provides details about a specific Data Safe Configuration resource in Oracle Cloud Infrastructure Data Safe service.
Gets the details of the Data Safe configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataSafeConfiguration = oci.DataSafe.getDataSafeConfiguration({
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_data_safe_configuration = oci.DataSafe.get_data_safe_configuration(compartment_id=compartment_id)
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.GetDataSafeConfiguration(ctx, &datasafe.GetDataSafeConfigurationArgs{
			CompartmentId: compartmentId,
		}, 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 testDataSafeConfiguration = Oci.DataSafe.GetDataSafeConfiguration.Invoke(new()
    {
        CompartmentId = compartmentId,
    });
});
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.GetDataSafeConfigurationArgs;
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 testDataSafeConfiguration = DataSafeFunctions.getDataSafeConfiguration(GetDataSafeConfigurationArgs.builder()
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testDataSafeConfiguration:
    fn::invoke:
      function: oci:DataSafe:getDataSafeConfiguration
      arguments:
        compartmentId: ${compartmentId}
Using getDataSafeConfiguration
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 getDataSafeConfiguration(args: GetDataSafeConfigurationArgs, opts?: InvokeOptions): Promise<GetDataSafeConfigurationResult>
function getDataSafeConfigurationOutput(args: GetDataSafeConfigurationOutputArgs, opts?: InvokeOptions): Output<GetDataSafeConfigurationResult>def get_data_safe_configuration(compartment_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetDataSafeConfigurationResult
def get_data_safe_configuration_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetDataSafeConfigurationResult]func LookupDataSafeConfiguration(ctx *Context, args *LookupDataSafeConfigurationArgs, opts ...InvokeOption) (*LookupDataSafeConfigurationResult, error)
func LookupDataSafeConfigurationOutput(ctx *Context, args *LookupDataSafeConfigurationOutputArgs, opts ...InvokeOption) LookupDataSafeConfigurationResultOutput> Note: This function is named LookupDataSafeConfiguration in the Go SDK.
public static class GetDataSafeConfiguration 
{
    public static Task<GetDataSafeConfigurationResult> InvokeAsync(GetDataSafeConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetDataSafeConfigurationResult> Invoke(GetDataSafeConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataSafeConfigurationResult> getDataSafeConfiguration(GetDataSafeConfigurationArgs args, InvokeOptions options)
public static Output<GetDataSafeConfigurationResult> getDataSafeConfiguration(GetDataSafeConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getDataSafeConfiguration:getDataSafeConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- CompartmentId string
- A filter to return only resources that match the specified compartment OCID.
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
- compartmentId string
- A filter to return only resources that match the specified compartment OCID.
- compartment_id str
- A filter to return only resources that match the specified compartment OCID.
- compartmentId String
- A filter to return only resources that match the specified compartment OCID.
getDataSafeConfiguration Result
The following output properties are available:
- CompartmentId string
- The OCID of the tenancy used to enable Data Safe.
- DataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- 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"}
- 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"}
- GlobalSettings List<GetData Safe Configuration Global Setting> 
- Details of the tenancy level global settings in Data Safe.
- Id string
- IsEnabled bool
- Indicates if Data Safe is enabled.
- State string
- The current state of Data Safe.
- TimeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- Url string
- The URL of the Data Safe service.
- CompartmentId string
- The OCID of the tenancy used to enable Data Safe.
- DataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- 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"}
- 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"}
- GlobalSettings []GetData Safe Configuration Global Setting 
- Details of the tenancy level global settings in Data Safe.
- Id string
- IsEnabled bool
- Indicates if Data Safe is enabled.
- State string
- The current state of Data Safe.
- TimeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- Url string
- The URL of the Data Safe service.
- compartmentId String
- The OCID of the tenancy used to enable Data Safe.
- dataSafe StringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- 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"}
- 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"}
- globalSettings List<GetConfiguration Global Setting> 
- Details of the tenancy level global settings in Data Safe.
- id String
- isEnabled Boolean
- Indicates if Data Safe is enabled.
- state String
- The current state of Data Safe.
- timeEnabled String
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url String
- The URL of the Data Safe service.
- compartmentId string
- The OCID of the tenancy used to enable Data Safe.
- dataSafe stringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- {[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"}
- {[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"}
- globalSettings GetData Safe Configuration Global Setting[] 
- Details of the tenancy level global settings in Data Safe.
- id string
- isEnabled boolean
- Indicates if Data Safe is enabled.
- state string
- The current state of Data Safe.
- timeEnabled string
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url string
- The URL of the Data Safe service.
- compartment_id str
- The OCID of the tenancy used to enable Data Safe.
- data_safe_ strnat_ gateway_ ip_ address 
- The Oracle Data Safe's NAT Gateway IP Address.
- 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"}
- 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"}
- global_settings Sequence[GetData Safe Configuration Global Setting] 
- Details of the tenancy level global settings in Data Safe.
- id str
- is_enabled bool
- Indicates if Data Safe is enabled.
- state str
- The current state of Data Safe.
- time_enabled str
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url str
- The URL of the Data Safe service.
- compartmentId String
- The OCID of the tenancy used to enable Data Safe.
- dataSafe StringNat Gateway Ip Address 
- The Oracle Data Safe's NAT Gateway IP Address.
- 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"}
- 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"}
- globalSettings List<Property Map>
- Details of the tenancy level global settings in Data Safe.
- id String
- isEnabled Boolean
- Indicates if Data Safe is enabled.
- state String
- The current state of Data Safe.
- timeEnabled String
- The date and time Data Safe was enabled, in the format defined by RFC3339.
- url String
- The URL of the Data Safe service.
Supporting Types
GetDataSafeConfigurationGlobalSetting     
- IsPaid boolUsage 
- The paid usage option chosen by the customer admin.
- OfflineRetention intPeriod 
- The offline retention period in months.
- OnlineRetention intPeriod 
- The online retention period in months.
- IsPaid boolUsage 
- The paid usage option chosen by the customer admin.
- OfflineRetention intPeriod 
- The offline retention period in months.
- OnlineRetention intPeriod 
- The online retention period in months.
- isPaid BooleanUsage 
- The paid usage option chosen by the customer admin.
- offlineRetention IntegerPeriod 
- The offline retention period in months.
- onlineRetention IntegerPeriod 
- The online retention period in months.
- isPaid booleanUsage 
- The paid usage option chosen by the customer admin.
- offlineRetention numberPeriod 
- The offline retention period in months.
- onlineRetention numberPeriod 
- The online retention period in months.
- is_paid_ boolusage 
- The paid usage option chosen by the customer admin.
- offline_retention_ intperiod 
- The offline retention period in months.
- online_retention_ intperiod 
- The online retention period in months.
- isPaid BooleanUsage 
- The paid usage option chosen by the customer admin.
- offlineRetention NumberPeriod 
- The offline retention period in months.
- onlineRetention NumberPeriod 
- The online retention period in months.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.