forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatasource.tf
More file actions
24 lines (20 loc) · 787 Bytes
/
Copy pathdatasource.tf
File metadata and controls
24 lines (20 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
resource "okta_group" "test" {
name = "testAcc_replace_with_uuid"
}
resource "okta_group_rule" "test" {
name = "testAcc_replace_with_uuid"
status = "ACTIVE"
group_assignments = [okta_group.test.id]
expression_type = "urn:okta:expression:1.0"
expression_value = "String.startsWith(user.firstName,\"andy\")"
}
# This example is for syntax purposes only. If it was actually run
# data.okta_group_rule.test_by_id would fail because okta_group_rule.test
# wouldn't be in the search index yet. The data source implementation relies on
# a group rule search function in the Okta API
data "okta_group_rule" "test_by_id" {
id = okta_group_rule.test.id
}
data "okta_group_rule" "test_by_name" {
name = "testAcc_replace_with_uuid"
}