11---
2- page_title : " ory_project Data Source - Ory"
2+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3+ page_title : " ory_project Data Source - ory"
34subcategory : " "
45description : |-
56 Fetches information about an Ory project.
67---
78
89# ory_project (Data Source)
910
10- Fetches information about an Ory project. Use this data source to read project details without managing the project lifecycle.
11+ Fetches information about an Ory project.
1112
1213## Example Usage
1314
14- ### Read Current Project
15-
1615``` terraform
17- # Read the project configured in the provider
16+ # Read the current project (from provider config)
1817data "ory_project" "current" {}
1918
2019output "project_name" {
@@ -24,25 +23,27 @@ output "project_name" {
2423output "project_slug" {
2524 value = data.ory_project.current.slug
2625}
27- ```
2826
29- ### Read Specific Project
27+ output "project_state" {
28+ value = data.ory_project.current.state
29+ }
3030
31- ``` terraform
31+ # Read a specific project by ID
3232data "ory_project" "other" {
3333 id = "other-project-uuid"
3434}
3535```
3636
37+ <!-- schema generated by tfplugindocs -->
3738## Schema
3839
3940### Optional
4041
41- - ` id ` (String) - Project ID to look up. If not specified, uses the provider's project_id.
42+ - ` id ` (String) Project ID to look up. If not specified, uses the provider's project_id.
4243
4344### Read-Only
4445
45- - ` name ` (String) - The project name.
46- - ` slug ` (String) - The project slug.
47- - ` state ` (String) - The project state.
48- - ` workspace_id ` (String) - The workspace ID the project belongs to.
46+ - ` name ` (String) The project name.
47+ - ` slug ` (String) The project slug.
48+ - ` state ` (String) The project state.
49+ - ` workspace_id ` (String) The workspace ID the project belongs to.
0 commit comments