published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Redis credential resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_redis_credential" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
# Only use the import statement, if you want to import an existing redis credential
import {
to = stackit_redis_credential.import-example
id = "${var.project_id},${var.redis_instance_id},${var.redis_credential_id}"
}
Create RedisCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RedisCredential(name: string, args: RedisCredentialArgs, opts?: CustomResourceOptions);@overload
def RedisCredential(resource_name: str,
args: RedisCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RedisCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
project_id: Optional[str] = None)func NewRedisCredential(ctx *Context, name string, args RedisCredentialArgs, opts ...ResourceOption) (*RedisCredential, error)public RedisCredential(string name, RedisCredentialArgs args, CustomResourceOptions? opts = null)
public RedisCredential(String name, RedisCredentialArgs args)
public RedisCredential(String name, RedisCredentialArgs args, CustomResourceOptions options)
type: stackit:RedisCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RedisCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RedisCredentialArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RedisCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisCredentialArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var redisCredentialResource = new Stackit.RedisCredential("redisCredentialResource", new()
{
InstanceId = "string",
ProjectId = "string",
});
example, err := stackit.NewRedisCredential(ctx, "redisCredentialResource", &stackit.RedisCredentialArgs{
InstanceId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
})
var redisCredentialResource = new RedisCredential("redisCredentialResource", RedisCredentialArgs.builder()
.instanceId("string")
.projectId("string")
.build());
redis_credential_resource = stackit.RedisCredential("redisCredentialResource",
instance_id="string",
project_id="string")
const redisCredentialResource = new stackit.RedisCredential("redisCredentialResource", {
instanceId: "string",
projectId: "string",
});
type: stackit:RedisCredential
properties:
instanceId: string
projectId: string
RedisCredential Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RedisCredential resource accepts the following input properties:
- Instance
Id string - ID of the Redis instance.
- Project
Id string - STACKIT Project ID to which the instance is associated.
- Instance
Id string - ID of the Redis instance.
- Project
Id string - STACKIT Project ID to which the instance is associated.
- instance
Id String - ID of the Redis instance.
- project
Id String - STACKIT Project ID to which the instance is associated.
- instance
Id string - ID of the Redis instance.
- project
Id string - STACKIT Project ID to which the instance is associated.
- instance_
id str - ID of the Redis instance.
- project_
id str - STACKIT Project ID to which the instance is associated.
- instance
Id String - ID of the Redis instance.
- project
Id String - STACKIT Project ID to which the instance is associated.
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisCredential resource produces the following output properties:
- Credential
Id string - The credential's ID.
- Host string
- Hosts List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balanced stringHost - Password string
- Port int
- Uri string
- Connection URI.
- Username string
- Credential
Id string - The credential's ID.
- Host string
- Hosts []string
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balanced stringHost - Password string
- Port int
- Uri string
- Connection URI.
- Username string
- credential
Id String - The credential's ID.
- host String
- hosts List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balanced StringHost - password String
- port Integer
- uri String
- Connection URI.
- username String
- credential
Id string - The credential's ID.
- host string
- hosts string[]
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balanced stringHost - password string
- port number
- uri string
- Connection URI.
- username string
- credential_
id str - The credential's ID.
- host str
- hosts Sequence[str]
- id str
- The provider-assigned unique ID for this managed resource.
- load_
balanced_ strhost - password str
- port int
- uri str
- Connection URI.
- username str
- credential
Id String - The credential's ID.
- host String
- hosts List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balanced StringHost - password String
- port Number
- uri String
- Connection URI.
- username String
Look up Existing RedisCredential Resource
Get an existing RedisCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RedisCredentialState, opts?: CustomResourceOptions): RedisCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credential_id: Optional[str] = None,
host: Optional[str] = None,
hosts: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
load_balanced_host: Optional[str] = None,
password: Optional[str] = None,
port: Optional[int] = None,
project_id: Optional[str] = None,
uri: Optional[str] = None,
username: Optional[str] = None) -> RedisCredentialfunc GetRedisCredential(ctx *Context, name string, id IDInput, state *RedisCredentialState, opts ...ResourceOption) (*RedisCredential, error)public static RedisCredential Get(string name, Input<string> id, RedisCredentialState? state, CustomResourceOptions? opts = null)public static RedisCredential get(String name, Output<String> id, RedisCredentialState state, CustomResourceOptions options)resources: _: type: stackit:RedisCredential get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Credential
Id string - The credential's ID.
- Host string
- Hosts List<string>
- Instance
Id string - ID of the Redis instance.
- Load
Balanced stringHost - Password string
- Port int
- Project
Id string - STACKIT Project ID to which the instance is associated.
- Uri string
- Connection URI.
- Username string
- Credential
Id string - The credential's ID.
- Host string
- Hosts []string
- Instance
Id string - ID of the Redis instance.
- Load
Balanced stringHost - Password string
- Port int
- Project
Id string - STACKIT Project ID to which the instance is associated.
- Uri string
- Connection URI.
- Username string
- credential
Id String - The credential's ID.
- host String
- hosts List<String>
- instance
Id String - ID of the Redis instance.
- load
Balanced StringHost - password String
- port Integer
- project
Id String - STACKIT Project ID to which the instance is associated.
- uri String
- Connection URI.
- username String
- credential
Id string - The credential's ID.
- host string
- hosts string[]
- instance
Id string - ID of the Redis instance.
- load
Balanced stringHost - password string
- port number
- project
Id string - STACKIT Project ID to which the instance is associated.
- uri string
- Connection URI.
- username string
- credential_
id str - The credential's ID.
- host str
- hosts Sequence[str]
- instance_
id str - ID of the Redis instance.
- load_
balanced_ strhost - password str
- port int
- project_
id str - STACKIT Project ID to which the instance is associated.
- uri str
- Connection URI.
- username str
- credential
Id String - The credential's ID.
- host String
- hosts List<String>
- instance
Id String - ID of the Redis instance.
- load
Balanced StringHost - password String
- port Number
- project
Id String - STACKIT Project ID to which the instance is associated.
- uri String
- Connection URI.
- username String
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
