Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi
oci.Redis.getOciCacheUser
Explore with Pulumi AI
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:
- Oci
Cache stringUser Id - A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
- Oci
Cache stringUser Id - A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
- oci
Cache StringUser Id - A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
- oci
Cache stringUser Id - A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
- oci_
cache_ struser_ id - A filter to return only resources, that match with the given Oracle Cloud Infrastructure cache user ID (OCID).
- oci
Cache StringUser Id - 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:
- Acl
String string - ACL string of Oracle Cloud Infrastructure cache user.
- Authentication
Modes List<GetOci Cache User Authentication Mode> - These are the Authentication details of an Oracle Cloud Infrastructure cache user.
- Compartment
Id string - Oracle Cloud Infrastructure Cache user compartment ID.
- 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.
- 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.
- Oci
Cache stringUser Id - 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.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time, when the Oracle Cloud Infrastructure cache user was created.
- Time
Updated string - The date and time, when the Oracle Cloud Infrastructure cache user was updated.
- Acl
String string - ACL string of Oracle Cloud Infrastructure cache user.
- Authentication
Modes []GetOci Cache User Authentication Mode - These are the Authentication details of an Oracle Cloud Infrastructure cache user.
- Compartment
Id string - Oracle Cloud Infrastructure Cache user compartment ID.
- 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.
- 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.
- Oci
Cache stringUser Id - 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.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time, when the Oracle Cloud Infrastructure cache user was created.
- Time
Updated string - The date and time, when the Oracle Cloud Infrastructure cache user was updated.
- acl
String String - ACL string of Oracle Cloud Infrastructure cache user.
- authentication
Modes List<GetOci Cache User Authentication Mode> - These are the Authentication details of an Oracle Cloud Infrastructure cache user.
- compartment
Id String - Oracle Cloud Infrastructure Cache user compartment ID.
- 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.
- 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.
- oci
Cache StringUser Id - 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.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time, when the Oracle Cloud Infrastructure cache user was created.
- time
Updated String - The date and time, when the Oracle Cloud Infrastructure cache user was updated.
- acl
String string - ACL string of Oracle Cloud Infrastructure cache user.
- authentication
Modes GetOci Cache User Authentication Mode[] - These are the Authentication details of an Oracle Cloud Infrastructure cache user.
- compartment
Id string - Oracle Cloud Infrastructure Cache user compartment ID.
- {[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.
- {[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.
- oci
Cache stringUser Id - 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.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time, when the Oracle Cloud Infrastructure cache user was created.
- time
Updated 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[GetOci Cache User Authentication Mode] - These are the Authentication details of an Oracle Cloud Infrastructure cache user.
- compartment_
id str - Oracle Cloud Infrastructure Cache user compartment ID.
- 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.
- 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_ struser_ id - 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.
- 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.
- acl
String String - ACL string of Oracle Cloud Infrastructure cache user.
- authentication
Modes List<Property Map> - These are the Authentication details of an Oracle Cloud Infrastructure cache user.
- compartment
Id String - Oracle Cloud Infrastructure Cache user compartment ID.
- 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.
- 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.
- oci
Cache StringUser Id - 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.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time, when the Oracle Cloud Infrastructure cache user was created.
- time
Updated String - The date and time, when the Oracle Cloud Infrastructure cache user was updated.
Supporting Types
GetOciCacheUserAuthenticationMode
- Authentication
Type string - This is Authentication Type of Oracle Cloud Infrastructure cache user
- Hashed
Passwords List<string> - SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
- Authentication
Type string - This is Authentication Type of Oracle Cloud Infrastructure cache user
- Hashed
Passwords []string - SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
- authentication
Type String - This is Authentication Type of Oracle Cloud Infrastructure cache user
- hashed
Passwords List<String> - SHA-256 hashed passwords for Oracle Cloud Infrastructure Cache user,required if authenticationType is set to PASSWORD.
- authentication
Type string - This is Authentication Type of Oracle Cloud Infrastructure cache user
- hashed
Passwords 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.
- authentication
Type String - This is Authentication Type of Oracle Cloud Infrastructure cache user
- hashed
Passwords 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.