Skip to content

Commit e8067d5

Browse files
Add support for default egress policy matrix rule (#97)
1 parent 9d203ea commit e8067d5

20 files changed

+856
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.6 (unreleased)
2+
3+
- Add `ise_trustsec_egress_matrix_cell_default` resource to support default egress policy matrix rule modifications
4+
15
## 0.2.5
26

37
- Remove default_value from `systemDefined` attribute in `ise_endpoint_identity_group`
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "ise_trustsec_egress_matrix_cell_default Data Source - terraform-provider-ise"
4+
subcategory: "TrustSec"
5+
description: |-
6+
This data source can read the TrustSec Egress Matrix Cell Default.
7+
---
8+
9+
# ise_trustsec_egress_matrix_cell_default (Data Source)
10+
11+
This data source can read the TrustSec Egress Matrix Cell Default.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "ise_trustsec_egress_matrix_cell_default" "example" {
17+
id = "92c1a900-8c01-11e6-996c-525400b48521"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `id` (String) The id of the object
27+
28+
### Read-Only
29+
30+
- `default_rule` (String) Can be used only if sgacls not specified. Final Catch All Rule
31+
- `description` (String) Description
32+
- `matrix_cell_status` (String) Matrix Cell Status
33+
- `sgacls` (Set of String) List of TrustSec Security Groups ACLs

docs/guides/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: |-
77

88
# Changelog
99

10+
## 0.2.6 (unreleased)
11+
12+
- Add `ise_trustsec_egress_matrix_cell_default` resource to support default egress policy matrix rule modifications
13+
1014
## 0.2.5
1115

1216
- Remove default_value from `systemDefined` attribute in `ise_endpoint_identity_group`
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "ise_trustsec_egress_matrix_cell_default Resource - terraform-provider-ise"
4+
subcategory: "TrustSec"
5+
description: |-
6+
Allows modifications to the default egress policy matrix rule
7+
---
8+
9+
# ise_trustsec_egress_matrix_cell_default (Resource)
10+
11+
Allows modifications to the default egress policy matrix rule
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "ise_trustsec_egress_matrix_cell_default" "example" {
17+
description = "Default egress rule"
18+
default_rule = "PERMIT_IP"
19+
matrix_cell_status = "ENABLED"
20+
}
21+
```
22+
23+
<!-- schema generated by tfplugindocs -->
24+
## Schema
25+
26+
### Optional
27+
28+
- `default_rule` (String) Can be used only if sgacls not specified. Final Catch All Rule
29+
- Choices: `NONE`, `DENY_IP`, `PERMIT_IP`
30+
- `description` (String) Description
31+
- `matrix_cell_status` (String) Matrix Cell Status
32+
- Choices: `DISABLED`, `ENABLED`, `MONITOR`
33+
- Default value: `DISABLED`
34+
- `sgacls` (Set of String) List of TrustSec Security Groups ACLs
35+
36+
### Read-Only
37+
38+
- `id` (String) The id of the object
39+
40+
## Import
41+
42+
Import is supported using the following syntax:
43+
44+
```shell
45+
terraform import ise_trustsec_egress_matrix_cell_default.example "92c1a900-8c01-11e6-996c-525400b48521"
46+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "ise_trustsec_egress_matrix_cell_default" "example" {
2+
id = "92c1a900-8c01-11e6-996c-525400b48521"
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import ise_trustsec_egress_matrix_cell_default.example "92c1a900-8c01-11e6-996c-525400b48521"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resource "ise_trustsec_egress_matrix_cell_default" "example" {
2+
description = "Default egress rule"
3+
default_rule = "PERMIT_IP"
4+
matrix_cell_status = "ENABLED"
5+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: TrustSec Egress Matrix Cell Default
3+
rest_endpoint: /ers/config/egressmatrixcell
4+
doc_category: TrustSec
5+
res_description: Allows modifications to the default egress policy matrix rule
6+
no_delete: true
7+
put_create: true
8+
put_id_query_path: true
9+
skip_minimum_test: true
10+
put_id_include_path: EgressMatrixCell
11+
attributes:
12+
- model_name: id
13+
id: true
14+
data_path: [EgressMatrixCell]
15+
type: String
16+
description: Default egress policy matrix rule id
17+
value: 92c1a900-8c01-11e6-996c-525400b48521
18+
example: 92c1a900-8c01-11e6-996c-525400b48521
19+
exclude_test: true
20+
- model_name: description
21+
data_path: [EgressMatrixCell]
22+
type: String
23+
description: Description
24+
example: Default egress rule
25+
- model_name: defaultRule
26+
data_path: [EgressMatrixCell]
27+
type: String
28+
enum_values: [NONE, DENY_IP, PERMIT_IP]
29+
description: "Can be used only if sgacls not specified. Final Catch All Rule"
30+
example: "PERMIT_IP"
31+
- model_name: matrixCellStatus
32+
data_path: [EgressMatrixCell]
33+
type: String
34+
enum_values: [DISABLED, ENABLED, MONITOR]
35+
default_value: "DISABLED"
36+
example: "ENABLED"
37+
description: "Matrix Cell Status"
38+
- model_name: sgacls
39+
data_path: [EgressMatrixCell]
40+
tf_name: sgacls
41+
type: Set
42+
element_type: String
43+
description: List of TrustSec Security Groups ACLs
44+
exclude_test: true
45+
- model_name: sourceSgtId
46+
data_path: [EgressMatrixCell]
47+
type: String
48+
description: Source Trustsec Security Group ID
49+
value: "92bb1950-8c01-11e6-996c-525400b48521"
50+
- model_name: destinationSgtId
51+
data_path: [EgressMatrixCell]
52+
type: String
53+
description: Destination Trustsec Security Group ID
54+
value: "92bb1950-8c01-11e6-996c-525400b48521"

gen/generator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ type YamlConfig struct {
104104
NoImport bool `yaml:"no_import"`
105105
PostUpdate bool `yaml:"post_update"`
106106
PutCreate bool `yaml:"put_create"`
107+
PutIdQueryPath bool `yaml:"put_id_query_path"`
107108
PutDelete bool `yaml:"put_delete"`
108109
PutRead bool `yaml:"put_read"`
109110
NoRead bool `yaml:"no_read"`

gen/schema/schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ no_read_prefix: bool(required=False) # Set to true if it is an Open API endpoint
1919
no_id: bool(required=False) # Set to true if the data source does not have an ID
2020
id_path: str(required=False) # Path to the ID in the response (use "." to access nested elements)
2121
put_id_include_path: str(required=False) # If PUT needs to have specific JSON path where ID should be inserted
22+
put_id_query_path: bool(required=False) # Set to true if PUT request is used to create and required ID in path
2223
data_source_name_query: bool(required=False) # Set to true if the data source supports name queries
2324
minimum_version: str(required=False) # Define a minimum supported version
2425
ds_description: str(required=False) # Define a data source description

0 commit comments

Comments
 (0)