# dokploy_application (Data Source)

Look up a Dokploy application by id, or by name within an environment.

## Example Usage

```terraform
data "dokploy_application" "example" {
  id = "your-application-id"
}

# By name, within an environment.
data "dokploy_application" "by_name" {
  environment_id = data.dokploy_environment.production.id
  name           = "frontend"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `environment_id` (String) Id of the environment to search. Required with `name`.
- `id` (String) Application id. Set either this or both `environment_id` and `name`.
- `name` (String) Exact application name, searched within `environment_id`. Errors when zero or multiple applications match.

### Read-Only

- `app_name` (String) Dokploy-internal app name.
- `created_at` (String) Creation timestamp.
- `description` (String) Description.
- `env` (String, Sensitive) Environment variables (multiline `KEY=value`), exactly as stored in Dokploy. Marked sensitive because it typically holds credentials that this provider did not author; it is redacted in plan output but, like all Terraform data, stored in plain text in state.
- `source_type` (String) Configured source type (github, git, docker).
- `status` (String) Application status.