generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for edge router policy resource and data source
- Loading branch information
Showing
13 changed files
with
876 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ziti_edge_router_policy Data Source - terraform-provider-ziti" | ||
subcategory: "" | ||
description: |- | ||
A datasource to define a service edge router policy of Ziti | ||
--- | ||
|
||
# ziti_edge_router_policy (Data Source) | ||
|
||
A datasource to define a service edge router policy of Ziti | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "ziti_edge_router_policy" "test_reference_ziti_edge_router_policy" { | ||
most_recent = true | ||
filter = "name contains \"test\"" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `filter` (String) ZitiQl filter query | ||
- `id` (String) Example identifier | ||
- `most_recent` (Boolean) A flag which controls whether to get the first result from the filter query | ||
- `name` (String) Name of a config | ||
|
||
### Read-Only | ||
|
||
- `edge_router_roles` (List of String) Edge router roles list. | ||
- `identity_roles` (List of String) Service roles list. | ||
- `semantic` (String) Semantic for posture checks of the service | ||
- `tags` (Map of String) Tags of the service. |
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,30 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ziti_edge_router_policy_ids Data Source - terraform-provider-ziti" | ||
subcategory: "" | ||
description: |- | ||
Ziti Intercept Config Data Source | ||
--- | ||
|
||
# ziti_edge_router_policy_ids (Data Source) | ||
|
||
Ziti Intercept Config Data Source | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "ziti_edge_router_policy_ids" "test_reference_ziti_edge_policy_ids" { | ||
filter = "name contains \"test\"" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `filter` (String) ZitiQl filter query | ||
|
||
### Read-Only | ||
|
||
- `ids` (List of String) An array of allowed addresses that could be forwarded. |
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,70 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ziti_edge_router_policy Resource - terraform-provider-ziti" | ||
subcategory: "" | ||
description: |- | ||
A resource to define a host.v1 config of Ziti | ||
--- | ||
|
||
# ziti_edge_router_policy (Resource) | ||
|
||
A resource to define a host.v1 config of Ziti | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "ziti_host_config_v1" "forward_protocol_host" { | ||
name = "forward_protocol.host.v1" | ||
address = "localhost" | ||
port = 5432 | ||
forward_protocol = true | ||
allowed_protocols = ["tcp", "udp"] | ||
} | ||
resource "ziti_service" "test_service" { | ||
name = "test_service" | ||
configs = [ziti_host_config_v1.forward_protocol_host.id] | ||
} | ||
resource "ziti_identity" "test_ziti_identity" { | ||
name = "test_identity" | ||
tags = { | ||
test_value = "test" | ||
} | ||
app_data = { | ||
test_app_data = "test_app_data" | ||
} | ||
role_attributes = ["test"] | ||
service_hosting_costs = { | ||
"${ziti_service.test_service.id}" = 10 | ||
} | ||
} | ||
resource "ziti_edge_router_policy" "test_ziti_edge_router_policy" { | ||
name = "test_ziti_service_edge_router_policy" | ||
semantic = "AllOf" | ||
tags = { | ||
test_value = "test" | ||
} | ||
edge_router_roles = ["#all"] | ||
identity_roles = ["#all"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Name of the service | ||
|
||
### Optional | ||
|
||
- `edge_router_roles` (List of String) Edge Router roles list. | ||
- `identity_roles` (List of String) Service roles list. | ||
- `semantic` (String) Semantic for posture checks of the service | ||
- `tags` (Map of String) Tags of the service. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Name of the service |
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,4 @@ | ||
data "ziti_edge_router_policy" "test_reference_ziti_edge_router_policy" { | ||
most_recent = true | ||
filter = "name contains \"test\"" | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/ziti_edge_router_policy_ids/data-source.tf
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,3 @@ | ||
data "ziti_edge_router_policy_ids" "test_reference_ziti_edge_policy_ids" { | ||
filter = "name contains \"test\"" | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/ziti_service_edge_router_policy_ids/data-source.tf
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,3 @@ | ||
data "ziti_service_edge_router_policy_ids" "test_reference_ziti_service_policy_ids" { | ||
filter = "name contains \"test\"" | ||
} |
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,36 @@ | ||
resource "ziti_host_config_v1" "forward_protocol_host" { | ||
name = "forward_protocol.host.v1" | ||
address = "localhost" | ||
port = 5432 | ||
forward_protocol = true | ||
allowed_protocols = ["tcp", "udp"] | ||
} | ||
|
||
resource "ziti_service" "test_service" { | ||
name = "test_service" | ||
configs = [ziti_host_config_v1.forward_protocol_host.id] | ||
} | ||
|
||
resource "ziti_identity" "test_ziti_identity" { | ||
name = "test_identity" | ||
tags = { | ||
test_value = "test" | ||
} | ||
app_data = { | ||
test_app_data = "test_app_data" | ||
} | ||
role_attributes = ["test"] | ||
service_hosting_costs = { | ||
"${ziti_service.test_service.id}" = 10 | ||
} | ||
} | ||
|
||
resource "ziti_edge_router_policy" "test_ziti_edge_router_policy" { | ||
name = "test_ziti_service_edge_router_policy" | ||
semantic = "AllOf" | ||
tags = { | ||
test_value = "test" | ||
} | ||
edge_router_roles = ["#all"] | ||
identity_roles = ["#all"] | ||
} |
Oops, something went wrong.