Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX2.0] Adds Unified Policy Object Resource and Data Source #333

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.5.1 (unreleased)

- Add `sdwan_policy_object_unified_advanced_malware_protection` resource and data source
- Add `sdwan_policy_object_unified_url_filtering` resource and data source
- Add `sdwan_policy_object_unified_tls_ssl_profile` resource and data source
- Add `sdwan_policy_object_unified_intrusion_prevention` resource and data source
- Add `sdwan_policy_object_unified_advanced_inspection_profile` resource and data source
- Add `sdwan_policy_object_unified_tls_ssl_decryption` resource and data source
- Add `sdwan_policy_object_security_protocol_list` resource and data source

## 0.5.0

- Add `sdwan_policy_object_application_list` resource and data source
Expand Down
42 changes: 42 additions & 0 deletions docs/data-sources/policy_object_security_protocol_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_security_protocol_list Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Security Protocol List Policy_object.
---

# sdwan_policy_object_security_protocol_list (Data Source)

This data source can read the Policy Object Security Protocol List Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_security_protocol_list" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `description` (String) The description of the Policy_object
- `entries` (Attributes List) (see [below for nested schema](#nestedatt--entries))
- `name` (String) The name of the Policy_object
- `version` (Number) The version of the Policy_object

<a id="nestedatt--entries"></a>
### Nested Schema for `entries`

Read-Only:

- `protocol_name` (String)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_unified_advanced_inspection_profile Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Unified Advanced Inspection Profile Policy_object.
---

# sdwan_policy_object_unified_advanced_inspection_profile (Data Source)

This data source can read the Policy Object Unified Advanced Inspection Profile Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_unified_advanced_inspection_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `advanced_malware_protection_list_id` (String)
- `description` (String) The description of the Policy_object
- `intrusion_prevention_list_id` (String)
- `name` (String) The name of the Policy_object
- `tls_decryption_action` (String)
- `tls_ssl_profile_list_id` (String)
- `url_filtering_list_id` (String)
- `version` (Number) The version of the Policy_object
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_unified_advanced_malware_protection Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Unified Advanced Malware Protection Policy_object.
---

# sdwan_policy_object_unified_advanced_malware_protection (Data Source)

This data source can read the Policy Object Unified Advanced Malware Protection Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_unified_advanced_malware_protection" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `alert_log_level` (String)
- `amp_cloud_region` (String)
- `amp_cloud_region_est_server` (String)
- `description` (String) The description of the Policy_object
- `file_analysis` (Boolean)
- `file_analysis_alert_log_level` (String)
- `file_analysis_cloud_region` (String)
- `file_analysis_file_types` (Set of String)
- `name` (String) The name of the Policy_object
- `version` (Number) The version of the Policy_object
39 changes: 39 additions & 0 deletions docs/data-sources/policy_object_unified_intrusion_prevention.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_unified_intrusion_prevention Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Unified Intrusion Prevention Policy_object.
---

# sdwan_policy_object_unified_intrusion_prevention (Data Source)

This data source can read the Policy Object Unified Intrusion Prevention Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_unified_intrusion_prevention" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `custom_signature` (Boolean) Can be one of the enum value
- `description` (String) The description of the Policy_object
- `inspection_mode` (String) Can be one of the enum value
- `ips_signature_allow_list_id` (String)
- `log_level` (String) Can be one of the enum value
- `name` (String) The name of the Policy_object
- `signature_set` (String) Can be one of the enum value
- `version` (Number) The version of the Policy_object
48 changes: 48 additions & 0 deletions docs/data-sources/policy_object_unified_tls_ssl_decryption.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_unified_tls_ssl_decryption Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Unified TLS SSL Decryption Policy_object.
---

# sdwan_policy_object_unified_tls_ssl_decryption (Data Source)

This data source can read the Policy Object Unified TLS SSL Decryption Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_unified_tls_ssl_decryption" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `bundle_string` (String)
- `certificate_lifetime` (String) If you have vManage as CA or vManage as intermediate CA, this value should be 1
- `certificate_revocation_status` (String) If value is none unknown status not required, if value is ocsp then unknown status is required
- `default_ca_certificate_bundle` (Boolean)
- `description` (String) The description of the Policy_object
- `ec_key_type` (String)
- `expired_certificate` (String)
- `failure_mode` (String)
- `file_name` (String)
- `minimal_tls_ver` (String)
- `name` (String) The name of the Policy_object
- `rsa_keypair_modules` (String)
- `unknown_revocation_status` (String) Only required if certificateRevocationStatus is oscp, if value is none then field shouldn't be here
- `unsupported_cipher_suites` (String)
- `unsupported_protocol_versions` (String)
- `untrusted_certificate` (String)
- `version` (Number) The version of the Policy_object
43 changes: 43 additions & 0 deletions docs/data-sources/policy_object_unified_tls_ssl_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_unified_tls_ssl_profile Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Unified TLS SSL Profile Policy_object.
---

# sdwan_policy_object_unified_tls_ssl_profile (Data Source)

This data source can read the Policy Object Unified TLS SSL Profile Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_unified_tls_ssl_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `decrypt_categories` (Set of String)
- `decrypt_threshold` (String)
- `description` (String) The description of the Policy_object
- `fail_decrypt` (Boolean)
- `name` (String) The name of the Policy_object
- `no_decrypt_categories` (Set of String)
- `pass_through_categories` (Set of String)
- `reputation` (Boolean)
- `threshold_categories` (String)
- `url_allow_list_id` (String)
- `url_block_list_id` (String)
- `version` (Number) The version of the Policy_object
44 changes: 44 additions & 0 deletions docs/data-sources/policy_object_unified_url_filtering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_unified_url_filtering Data Source - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This data source can read the Policy Object Unified URL Filtering Policy_object.
---

# sdwan_policy_object_unified_url_filtering (Data Source)

This data source can read the Policy Object Unified URL Filtering Policy_object.

## Example Usage

```terraform
data "sdwan_policy_object_unified_url_filtering" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the Policy_object

### Read-Only

- `alerts` (Set of String)
- `block_page_action` (String)
- `block_page_contents` (String)
- `description` (String) The description of the Policy_object
- `enable_alerts` (Boolean)
- `name` (String) The name of the Policy_object
- `redirect_url` (String)
- `url_allow_list_id` (String)
- `url_block_list_id` (String)
- `version` (Number) The version of the Policy_object
- `web_categories` (Set of String)
- `web_categories_action` (String)
- `web_reputation` (String)
10 changes: 10 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ description: |-

# Changelog

## 0.5.1 (unreleased)

- Add `sdwan_policy_object_unified_advanced_malware_protection` resource and data source
- Add `sdwan_policy_object_unified_url_filtering` resource and data source
- Add `sdwan_policy_object_unified_tls_ssl_profile` resource and data source
- Add `sdwan_policy_object_unified_intrusion_prevention` resource and data source
- Add `sdwan_policy_object_unified_advanced_inspection_profile` resource and data source
- Add `sdwan_policy_object_unified_tls_ssl_decryption` resource and data source
- Add `sdwan_policy_object_security_protocol_list` resource and data source

## 0.5.0

- Add `sdwan_policy_object_application_list` resource and data source
Expand Down
62 changes: 62 additions & 0 deletions docs/resources/policy_object_security_protocol_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_policy_object_security_protocol_list Resource - terraform-provider-sdwan"
subcategory: "Policy Objects"
description: |-
This resource can manage a Policy Object Security Protocol List Policy_object.
Minimum SD-WAN Manager version: 20.12.0
---

# sdwan_policy_object_security_protocol_list (Resource)

This resource can manage a Policy Object Security Protocol List Policy_object.
- Minimum SD-WAN Manager version: `20.12.0`

## Example Usage

```terraform
resource "sdwan_policy_object_security_protocol_list" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
entries = [
{
protocol_name = "aol"
}
]
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `entries` (Attributes List) (see [below for nested schema](#nestedatt--entries))
- `feature_profile_id` (String) Feature Profile ID
- `name` (String) The name of the Policy_object

### Optional

- `description` (String) The description of the Policy_object

### Read-Only

- `id` (String) The id of the Policy_object
- `version` (Number) The version of the Policy_object

<a id="nestedatt--entries"></a>
### Nested Schema for `entries`

Optional:

- `protocol_name` (String) - Choices: `snmp`, `icmp`, `tcp`, `udp`, `echo`, `telnet`, `wins`, `n2h2server`, `nntp`, `pptp`, `rtsp`, `bootpc`, `gdoi`, `tacacs`, `gopher`, `icabrowser`, `skinny`, `sunrpc`, `biff`, `router`, `ircs`, `orasrv`, `ms-cluster-net`, `kermit`, `isakmp`, `sshell`, `realsecure`, `ircu`, `appleqtc`, `pwdgen`, `rdb-dbs-disp`, `creativepartnr`, `finger`, `ftps`, `giop`, `rsvd`, `hp-alarm-mgr`, `uucp`, `kerberos`, `imap`, `time`, `bootps`, `tftp`, `oracle`, `snmptrap`, `http`, `qmtp`, `radius`, `oracle-em-vp`, `tarantella`, `pcanywheredata`, `ldap`, `mgcp`, `sqlsrv`, `hsrp`, `cisco-net-mgmt`, `smtp`, `pcanywherestat`, `exec`, `send`, `stun`, `syslog`, `ms-sql-m`, `citrix`, `creativeserver`, `cifs`, `cisco-sys`, `cisco-tna`, `ms-dotnetster`, `gtpv1`, `gtpv0`, `imap3`, `fcip-port`, `netbios-dgm`, `sip-tls`, `pop3s`, `cisco-fna`, `802-11-iapp`, `oem-agent`, `cisco-tdp`, `tr-rsrb`, `r-winsock`, `sql-net`, `syslog-conn`, `tacacs-ds`, `h225ras`, `ace-svr`, `dhcp-failover`, `igmpv3lite`, `irc-serv`, `entrust-svcs`, `dbcontrol_agent`, `cisco-svcs`, `ipsec-msft`, `microsoft-ds`, `ms-sna`, `rsvp_tunnel`, `rsvp-encap`, `hp-collector`, `netbios-ns`, `msexch-routing`, `h323`, `l2tp`, `ldap-admin`, `pop3`, `h323callsigalt`, `ms-sql`, `iscsi-target`, `webster`, `lotusnote`, `ipx`, `entrust-svc-hand`, `citriximaclient`, `rtc-pm-port`, `ftp`, `aol`, `xdmcp`, `oraclenames`, `login`, `iscsi`, `ttc`, `imaps`, `socks`, `ssh`, `dnsix`, `daytime`, `sip`, `discard`, `ntp`, `ldaps`, `https`, `vdolive`, `ica`, `net8-cman`, `cuseeme`, `netstat`, `sms`, `streamworks`, `rtelnet`, `who`, `kazaa`, `ssp`, `dbase`, `timed`, `cddbp`, `telnets`, `ymsgr`, `ident`, `bgp`, `ddns-v3`, `vqp`, `irc`, `ipass`, `x11`, `dns`, `lotusmtap`, `mysql`, `nfs`, `msnmsgr`, `netshow`, `sqlserv`, `hp-managed-node`, `ncp`, `shell`, `realmedia`, `msrpc`, `clp`

## Import

Import is supported using the following syntax:

```shell
# Expected import identifier with the format: "policy_object_security_protocol_list_id,feature_profile_id"
terraform import sdwan_policy_object_security_protocol_list.example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
```
Loading