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

oci.Redis.getOciCacheDefaultConfigSets

Explore with Pulumi AI

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

    This data source provides the list of Oci Cache Default Config Sets in Oracle Cloud Infrastructure Redis service.

    Lists the Oracle Cloud Infrastructure Cache Default Config Sets in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOciCacheDefaultConfigSets = oci.Redis.getOciCacheDefaultConfigSets({
        compartmentId: compartmentId,
        displayName: ociCacheDefaultConfigSetDisplayName,
        id: ociCacheDefaultConfigSetId,
        softwareVersion: ociCacheDefaultConfigSetSoftwareVersion,
        state: ociCacheDefaultConfigSetState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_oci_cache_default_config_sets = oci.Redis.get_oci_cache_default_config_sets(compartment_id=compartment_id,
        display_name=oci_cache_default_config_set_display_name,
        id=oci_cache_default_config_set_id,
        software_version=oci_cache_default_config_set_software_version,
        state=oci_cache_default_config_set_state)
    
    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.GetOciCacheDefaultConfigSets(ctx, &redis.GetOciCacheDefaultConfigSetsArgs{
    			CompartmentId:   compartmentId,
    			DisplayName:     pulumi.StringRef(ociCacheDefaultConfigSetDisplayName),
    			Id:              pulumi.StringRef(ociCacheDefaultConfigSetId),
    			SoftwareVersion: pulumi.StringRef(ociCacheDefaultConfigSetSoftwareVersion),
    			State:           pulumi.StringRef(ociCacheDefaultConfigSetState),
    		}, 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 testOciCacheDefaultConfigSets = Oci.Redis.GetOciCacheDefaultConfigSets.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = ociCacheDefaultConfigSetDisplayName,
            Id = ociCacheDefaultConfigSetId,
            SoftwareVersion = ociCacheDefaultConfigSetSoftwareVersion,
            State = ociCacheDefaultConfigSetState,
        });
    
    });
    
    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.GetOciCacheDefaultConfigSetsArgs;
    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 testOciCacheDefaultConfigSets = RedisFunctions.getOciCacheDefaultConfigSets(GetOciCacheDefaultConfigSetsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(ociCacheDefaultConfigSetDisplayName)
                .id(ociCacheDefaultConfigSetId)
                .softwareVersion(ociCacheDefaultConfigSetSoftwareVersion)
                .state(ociCacheDefaultConfigSetState)
                .build());
    
        }
    }
    
    variables:
      testOciCacheDefaultConfigSets:
        fn::invoke:
          function: oci:Redis:getOciCacheDefaultConfigSets
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${ociCacheDefaultConfigSetDisplayName}
            id: ${ociCacheDefaultConfigSetId}
            softwareVersion: ${ociCacheDefaultConfigSetSoftwareVersion}
            state: ${ociCacheDefaultConfigSetState}
    

    Using getOciCacheDefaultConfigSets

    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 getOciCacheDefaultConfigSets(args: GetOciCacheDefaultConfigSetsArgs, opts?: InvokeOptions): Promise<GetOciCacheDefaultConfigSetsResult>
    function getOciCacheDefaultConfigSetsOutput(args: GetOciCacheDefaultConfigSetsOutputArgs, opts?: InvokeOptions): Output<GetOciCacheDefaultConfigSetsResult>
    def get_oci_cache_default_config_sets(compartment_id: Optional[str] = None,
                                          display_name: Optional[str] = None,
                                          filters: Optional[Sequence[GetOciCacheDefaultConfigSetsFilter]] = None,
                                          id: Optional[str] = None,
                                          software_version: Optional[str] = None,
                                          state: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetOciCacheDefaultConfigSetsResult
    def get_oci_cache_default_config_sets_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                          display_name: Optional[pulumi.Input[str]] = None,
                                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetOciCacheDefaultConfigSetsFilterArgs]]]] = None,
                                          id: Optional[pulumi.Input[str]] = None,
                                          software_version: Optional[pulumi.Input[str]] = None,
                                          state: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetOciCacheDefaultConfigSetsResult]
    func GetOciCacheDefaultConfigSets(ctx *Context, args *GetOciCacheDefaultConfigSetsArgs, opts ...InvokeOption) (*GetOciCacheDefaultConfigSetsResult, error)
    func GetOciCacheDefaultConfigSetsOutput(ctx *Context, args *GetOciCacheDefaultConfigSetsOutputArgs, opts ...InvokeOption) GetOciCacheDefaultConfigSetsResultOutput

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

    public static class GetOciCacheDefaultConfigSets 
    {
        public static Task<GetOciCacheDefaultConfigSetsResult> InvokeAsync(GetOciCacheDefaultConfigSetsArgs args, InvokeOptions? opts = null)
        public static Output<GetOciCacheDefaultConfigSetsResult> Invoke(GetOciCacheDefaultConfigSetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOciCacheDefaultConfigSetsResult> getOciCacheDefaultConfigSets(GetOciCacheDefaultConfigSetsArgs args, InvokeOptions options)
    public static Output<GetOciCacheDefaultConfigSetsResult> getOciCacheDefaultConfigSets(GetOciCacheDefaultConfigSetsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Redis/getOciCacheDefaultConfigSets:getOciCacheDefaultConfigSets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The unique identifier for the compartment.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetOciCacheDefaultConfigSetsFilter>
    Id string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    SoftwareVersion string
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    State string
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    CompartmentId string
    The unique identifier for the compartment.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetOciCacheDefaultConfigSetsFilter
    Id string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    SoftwareVersion string
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    State string
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    compartmentId String
    The unique identifier for the compartment.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetOciCacheDefaultConfigSetsFilter>
    id String
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    softwareVersion String
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state String
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    compartmentId string
    The unique identifier for the compartment.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetOciCacheDefaultConfigSetsFilter[]
    id string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    softwareVersion string
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state string
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    compartment_id str
    The unique identifier for the compartment.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[GetOciCacheDefaultConfigSetsFilter]
    id str
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    software_version str
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state str
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    compartmentId String
    The unique identifier for the compartment.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    id String
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    softwareVersion String
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state String
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.

    getOciCacheDefaultConfigSets Result

    The following output properties are available:

    CompartmentId string
    OciCacheDefaultConfigSetCollections List<GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollection>
    The list of oci_cache_default_config_set_collection.
    DisplayName string
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    Filters List<GetOciCacheDefaultConfigSetsFilter>
    Id string
    The OCID of the Oracle Cloud Infrastructure Cache Default Config Set.
    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.
    CompartmentId string
    OciCacheDefaultConfigSetCollections []GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollection
    The list of oci_cache_default_config_set_collection.
    DisplayName string
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    Filters []GetOciCacheDefaultConfigSetsFilter
    Id string
    The OCID of the Oracle Cloud Infrastructure Cache Default Config Set.
    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.
    compartmentId String
    ociCacheDefaultConfigSetCollections List<GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollection>
    The list of oci_cache_default_config_set_collection.
    displayName String
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    filters List<GetOciCacheDefaultConfigSetsFilter>
    id String
    The OCID of the Oracle Cloud Infrastructure Cache Default Config Set.
    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.
    compartmentId string
    ociCacheDefaultConfigSetCollections GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollection[]
    The list of oci_cache_default_config_set_collection.
    displayName string
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    filters GetOciCacheDefaultConfigSetsFilter[]
    id string
    The OCID of the Oracle Cloud Infrastructure Cache Default Config Set.
    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.
    compartment_id str
    oci_cache_default_config_set_collections Sequence[GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollection]
    The list of oci_cache_default_config_set_collection.
    display_name str
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    filters Sequence[GetOciCacheDefaultConfigSetsFilter]
    id str
    The OCID of the Oracle Cloud Infrastructure Cache Default Config Set.
    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.
    compartmentId String
    ociCacheDefaultConfigSetCollections List<Property Map>
    The list of oci_cache_default_config_set_collection.
    displayName String
    A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set.
    filters List<Property Map>
    id String
    The OCID of the Oracle Cloud Infrastructure Cache Default Config Set.
    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.

    Supporting Types

    GetOciCacheDefaultConfigSetsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollection

    items List<Property Map>
    List of DefaultConfigurationInfo objects.

    GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItem

    DefaultConfigurationDetails List<GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetail>
    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 filter to return only resources that match the entire display name given.
    Id string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    SoftwareVersion string
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    State string
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    TimeCreated string
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    DefaultConfigurationDetails []GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetail
    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 filter to return only resources that match the entire display name given.
    Id string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    SoftwareVersion string
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    State string
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    TimeCreated string
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    defaultConfigurationDetails List<GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetail>
    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 filter to return only resources that match the entire display name given.
    id String
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    softwareVersion String
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state String
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    timeCreated String
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    defaultConfigurationDetails GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetail[]
    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 filter to return only resources that match the entire display name given.
    id string
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    softwareVersion string
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state string
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    timeCreated string
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.
    default_configuration_details Sequence[GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetail]
    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 filter to return only resources that match the entire display name given.
    id str
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    software_version str
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state str
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    time_created str
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime 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 filter to return only resources that match the entire display name given.
    id String
    Unique Oracle Cloud Infrastructure Cache Default Config Set identifier.
    softwareVersion String
    A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version.
    state String
    A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.
    timeCreated String
    The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An RFC3339 formatted datetime string.

    GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetail

    items List<Property Map>
    List of DefaultConfigurationInfo objects.

    GetOciCacheDefaultConfigSetsOciCacheDefaultConfigSetCollectionItemDefaultConfigurationDetailItem

    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