-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: datasources to filter by name
- Loading branch information
Showing
59 changed files
with
1,155 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
page_title: "zitadel_application_apis Data Source - terraform-provider-zitadel" | ||
subcategory: "" | ||
description: |- | ||
Datasource representing an API application belonging to a project, with all configuration possibilities. | ||
--- | ||
|
||
# zitadel_application_apis (Data Source) | ||
|
||
Datasource representing an API application belonging to a project, with all configuration possibilities. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "zitadel_application_apis" "default" { | ||
org_id = data.zitadel_org.default.id | ||
project_id = data.zitadel_project.default.id | ||
name = "example-name" | ||
name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE" | ||
} | ||
data "zitadel_application_api" "default" { | ||
for_each = toset(data.zitadel_application_apis.default.app_ids) | ||
id = each.value | ||
} | ||
output "app_api_names" { | ||
value = toset([ | ||
for app in data.zitadel_application_api.default : app.name | ||
]) | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the application | ||
- `project_id` (String) ID of the project | ||
|
||
### Optional | ||
|
||
- `name_method` (String) Method for querying applications by name, supported values: TEXT_QUERY_METHOD_EQUALS, TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE, TEXT_QUERY_METHOD_STARTS_WITH, TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE, TEXT_QUERY_METHOD_CONTAINS, TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE, TEXT_QUERY_METHOD_ENDS_WITH, TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE | ||
- `org_id` (String) ID of the organization | ||
|
||
### Read-Only | ||
|
||
- `app_ids` (List of String) A set of all IDs. | ||
- `id` (String) The ID of this resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
page_title: "zitadel_application_oidcs Data Source - terraform-provider-zitadel" | ||
subcategory: "" | ||
description: |- | ||
Datasource representing an OIDC application belonging to a project, with all configuration possibilities. | ||
--- | ||
|
||
# zitadel_application_oidcs (Data Source) | ||
|
||
Datasource representing an OIDC application belonging to a project, with all configuration possibilities. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "zitadel_application_oidcs" "default" { | ||
org_id = data.zitadel_org.default.id | ||
project_id = data.zitadel_project.default.id | ||
name = "example-name" | ||
name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE" | ||
} | ||
data "zitadel_application_oidc" "default" { | ||
for_each = toset(data.zitadel_application_oidcs.default.app_ids) | ||
id = each.value | ||
} | ||
output "app_oidc_names" { | ||
value = toset([ | ||
for app in data.zitadel_application_oidc.default : app.name | ||
]) | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the application | ||
- `project_id` (String) ID of the project | ||
|
||
### Optional | ||
|
||
- `name_method` (String) Method for querying applications by name, supported values: TEXT_QUERY_METHOD_EQUALS, TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE, TEXT_QUERY_METHOD_STARTS_WITH, TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE, TEXT_QUERY_METHOD_CONTAINS, TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE, TEXT_QUERY_METHOD_ENDS_WITH, TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE | ||
- `org_id` (String) ID of the organization | ||
|
||
### Read-Only | ||
|
||
- `app_ids` (List of String) A set of all IDs. | ||
- `id` (String) The ID of this resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
page_title: "zitadel_machine_users Data Source - terraform-provider-zitadel" | ||
subcategory: "" | ||
description: |- | ||
Datasource representing a serviceaccount situated under an organization, which then can be authorized through memberships or direct grants on other resources. | ||
--- | ||
|
||
# zitadel_machine_users (Data Source) | ||
|
||
Datasource representing a serviceaccount situated under an organization, which then can be authorized through memberships or direct grants on other resources. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "zitadel_machine_users" "default" { | ||
org_id = data.zitadel_org.default.id | ||
user_name = "example-name" | ||
user_name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE" | ||
} | ||
data "zitadel_machine_user" "default" { | ||
for_each = toset(data.zitadel_machine_users.default.user_ids) | ||
id = each.value | ||
} | ||
output "user_names" { | ||
value = toset([ | ||
for user in data.zitadel_machine_user.default : user.name | ||
]) | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `user_name` (String) Username | ||
|
||
### Optional | ||
|
||
- `org_id` (String) ID of the organization | ||
- `user_name_method` (String) Method for querying machine users by username, supported values: TEXT_QUERY_METHOD_EQUALS, TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE, TEXT_QUERY_METHOD_STARTS_WITH, TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE, TEXT_QUERY_METHOD_CONTAINS, TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE, TEXT_QUERY_METHOD_ENDS_WITH, TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `user_ids` (List of String) A set of all IDs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
page_title: "zitadel_projects Data Source - terraform-provider-zitadel" | ||
subcategory: "" | ||
description: |- | ||
Datasource representing the project, which can then be granted to different organizations or users directly, containing different applications. | ||
--- | ||
|
||
# zitadel_projects (Data Source) | ||
|
||
Datasource representing the project, which can then be granted to different organizations or users directly, containing different applications. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "zitadel_projects" "default" { | ||
org_id = data.zitadel_org.default.id | ||
name = "example-name" | ||
name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE" | ||
} | ||
data "zitadel_project" "default" { | ||
for_each = toset(data.zitadel_projects.default.project_ids) | ||
id = each.value | ||
} | ||
output "project_names" { | ||
value = toset([ | ||
for project in data.zitadel_project.default : project.name | ||
]) | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the project | ||
|
||
### Optional | ||
|
||
- `name_method` (String) Method for querying projects by name, supported values: TEXT_QUERY_METHOD_EQUALS, TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE, TEXT_QUERY_METHOD_STARTS_WITH, TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE, TEXT_QUERY_METHOD_CONTAINS, TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE, TEXT_QUERY_METHOD_ENDS_WITH, TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE | ||
- `org_id` (String) ID of the organization | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `project_ids` (List of String) A set of all project IDs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
data "zitadel_application_apis" "default" { | ||
org_id = data.zitadel_org.default.id | ||
project_id = data.zitadel_project.default.id | ||
name = "example-name" | ||
name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE" | ||
} | ||
|
||
data "zitadel_application_api" "default" { | ||
for_each = toset(data.zitadel_application_apis.default.app_ids) | ||
id = each.value | ||
} | ||
|
||
output "app_api_names" { | ||
value = toset([ | ||
for app in data.zitadel_application_api.default : app.name | ||
]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
data "zitadel_application_oidcs" "default" { | ||
org_id = data.zitadel_org.default.id | ||
project_id = data.zitadel_project.default.id | ||
name = "example-name" | ||
name_method = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE" | ||
} | ||
|
||
data "zitadel_application_oidc" "default" { | ||
for_each = toset(data.zitadel_application_oidcs.default.app_ids) | ||
id = each.value | ||
} | ||
|
||
output "app_oidc_names" { | ||
value = toset([ | ||
for app in data.zitadel_application_oidc.default : app.name | ||
]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.