1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Redis
  5. getOciCacheDefaultConfigSet
Oracle Cloud Infrastructure v3.8.0 published on Thursday, Sep 18, 2025 by Pulumi

oci.Redis.getOciCacheDefaultConfigSet

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.8.0 published on Thursday, Sep 18, 2025 by Pulumi

    This data source provides details about a specific Oci Cache Default Config Set resource in Oracle Cloud Infrastructure Redis service.

    Retrieves the specified Oracle Cloud Infrastructure Cache Default Config Set.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOciCacheDefaultConfigSet = oci.Redis.getOciCacheDefaultConfigSet({
        compartmentId: compartmentId,
        ociCacheDefaultConfigSetId: testOciCacheDefaultConfigSetOciRedisOciCacheDefaultConfigSet.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_oci_cache_default_config_set = oci.Redis.get_oci_cache_default_config_set(compartment_id=compartment_id,
        oci_cache_default_config_set_id=test_oci_cache_default_config_set_oci_redis_oci_cache_default_config_set["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/redis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := redis.GetOciCacheDefaultConfigSet(ctx, &redis.GetOciCacheDefaultConfigSetArgs{
    			CompartmentId:              compartmentId,
    			OciCacheDefaultConfigSetId: testOciCacheDefaultConfigSetOciRedisOciCacheDefaultConfigSet.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 testOciCacheDefaultConfigSet = Oci.Redis.GetOciCacheDefaultConfigSet.Invoke(new()
        {
            CompartmentId = compartmentId,
            OciCacheDefaultConfigSetId = testOciCacheDefaultConfigSetOciRedisOciCacheDefaultConfigSet.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Redis.RedisFunctions;
    import com.pulumi.oci.Redis.inputs.GetOciCacheDefaultConfigSetArgs;
    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 testOciCacheDefaultConfigSet = RedisFunctions.getOciCacheDefaultConfigSet(GetOciCacheDefaultConfigSetArgs.builder()
                .compartmentId(compartmentId)
                .ociCacheDefaultConfigSetId(testOciCacheDefaultConfigSetOciRedisOciCacheDefaultConfigSet.id())
                .build());
    
        }
    }
    
    variables:
      testOciCacheDefaultConfigSet:
        fn::invoke:
          function: oci:Redis:getOciCacheDefaultConfigSet
          arguments:
            compartmentId: ${compartmentId}
            ociCacheDefaultConfigSetId: ${testOciCacheDefaultConfigSetOciRedisOciCacheDefaultConfigSet.id}
    

    Using getOciCacheDefaultConfigSet

    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 getOciCacheDefaultConfigSet(args: GetOciCacheDefaultConfigSetArgs, opts?: InvokeOptions): Promise<GetOciCacheDefaultConfigSetResult>
    function getOciCacheDefaultConfigSetOutput(args: GetOciCacheDefaultConfigSetOutputArgs, opts?: InvokeOptions): Output<GetOciCacheDefaultConfigSetResult>
    def get_oci_cache_default_config_set(compartment_id: Optional[str] = None,
                                         oci_cache_default_config_set_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetOciCacheDefaultConfigSetResult
    def get_oci_cache_default_config_set_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                         oci_cache_default_config_set_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetOciCacheDefaultConfigSetResult]
    func GetOciCacheDefaultConfigSet(ctx *Context, args *GetOciCacheDefaultConfigSetArgs, opts ...InvokeOption) (*GetOciCacheDefaultConfigSetResult, error)
    func GetOciCacheDefaultConfigSetOutput(ctx *Context, args *GetOciCacheDefaultConfigSetOutputArgs, opts ...InvokeOption) GetOciCacheDefaultConfigSetResultOutput

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

    public static class GetOciCacheDefaultConfigSet 
    {
        public static Task<GetOciCacheDefaultConfigSetResult> InvokeAsync(GetOciCacheDefaultConfigSetArgs args, InvokeOptions? opts = null)
        public static Output<GetOciCacheDefaultConfigSetResult> Invoke(GetOciCacheDefaultConfigSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOciCacheDefaultConfigSetResult> getOciCacheDefaultConfigSet(GetOciCacheDefaultConfigSetArgs args, InvokeOptions options)
    public static Output<GetOciCacheDefaultConfigSetResult> getOciCacheDefaultConfigSet(GetOciCacheDefaultConfigSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Redis/getOciCacheDefaultConfigSet:getOciCacheDefaultConfigSet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The unique identifier for the compartment.
    OciCacheDefaultConfigSetId string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    CompartmentId string
    The unique identifier for the compartment.
    OciCacheDefaultConfigSetId string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    compartmentId String
    The unique identifier for the compartment.
    ociCacheDefaultConfigSetId String
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    compartmentId string
    The unique identifier for the compartment.
    ociCacheDefaultConfigSetId string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    compartment_id str
    The unique identifier for the compartment.
    oci_cache_default_config_set_id str
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    compartmentId String
    The unique identifier for the compartment.
    ociCacheDefaultConfigSetId String
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.

    getOciCacheDefaultConfigSet Result

    The following output properties are available:

    CompartmentId string
    DefaultConfigurationDetails List<GetOciCacheDefaultConfigSetDefaultConfigurationDetail>
    List of Oracle Cloud Infrastructure Cache Default Config Set Values.
    Description string
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    DisplayName string
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    Id string
    The provider-assigned unique ID for this managed resource.
    OciCacheDefaultConfigSetId string
    SoftwareVersion string
    The engine version of the Oracle Cloud Infrastructure Cache Default Config Set.
    State string
    The current state of the Oracle Cloud Infrastructure Cache Default Config Set.
    TimeCreated string
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    CompartmentId string
    DefaultConfigurationDetails []GetOciCacheDefaultConfigSetDefaultConfigurationDetail
    List of Oracle Cloud Infrastructure Cache Default Config Set Values.
    Description string
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    DisplayName string
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    Id string
    The provider-assigned unique ID for this managed resource.
    OciCacheDefaultConfigSetId string
    SoftwareVersion string
    The engine version of the Oracle Cloud Infrastructure Cache Default Config Set.
    State string
    The current state of the Oracle Cloud Infrastructure Cache Default Config Set.
    TimeCreated string
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    compartmentId String
    defaultConfigurationDetails List<GetOciCacheDefaultConfigSetDefaultConfigurationDetail>
    List of Oracle Cloud Infrastructure Cache Default Config Set Values.
    description String
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    displayName String
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    id String
    The provider-assigned unique ID for this managed resource.
    ociCacheDefaultConfigSetId String
    softwareVersion String
    The engine version of the Oracle Cloud Infrastructure Cache Default Config Set.
    state String
    The current state of the Oracle Cloud Infrastructure Cache Default Config Set.
    timeCreated String
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    compartmentId string
    defaultConfigurationDetails GetOciCacheDefaultConfigSetDefaultConfigurationDetail[]
    List of Oracle Cloud Infrastructure Cache Default Config Set Values.
    description string
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    displayName string
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    id string
    The provider-assigned unique ID for this managed resource.
    ociCacheDefaultConfigSetId string
    softwareVersion string
    The engine version of the Oracle Cloud Infrastructure Cache Default Config Set.
    state string
    The current state of the Oracle Cloud Infrastructure Cache Default Config Set.
    timeCreated string
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    compartment_id str
    default_configuration_details Sequence[GetOciCacheDefaultConfigSetDefaultConfigurationDetail]
    List of Oracle Cloud Infrastructure Cache Default Config Set Values.
    description str
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    display_name str
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    id str
    The provider-assigned unique ID for this managed resource.
    oci_cache_default_config_set_id str
    software_version str
    The engine version of the Oracle Cloud Infrastructure Cache Default Config Set.
    state str
    The current state of the Oracle Cloud Infrastructure Cache Default Config Set.
    time_created str
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    compartmentId String
    defaultConfigurationDetails List<Property Map>
    List of Oracle Cloud Infrastructure Cache Default Config Set Values.
    description String
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    displayName String
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    id String
    The provider-assigned unique ID for this managed resource.
    ociCacheDefaultConfigSetId String
    softwareVersion String
    The engine version of the Oracle Cloud Infrastructure Cache Default Config Set.
    state String
    The current state of the Oracle Cloud Infrastructure Cache Default Config Set.
    timeCreated String
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.

    Supporting Types

    GetOciCacheDefaultConfigSetDefaultConfigurationDetail

    items List<Property Map>
    List of DefaultConfigurationInfo objects.

    GetOciCacheDefaultConfigSetDefaultConfigurationDetailItem

    AllowedValues string
    Allowed values for the configuration setting.
    ConfigKey string
    The key of the configuration setting.
    DataType string
    The data type of the configuration setting.
    DefaultConfigValue string
    The default value for the configuration setting.
    Description string
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    IsModifiable bool
    Indicates if the configuration is modifiable.
    AllowedValues string
    Allowed values for the configuration setting.
    ConfigKey string
    The key of the configuration setting.
    DataType string
    The data type of the configuration setting.
    DefaultConfigValue string
    The default value for the configuration setting.
    Description string
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    IsModifiable bool
    Indicates if the configuration is modifiable.
    allowedValues String
    Allowed values for the configuration setting.
    configKey String
    The key of the configuration setting.
    dataType String
    The data type of the configuration setting.
    defaultConfigValue String
    The default value for the configuration setting.
    description String
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    isModifiable Boolean
    Indicates if the configuration is modifiable.
    allowedValues string
    Allowed values for the configuration setting.
    configKey string
    The key of the configuration setting.
    dataType string
    The data type of the configuration setting.
    defaultConfigValue string
    The default value for the configuration setting.
    description string
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    isModifiable boolean
    Indicates if the configuration is modifiable.
    allowed_values str
    Allowed values for the configuration setting.
    config_key str
    The key of the configuration setting.
    data_type str
    The data type of the configuration setting.
    default_config_value str
    The default value for the configuration setting.
    description str
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    is_modifiable bool
    Indicates if the configuration is modifiable.
    allowedValues String
    Allowed values for the configuration setting.
    configKey String
    The key of the configuration setting.
    dataType String
    The data type of the configuration setting.
    defaultConfigValue String
    The default value for the configuration setting.
    description String
    Description of the Oracle Cloud Infrastructure Cache Default Config Set.
    isModifiable Boolean
    Indicates if the configuration is modifiable.

    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.8.0 published on Thursday, Sep 18, 2025 by Pulumi