1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Redis
  5. getOciCacheUser
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

oci.Redis.getOciCacheUser

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

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

    Get an existing Oracle Cloud Infrastructure Cache users based on the ID (OCID).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOciCacheUser = oci.Redis.getOciCacheUser({
        ociCacheUserId: testOciCacheUserOciRedisOciCacheUser.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_oci_cache_user = oci.Redis.get_oci_cache_user(oci_cache_user_id=test_oci_cache_user_oci_redis_oci_cache_user["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.GetOciCacheUser(ctx, &redis.GetOciCacheUserArgs{
    			OciCacheUserId: testOciCacheUserOciRedisOciCacheUser.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 testOciCacheUser = Oci.Redis.GetOciCacheUser.Invoke(new()
        {
            OciCacheUserId = testOciCacheUserOciRedisOciCacheUser.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.GetOciCacheUserArgs;
    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 testOciCacheUser = RedisFunctions.getOciCacheUser(GetOciCacheUserArgs.builder()
                .ociCacheUserId(testOciCacheUserOciRedisOciCacheUser.id())
                .build());
    
        }
    }
    
    variables:
      testOciCacheUser:
        fn::invoke:
          function: oci:Redis:getOciCacheUser
          arguments:
            ociCacheUserId: ${testOciCacheUserOciRedisOciCacheUser.id}
    

    Using getOciCacheUser

    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 getOciCacheUser(args: GetOciCacheUserArgs, opts?: InvokeOptions): Promise<GetOciCacheUserResult>
    function getOciCacheUserOutput(args: GetOciCacheUserOutputArgs, opts?: InvokeOptions): Output<GetOciCacheUserResult>
    def get_oci_cache_user(oci_cache_user_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetOciCacheUserResult
    def get_oci_cache_user_output(oci_cache_user_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetOciCacheUserResult]
    func LookupOciCacheUser(ctx *Context, args *LookupOciCacheUserArgs, opts ...InvokeOption) (*LookupOciCacheUserResult, error)
    func LookupOciCacheUserOutput(ctx *Context, args *LookupOciCacheUserOutputArgs, opts ...InvokeOption) LookupOciCacheUserResultOutput

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

    public static class GetOciCacheUser 
    {
        public static Task<GetOciCacheUserResult> InvokeAsync(GetOciCacheUserArgs args, InvokeOptions? opts = null)
        public static Output<GetOciCacheUserResult> Invoke(GetOciCacheUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOciCacheUserResult> getOciCacheUser(GetOciCacheUserArgs args, InvokeOptions options)
    public static Output<GetOciCacheUserResult> getOciCacheUser(GetOciCacheUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Redis/getOciCacheUser:getOciCacheUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OciCacheUserId string
    A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
    OciCacheUserId string
    A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
    ociCacheUserId String
    A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
    ociCacheUserId string
    A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
    oci_cache_user_id str
    A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
    ociCacheUserId String
    A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).

    getOciCacheUser Result

    The following output properties are available:

    AclString string
    ACL string of Oracle Cloud Infrastructure cache user.
    AuthenticationModes List<GetOciCacheUserAuthenticationMode>
    These are the Authentication details of an Oracle Cloud Infrastructure cache user.
    CompartmentId string
    Oracle Cloud Infrastructure Cache user compartment ID.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Description of Oracle Cloud Infrastructure cache user.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    Oracle Cloud Infrastructure Cache user unique ID.
    Name string
    Oracle Cloud Infrastructure Cache user name.
    OciCacheUserId string
    State string
    Oracle Cloud Infrastructure Cache user lifecycle state.
    Status string
    Oracle Cloud Infrastructure Cache user status. ON enables and OFF disables the Oracle Cloud Infrastructure cache user to login to the cluster.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time, when the Oracle Cloud Infrastructure cache user was created.
    TimeUpdated string
    The date and time, when the Oracle Cloud Infrastructure cache user was updated.
    AclString string
    ACL string of Oracle Cloud Infrastructure cache user.
    AuthenticationModes []GetOciCacheUserAuthenticationMode
    These are the Authentication details of an Oracle Cloud Infrastructure cache user.
    CompartmentId string
    Oracle Cloud Infrastructure Cache user compartment ID.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Description of Oracle Cloud Infrastructure cache user.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    Oracle Cloud Infrastructure Cache user unique ID.
    Name string
    Oracle Cloud Infrastructure Cache user name.
    OciCacheUserId string
    State string
    Oracle Cloud Infrastructure Cache user lifecycle state.
    Status string
    Oracle Cloud Infrastructure Cache user status. ON enables and OFF disables the Oracle Cloud Infrastructure cache user to login to the cluster.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time, when the Oracle Cloud Infrastructure cache user was created.
    TimeUpdated string
    The date and time, when the Oracle Cloud Infrastructure cache user was updated.
    aclString String
    ACL string of Oracle Cloud Infrastructure cache user.
    authenticationModes List<GetOciCacheUserAuthenticationMode>
    These are the Authentication details of an Oracle Cloud Infrastructure cache user.
    compartmentId String
    Oracle Cloud Infrastructure Cache user compartment ID.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Description of Oracle Cloud Infrastructure cache user.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    Oracle Cloud Infrastructure Cache user unique ID.
    name String
    Oracle Cloud Infrastructure Cache user name.
    ociCacheUserId String
    state String
    Oracle Cloud Infrastructure Cache user lifecycle state.
    status String
    Oracle Cloud Infrastructure Cache user status. ON enables and OFF disables the Oracle Cloud Infrastructure cache user to login to the cluster.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time, when the Oracle Cloud Infrastructure cache user was created.
    timeUpdated String
    The date and time, when the Oracle Cloud Infrastructure cache user was updated.
    aclString string
    ACL string of Oracle Cloud Infrastructure cache user.
    authenticationModes GetOciCacheUserAuthenticationMode[]
    These are the Authentication details of an Oracle Cloud Infrastructure cache user.
    compartmentId string
    Oracle Cloud Infrastructure Cache user compartment ID.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Description of Oracle Cloud Infrastructure cache user.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    Oracle Cloud Infrastructure Cache user unique ID.
    name string
    Oracle Cloud Infrastructure Cache user name.
    ociCacheUserId string
    state string
    Oracle Cloud Infrastructure Cache user lifecycle state.
    status string
    Oracle Cloud Infrastructure Cache user status. ON enables and OFF disables the Oracle Cloud Infrastructure cache user to login to the cluster.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time, when the Oracle Cloud Infrastructure cache user was created.
    timeUpdated string
    The date and time, when the Oracle Cloud Infrastructure cache user was updated.
    acl_string str
    ACL string of Oracle Cloud Infrastructure cache user.
    authentication_modes Sequence[GetOciCacheUserAuthenticationMode]
    These are the Authentication details of an Oracle Cloud Infrastructure cache user.
    compartment_id str
    Oracle Cloud Infrastructure Cache user compartment ID.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Description of Oracle Cloud Infrastructure cache user.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    Oracle Cloud Infrastructure Cache user unique ID.
    name str
    Oracle Cloud Infrastructure Cache user name.
    oci_cache_user_id str
    state str
    Oracle Cloud Infrastructure Cache user lifecycle state.
    status str
    Oracle Cloud Infrastructure Cache user status. ON enables and OFF disables the Oracle Cloud Infrastructure cache user to login to the cluster.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time, when the Oracle Cloud Infrastructure cache user was created.
    time_updated str
    The date and time, when the Oracle Cloud Infrastructure cache user was updated.
    aclString String
    ACL string of Oracle Cloud Infrastructure cache user.
    authenticationModes List<Property Map>
    These are the Authentication details of an Oracle Cloud Infrastructure cache user.
    compartmentId String
    Oracle Cloud Infrastructure Cache user compartment ID.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Description of Oracle Cloud Infrastructure cache user.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    Oracle Cloud Infrastructure Cache user unique ID.
    name String
    Oracle Cloud Infrastructure Cache user name.
    ociCacheUserId String
    state String
    Oracle Cloud Infrastructure Cache user lifecycle state.
    status String
    Oracle Cloud Infrastructure Cache user status. ON enables and OFF disables the Oracle Cloud Infrastructure cache user to login to the cluster.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time, when the Oracle Cloud Infrastructure cache user was created.
    timeUpdated String
    The date and time, when the Oracle Cloud Infrastructure cache user was updated.

    Supporting Types

    GetOciCacheUserAuthenticationMode

    AuthenticationType string
    This is Authentication Type of Oracle Cloud Infrastructure cache user
    HashedPasswords List<string>
    SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
    AuthenticationType string
    This is Authentication Type of Oracle Cloud Infrastructure cache user
    HashedPasswords []string
    SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
    authenticationType String
    This is Authentication Type of Oracle Cloud Infrastructure cache user
    hashedPasswords List<String>
    SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
    authenticationType string
    This is Authentication Type of Oracle Cloud Infrastructure cache user
    hashedPasswords string[]
    SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
    authentication_type str
    This is Authentication Type of Oracle Cloud Infrastructure cache user
    hashed_passwords Sequence[str]
    SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
    authenticationType String
    This is Authentication Type of Oracle Cloud Infrastructure cache user
    hashedPasswords List<String>
    SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.

    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.3.0 published on Thursday, Jul 17, 2025 by Pulumi