Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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 GetDataSafeConfiguration(ctx *Context, args *GetDataSafeConfigurationArgs, opts ...InvokeOption) (*GetDataSafeConfigurationResult, error)
func GetDataSafeConfigurationOutput(ctx *Context, args *GetDataSafeConfigurationOutputArgs, opts ...InvokeOption) GetDataSafeConfigurationResultOutput
> Note: This function is named GetDataSafeConfiguration
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataSafe/getDataSafeConfiguration:getDataSafeConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- Compartment
Id string - A filter to return only resources that match the specified compartment OCID.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
- compartment
Id 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.
- compartment
Id String - A filter to return only resources that match the specified compartment OCID.
getDataSafeConfiguration Result
The following output properties are available:
- Compartment
Id string - The OCID of the tenancy used to enable Data Safe.
- Data
Safe 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"}
- Global
Settings List<GetData Safe Configuration Global Setting> - Details of the tenancy level global settings in Data Safe.
- Id string
- Is
Enabled bool - Indicates if Data Safe is enabled.
- State string
- The current state of Data Safe.
- Time
Enabled 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 string - The OCID of the tenancy used to enable Data Safe.
- Data
Safe 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"}
- Global
Settings []GetData Safe Configuration Global Setting - Details of the tenancy level global settings in Data Safe.
- Id string
- Is
Enabled bool - Indicates if Data Safe is enabled.
- State string
- The current state of Data Safe.
- Time
Enabled 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 String - The OCID of the tenancy used to enable Data Safe.
- data
Safe 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"}
- global
Settings List<GetConfiguration Global Setting> - Details of the tenancy level global settings in Data Safe.
- id String
- is
Enabled Boolean - Indicates if Data Safe is enabled.
- state String
- The current state of Data Safe.
- time
Enabled 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 string - The OCID of the tenancy used to enable Data Safe.
- data
Safe 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"}
- global
Settings GetData Safe Configuration Global Setting[] - Details of the tenancy level global settings in Data Safe.
- id string
- is
Enabled boolean - Indicates if Data Safe is enabled.
- state string
- The current state of Data Safe.
- time
Enabled 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[datasafe.Get Data 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.
- compartment
Id String - The OCID of the tenancy used to enable Data Safe.
- data
Safe 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"}
- global
Settings List<Property Map> - Details of the tenancy level global settings in Data Safe.
- id String
- is
Enabled Boolean - Indicates if Data Safe is enabled.
- state String
- The current state of Data Safe.
- time
Enabled 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
- 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.
- 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.
- is
Paid BooleanUsage - The paid usage option chosen by the customer admin.
- offline
Retention IntegerPeriod - The offline retention period in months.
- online
Retention IntegerPeriod - The online retention period in months.
- is
Paid booleanUsage - The paid usage option chosen by the customer admin.
- offline
Retention numberPeriod - The offline retention period in months.
- online
Retention 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.
- is
Paid BooleanUsage - The paid usage option chosen by the customer admin.
- offline
Retention NumberPeriod - The offline retention period in months.
- online
Retention 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
oci
Terraform Provider.