-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new resource - ise_trustsec_matrix_cell_default
- Loading branch information
1 parent
458548f
commit 8269321
Showing
21 changed files
with
861 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ise_trustsec_egress_matrix_cell_default Data Source - terraform-provider-ise" | ||
subcategory: "TrustSec" | ||
description: |- | ||
This data source can read the TrustSec Egress Matrix Cell Default. | ||
--- | ||
|
||
# ise_trustsec_egress_matrix_cell_default (Data Source) | ||
|
||
This data source can read the TrustSec Egress Matrix Cell Default. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "ise_trustsec_egress_matrix_cell_default" "example" { | ||
id = "92c1a900-8c01-11e6-996c-525400b48521" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The id of the object | ||
|
||
### Read-Only | ||
|
||
- `default_rule` (String) Can be used only if sgacls not specified. Final Catch All Rule | ||
- `description` (String) Description | ||
- `matrix_cell_status` (String) Matrix Cell Status | ||
- `sgacls` (Set of String) List of TrustSec Security Groups ACLs |
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,46 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "ise_trustsec_egress_matrix_cell_default Resource - terraform-provider-ise" | ||
subcategory: "TrustSec" | ||
description: |- | ||
Allows modifications to the default egress policy matrix rule | ||
--- | ||
|
||
# ise_trustsec_egress_matrix_cell_default (Resource) | ||
|
||
Allows modifications to the default egress policy matrix rule | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "ise_trustsec_egress_matrix_cell_default" "example" { | ||
description = "Default egress rule" | ||
default_rule = "PERMIT_IP" | ||
matrix_cell_status = "ENABLED" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `default_rule` (String) Can be used only if sgacls not specified. Final Catch All Rule | ||
- Choices: `NONE`, `DENY_IP`, `PERMIT_IP` | ||
- `description` (String) Description | ||
- `matrix_cell_status` (String) Matrix Cell Status | ||
- Choices: `DISABLED`, `ENABLED`, `MONITOR` | ||
- Default value: `DISABLED` | ||
- `sgacls` (Set of String) List of TrustSec Security Groups ACLs | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import ise_trustsec_egress_matrix_cell_default.example "92c1a900-8c01-11e6-996c-525400b48521" | ||
``` |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/ise_trustsec_egress_matrix_cell_default/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 "ise_trustsec_egress_matrix_cell_default" "example" { | ||
id = "92c1a900-8c01-11e6-996c-525400b48521" | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/ise_trustsec_egress_matrix_cell_default/import.sh
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 @@ | ||
terraform import ise_trustsec_egress_matrix_cell_default.example "92c1a900-8c01-11e6-996c-525400b48521" |
5 changes: 5 additions & 0 deletions
5
examples/resources/ise_trustsec_egress_matrix_cell_default/resource.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,5 @@ | ||
resource "ise_trustsec_egress_matrix_cell_default" "example" { | ||
description = "Default egress rule" | ||
default_rule = "PERMIT_IP" | ||
matrix_cell_status = "ENABLED" | ||
} |
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,54 @@ | ||
--- | ||
name: TrustSec Egress Matrix Cell Default | ||
rest_endpoint: /ers/config/egressmatrixcell | ||
doc_category: TrustSec | ||
res_description: Allows modifications to the default egress policy matrix rule | ||
no_delete: true | ||
put_create: true | ||
put_id_query_path: true | ||
skip_minimum_test: true | ||
put_id_include_path: EgressMatrixCell | ||
attributes: | ||
- model_name: id | ||
id: true | ||
data_path: [EgressMatrixCell] | ||
type: String | ||
description: Default egress policy matrix rule id | ||
value: 92c1a900-8c01-11e6-996c-525400b48521 | ||
example: 92c1a900-8c01-11e6-996c-525400b48521 | ||
exclude_test: true | ||
- model_name: description | ||
data_path: [EgressMatrixCell] | ||
type: String | ||
description: Description | ||
example: Default egress rule | ||
- model_name: defaultRule | ||
data_path: [EgressMatrixCell] | ||
type: String | ||
enum_values: [NONE, DENY_IP, PERMIT_IP] | ||
description: "Can be used only if sgacls not specified. Final Catch All Rule" | ||
example: "PERMIT_IP" | ||
- model_name: matrixCellStatus | ||
data_path: [EgressMatrixCell] | ||
type: String | ||
enum_values: [DISABLED, ENABLED, MONITOR] | ||
default_value: "DISABLED" | ||
example: "ENABLED" | ||
description: "Matrix Cell Status" | ||
- model_name: sgacls | ||
data_path: [EgressMatrixCell] | ||
tf_name: sgacls | ||
type: Set | ||
element_type: String | ||
description: List of TrustSec Security Groups ACLs | ||
exclude_test: true | ||
- model_name: sourceSgtId | ||
data_path: [EgressMatrixCell] | ||
type: String | ||
description: Source Trustsec Security Group ID | ||
value: "92bb1950-8c01-11e6-996c-525400b48521" | ||
- model_name: destinationSgtId | ||
data_path: [EgressMatrixCell] | ||
type: String | ||
description: Destination Trustsec Security Group ID | ||
value: "92bb1950-8c01-11e6-996c-525400b48521" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
134 changes: 134 additions & 0 deletions
134
internal/provider/data_source_ise_trustsec_egress_matrix_cell_default.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.