terraform-provider-stackitp.../docs/data-sources/redis_credential.md
Vicente Pinto b79c88e858
Update documentation (#298)
* Update documentation

* Update stackit/internal/services/redis/credential/resource.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* Add more info

* Update datasource

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-03-11 15:55:05 +00:00

42 lines
1.4 KiB
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_redis_credential Data Source - stackit"
subcategory: ""
description: |-
Redis credential data source schema. Must have a region specified in the provider configuration.
---
# stackit_redis_credential (Data Source)
Redis credential data source schema. Must have a `region` specified in the provider configuration.
## Example Usage
```terraform
data "stackit_redis_credential" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
credential_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `credential_id` (String) The credential's ID.
- `instance_id` (String) ID of the Redis instance.
- `project_id` (String) STACKIT project ID to which the instance is associated.
### Read-Only
- `host` (String)
- `hosts` (List of String)
- `http_api_uri` (String)
- `id` (String) Terraform's internal data source. identifier. It is structured as "`project_id`,`instance_id`,`credential_id`".
- `name` (String)
- `password` (String, Sensitive)
- `port` (Number)
- `uri` (String) Connection URI. Currently the returned uri doesn't support SSL, but you can enable it by using `rediss://` instead of `redis://`. We will provide the SSL connection in a future release
- `username` (String)