| page_title | cozystack_mongodb Data Source - cozystack |
|---|---|
| subcategory | |
| description | Read an existing Cozystack MongoDB instance by name and namespace. |
Read an existing Cozystack MongoDB instance by name and namespace.
data "cozystack_mongodb" "app" {
name = "app"
namespace = "tenant-root"
}name(String) MongoDB instance name.namespace(String) Tenant namespace.
chart_version(String) Deployed chart version.databases(Attributes Map) Databases keyed by name. (see below for nested schema)external(Boolean) Whether external access is enabled.id(String) Synthetic identifiernamespace/name.ready(Boolean) Whether the application'sReadycondition is true.replicas(Number) Number of replicas.resources(Attributes) Explicit CPU and memory per replica, when set. (see below for nested schema)resources_preset(String) Sizing preset.sharding(Boolean) Whether sharding is enabled.size(String) Persistent volume size.storage_class(String) StorageClass used to store the data.uid(String) Server-assigned object UID (metadata.uid).users(Attributes Map) MongoDB users keyed by user name. (see below for nested schema)version(String) MongoDB major version.
Read-Only:
roles(Attributes) User roles for this entry. (see below for nested schema)
Read-Only:
admin(List of String) Users with admin privileges.readonly(List of String) Users with read-only privileges.
Read-Only:
cpu(String) CPU available to each replica.memory(String) Memory available to each replica.
Read-Only:
password(String, Sensitive) User password.