subcategory | layout | page_title | description |
---|---|---|---|
Security |
Elasticstack: elasticstack_elasticsearch_security_user Data Source |
Gets information about Elasticsearch user. |
Use this data source to get information about existing Elasticsearch user. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html".
provider "elasticstack" {
elasticsearch {}
}
data "elasticstack_elasticsearch_security_user" "user" {
username = "elastic"
}
output "user" {
value = data.elasticstack_elasticsearch_security_user.user
}
- username (String) An identifier for the user
- elasticsearch_connection (Block List, Max: 1) Used to establish connection to Elasticsearch server. Overrides environment variables if present. (see below for nested schema)
- id (String) The ID of this resource.
- email (String) The email of the user.
- enabled (Boolean) Specifies whether the user is enabled. The default value is true.
- full_name (String) The full name of the user.
- metadata (String) Arbitrary metadata that you want to associate with the user.
- roles (Set of String) A set of roles the user has. The roles determine the user’s access permissions. Default is [].
Optional:
- ca_file (String) Path to a custom Certificate Authority certificate
- endpoints (List of String, Sensitive) A list of endpoints the Terraform provider will point to. They must include the http(s) schema and port number.
- insecure (Boolean) Disable TLS certificate validation
- password (String, Sensitive) A password to use for API authentication to Elasticsearch.
- username (String) A username to use for API authentication to Elasticsearch.