Skip to content

Commit 294fa7e

Browse files
authored
Add advanced inspection profile policy definition resource and data source (#96)
1 parent 793599a commit 294fa7e

15 files changed

+907
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- BREAKING CHANGE: Rename `group` attribute of `sdwan_cedge_aaa_feature_template` resource and data source to `groups` and fix type
55
- Use type `Set` for `device_types` attributes of feature template resources and data sources
66
- Add `sdwan_tls_ssl_decryption_policy_definition` resource and data source
7+
- Add `sdwan_advanced_inspection_profile_policy_definition` resource and data source
78

89
## 0.2.8
910

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "sdwan_advanced_inspection_profile_policy_definition Data Source - terraform-provider-sdwan"
4+
subcategory: "Security Policies"
5+
description: |-
6+
This data source can read the Advanced Inspection Profile Policy Definition .
7+
---
8+
9+
# sdwan_advanced_inspection_profile_policy_definition (Data Source)
10+
11+
This data source can read the Advanced Inspection Profile Policy Definition .
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "sdwan_advanced_inspection_profile_policy_definition" "example" {
17+
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
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+
- `advanced_malware_protection_id` (String) Advanced malware protection ID
31+
- `advanced_malware_protection_version` (Number) Advanced malware protection version
32+
- `description` (String) The description of the policy definition.
33+
- `intrusion_prevention_id` (String) Intrusion prevention ID (unified mode)
34+
- `intrusion_prevention_version` (Number) Intrusion prevention version
35+
- `name` (String) The name of the policy definition.
36+
- `tls_action` (String) TLS Action
37+
- `tls_ssl_decryption_id` (String) TLS/SSL decryption ID
38+
- `tls_ssl_decryption_version` (Number) TLS/SSL decryption version
39+
- `url_filtering_id` (String) URL filtering ID (unified mode)
40+
- `url_filtering_version` (Number) URL filtering version
41+
- `version` (Number) The version of the object

docs/guides/changelog.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
---
2-
subcategory: "Guides"
3-
page_title: "Changelog"
4-
description: |-
5-
Changelog
6-
---
7-
8-
# Changelog
9-
1+
---
2+
subcategory: "Guides"
3+
page_title: "Changelog"
4+
description: |-
5+
Changelog
6+
---
7+
8+
# Changelog
9+
1010
## 0.2.9 (unreleased)
1111

1212
- Add `sdwan_advanced_malware_protection_policy_definition` resource and data source
1313
- BREAKING CHANGE: Rename `group` attribute of `sdwan_cedge_aaa_feature_template` resource and data source to `groups` and fix type
1414
- Use type `Set` for `device_types` attributes of feature template resources and data sources
1515
- Add `sdwan_tls_ssl_decryption_policy_definition` resource and data source
16+
- Add `sdwan_advanced_inspection_profile_policy_definition` resource and data source
1617

1718
## 0.2.8
1819

@@ -87,4 +88,4 @@ description: |-
8788
## 0.1.0 (July 23, 2021)
8889

8990
- Initial Release
90-
91+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "sdwan_advanced_inspection_profile_policy_definition Resource - terraform-provider-sdwan"
4+
subcategory: "Security Policies"
5+
description: |-
6+
This resource can manage a Advanced Inspection Profile Policy Definition .
7+
---
8+
9+
# sdwan_advanced_inspection_profile_policy_definition (Resource)
10+
11+
This resource can manage a Advanced Inspection Profile Policy Definition .
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "sdwan_advanced_inspection_profile_policy_definition" "example" {
17+
name = "Example"
18+
description = "My description"
19+
tls_action = "decrypt"
20+
url_filtering_id = "914670a3-9726-4a51-847f-b3db70819dc2"
21+
}
22+
```
23+
24+
<!-- schema generated by tfplugindocs -->
25+
## Schema
26+
27+
### Required
28+
29+
- `description` (String) The description of the policy definition.
30+
- `name` (String) The name of the policy definition.
31+
32+
### Optional
33+
34+
- `advanced_malware_protection_id` (String) Advanced malware protection ID
35+
- `advanced_malware_protection_version` (Number) Advanced malware protection version
36+
- `intrusion_prevention_id` (String) Intrusion prevention ID (unified mode)
37+
- `intrusion_prevention_version` (Number) Intrusion prevention version
38+
- `tls_action` (String) TLS Action
39+
- Choices: `decrypt`, `skipDecrypt`, `doNotDecrypt`
40+
- `tls_ssl_decryption_id` (String) TLS/SSL decryption ID
41+
- `tls_ssl_decryption_version` (Number) TLS/SSL decryption version
42+
- `url_filtering_id` (String) URL filtering ID (unified mode)
43+
- `url_filtering_version` (Number) URL filtering version
44+
45+
### Read-Only
46+
47+
- `id` (String) The id of the object
48+
- `version` (Number) The version of the object
49+
50+
## Import
51+
52+
Import is supported using the following syntax:
53+
54+
```shell
55+
terraform import sdwan_advanced_inspection_profile_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
56+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "sdwan_advanced_inspection_profile_policy_definition" "example" {
2+
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import sdwan_advanced_inspection_profile_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "sdwan_advanced_inspection_profile_policy_definition" "example" {
2+
name = "Example"
3+
description = "My description"
4+
tls_action = "decrypt"
5+
url_filtering_id = "914670a3-9726-4a51-847f-b3db70819dc2"
6+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Advanced Inspection Profile Policy Definition
2+
rest_endpoint: /template/policy/definition/advancedinspectionprofile/
3+
has_version: true
4+
id_attribute: definitionId
5+
doc_category: Security Policies
6+
attributes:
7+
- model_name: type
8+
type: String
9+
value: advancedInspectionProfile
10+
- model_name: name
11+
tf_name: name
12+
type: String
13+
mandatory: true
14+
description: The name of the policy definition.
15+
example: Example
16+
- model_name: description
17+
tf_name: description
18+
type: String
19+
mandatory: true
20+
description: The description of the policy definition.
21+
example: My description
22+
- model_name: tlsDecryptionAction
23+
data_path: [definition]
24+
tf_name: tls_action
25+
type: String
26+
enum_values: [decrypt, skipDecrypt, doNotDecrypt]
27+
description: TLS Action
28+
example: decrypt
29+
- model_name: ref
30+
data_path: [definition, intrusionPrevention]
31+
tf_name: intrusion_prevention_id
32+
type: String
33+
description: Intrusion prevention ID (unified mode)
34+
example: b80ed541-3950-45c7-ab35-d8f11e180599
35+
exclude_test: true
36+
- tf_name: intrusion_prevention_version
37+
tf_only: true
38+
type: Version
39+
description: Intrusion prevention version
40+
exclude_test: true
41+
- model_name: ref
42+
data_path: [definition, urlFiltering]
43+
tf_name: url_filtering_id
44+
type: String
45+
description: URL filtering ID (unified mode)
46+
example: 914670a3-9726-4a51-847f-b3db70819dc2
47+
test_value: sdwan_url_filtering_policy_definition.test.id
48+
- tf_name: url_filtering_version
49+
tf_only: true
50+
type: Version
51+
description: URL filtering version
52+
exclude_test: true
53+
- model_name: ref
54+
data_path: [definition, advancedMalwareProtection]
55+
tf_name: advanced_malware_protection_id
56+
type: String
57+
description: Advanced malware protection ID
58+
example: c3590312-7f67-41d7-b9a5-42ec97c7a73d
59+
exclude_test: true
60+
- tf_name: advanced_malware_protection_version
61+
tf_only: true
62+
type: Version
63+
description: Advanced malware protection version
64+
exclude_test: true
65+
- model_name: ref
66+
data_path: [definition, sslDecryption]
67+
tf_name: tls_ssl_decryption_id
68+
type: String
69+
description: TLS/SSL decryption ID
70+
example: 84f10c9d-def7-45a3-8c64-6df26163c861
71+
exclude_test: true
72+
- tf_name: tls_ssl_decryption_version
73+
tf_only: true
74+
type: Version
75+
description: TLS/SSL decryption version
76+
exclude_test: true
77+
78+
test_prerequisites: |
79+
resource "sdwan_url_filtering_policy_definition" "test" {
80+
name = "TF_TEST"
81+
description = "Terraform test"
82+
mode = "security"
83+
alerts = ["blacklist"]
84+
web_categories = ["alcohol-and-tobacco"]
85+
web_categories_action = "allow"
86+
web_reputation = "moderate-risk"
87+
target_vpns = ["1"]
88+
block_page_action = "text"
89+
block_page_contents = "Access to the requested page has been denied. Please contact your Network Administrator"
90+
}

internal/provider/data_source_sdwan_advanced_inspection_profile_policy_definition.go

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)