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

Add system global profile parcel resource and data source #128

Merged
merged 2 commits into from
Dec 19, 2023
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- BREAKING CHANGE: Convert `protocol`, `source_port`, `destination_port` attributes of `sdwan_traffic_data_policy_definition` to strings to support multiple values
- Fix issue with `sdwan_traffic_data_policy_definition` not supporting local and restrict options
- Add `sdwan_dns_security_policy_definition` resource and data source
- Add `sdwan_system_global_profile_parcel` resource and data source

## 0.2.11

Expand Down
80 changes: 80 additions & 0 deletions docs/data-sources/system_global_profile_parcel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_system_global_profile_parcel Data Source - terraform-provider-sdwan"
subcategory: "Profile Parcels"
description: |-
This data source can read the System Global profile parcel.
---

# sdwan_system_global_profile_parcel (Data Source)

This data source can read the System Global profile parcel.

## Example Usage

```terraform
data "sdwan_system_global_profile_parcel" "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 profile parcel

### Read-Only

- `description` (String) The description of the profile parcel
- `global_other_settings_console_logging` (Boolean) Configure Console Logging
- `global_other_settings_console_logging_variable` (String) Variable name
- `global_other_settings_i_p_source_route` (Boolean) Set Source Route
- `global_other_settings_i_p_source_route_variable` (String) Variable name
- `global_other_settings_ignore_bootp` (Boolean) Configure Ignore BOOTP
- `global_other_settings_ignore_bootp_variable` (String) Variable name
- `global_other_settings_snmp_ifindex_persist` (Boolean) Configure SNMP Ifindex Persist
- `global_other_settings_snmp_ifindex_persist_variable` (String) Variable name
- `global_other_settings_tcp_keepalives_in` (Boolean) Configure tcp-keepalives-in
- `global_other_settings_tcp_keepalives_in_variable` (String) Variable name
- `global_other_settings_tcp_keepalives_out` (Boolean) Configure tcp-keepalives-out
- `global_other_settings_tcp_keepalives_out_variable` (String) Variable name
- `global_other_settings_tcp_small_servers` (Boolean) Configure tcp-small-servers
- `global_other_settings_tcp_small_servers_variable` (String) Variable name
- `global_other_settings_udp_small_servers` (Boolean) Configure udp-small-servers
- `global_other_settings_udp_small_servers_variable` (String) Variable name
- `global_other_settings_vty_line_logging` (Boolean) Configure VTY Line Logging
- `global_other_settings_vty_line_logging_variable` (String) Variable name
- `global_settings_http_authentication` (String) Set preference for HTTP Authentication
- `global_settings_http_authentication_variable` (String) Variable name
- `global_settings_nat64_tcp_timeout` (Number) Set NAT64 TCP session timeout, in seconds
- `global_settings_nat64_tcp_timeout_variable` (String) Variable name
- `global_settings_nat64_udp_timeout` (Number) Set NAT64 UDP session timeout, in seconds
- `global_settings_nat64_udp_timeout_variable` (String) Variable name
- `global_settings_s_s_h_version` (String) Set SSH version
- `global_settings_s_s_h_version_variable` (String) Variable name
- `name` (String) The name of the profile parcel
- `services_global_services_ip_arp_proxy` (Boolean) Set ARP Proxy
- `services_global_services_ip_arp_proxy_variable` (String) Variable name
- `services_global_services_ip_cdp` (Boolean) Configure CDP
- `services_global_services_ip_cdp_variable` (String) Variable name
- `services_global_services_ip_domain_lookup` (Boolean) Configure Domain-Lookup
- `services_global_services_ip_domain_lookup_variable` (String) Variable name
- `services_global_services_ip_ftp_passive` (Boolean) Set Passive FTP
- `services_global_services_ip_ftp_passive_variable` (String) Variable name
- `services_global_services_ip_http_server` (Boolean) Set a HTTP Server
- `services_global_services_ip_http_server_variable` (String) Variable name
- `services_global_services_ip_https_server` (Boolean) Set a HTTPS Server
- `services_global_services_ip_https_server_variable` (String) Variable name
- `services_global_services_ip_line_vty` (Boolean) Configure Telnet (Outbound)
- `services_global_services_ip_line_vty_variable` (String) Variable name
- `services_global_services_ip_lldp` (Boolean) Configure LLDP
- `services_global_services_ip_lldp_variable` (String) Variable name
- `services_global_services_ip_rcmd` (Boolean) Set RSH/RCP
- `services_global_services_ip_rcmd_variable` (String) Variable name
- `services_global_services_ip_source_intrf` (String) Specify interface for source address in all HTTP(S) client connections
- `services_global_services_ip_source_intrf_variable` (String) Variable name
- `version` (Number) The version of the profile parcel
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ description: |-
- BREAKING CHANGE: Convert `protocol`, `source_port`, `destination_port` attributes of `sdwan_traffic_data_policy_definition` to strings to support multiple values
- Fix issue with `sdwan_traffic_data_policy_definition` not supporting local and restrict options
- Add `sdwan_dns_security_policy_definition` resource and data source
- Add `sdwan_system_global_profile_parcel` resource and data source

## 0.2.11

Expand Down
141 changes: 141 additions & 0 deletions docs/resources/system_global_profile_parcel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_system_global_profile_parcel Resource - terraform-provider-sdwan"
subcategory: "Profile Parcels"
description: |-
This resource can manage a System Global profile parcel.
- Minimum SD-WAN Manager version: 20.9.0
---

# sdwan_system_global_profile_parcel (Resource)

This resource can manage a System Global profile parcel.
- Minimum SD-WAN Manager version: `20.9.0`

## Example Usage

```terraform
resource "sdwan_system_global_profile_parcel" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
services_global_services_ip_http_server = false
services_global_services_ip_https_server = false
services_global_services_ip_ftp_passive = false
services_global_services_ip_domain_lookup = false
services_global_services_ip_arp_proxy = false
services_global_services_ip_rcmd = false
services_global_services_ip_line_vty = false
services_global_services_ip_cdp = true
services_global_services_ip_lldp = true
services_global_services_ip_source_intrf = "GigabitEthernet0/0/1"
global_other_settings_tcp_keepalives_in = true
global_other_settings_tcp_keepalives_out = true
global_other_settings_tcp_small_servers = false
global_other_settings_udp_small_servers = false
global_other_settings_console_logging = true
global_other_settings_i_p_source_route = false
global_other_settings_vty_line_logging = false
global_other_settings_snmp_ifindex_persist = true
global_other_settings_ignore_bootp = true
global_settings_nat64_udp_timeout = 300
global_settings_nat64_tcp_timeout = 3600
global_settings_http_authentication = "aaa"
global_settings_s_s_h_version = "2"
}
```

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

### Required

- `description` (String) The description of the profile parcel
- `name` (String) The name of the profile parcel

### Optional

- `feature_profile_id` (String) Feature Profile ID
- `global_other_settings_console_logging` (Boolean) Configure Console Logging
- Default value: `true`
- `global_other_settings_console_logging_variable` (String) Variable name
- `global_other_settings_i_p_source_route` (Boolean) Set Source Route
- Default value: `false`
- `global_other_settings_i_p_source_route_variable` (String) Variable name
- `global_other_settings_ignore_bootp` (Boolean) Configure Ignore BOOTP
- Default value: `true`
- `global_other_settings_ignore_bootp_variable` (String) Variable name
- `global_other_settings_snmp_ifindex_persist` (Boolean) Configure SNMP Ifindex Persist
- Default value: `true`
- `global_other_settings_snmp_ifindex_persist_variable` (String) Variable name
- `global_other_settings_tcp_keepalives_in` (Boolean) Configure tcp-keepalives-in
- Default value: `true`
- `global_other_settings_tcp_keepalives_in_variable` (String) Variable name
- `global_other_settings_tcp_keepalives_out` (Boolean) Configure tcp-keepalives-out
- Default value: `true`
- `global_other_settings_tcp_keepalives_out_variable` (String) Variable name
- `global_other_settings_tcp_small_servers` (Boolean) Configure tcp-small-servers
- Default value: `false`
- `global_other_settings_tcp_small_servers_variable` (String) Variable name
- `global_other_settings_udp_small_servers` (Boolean) Configure udp-small-servers
- Default value: `false`
- `global_other_settings_udp_small_servers_variable` (String) Variable name
- `global_other_settings_vty_line_logging` (Boolean) Configure VTY Line Logging
- Default value: `false`
- `global_other_settings_vty_line_logging_variable` (String) Variable name
- `global_settings_http_authentication` (String) Set preference for HTTP Authentication
- Choices: `local`, `aaa`
- `global_settings_http_authentication_variable` (String) Variable name
- `global_settings_nat64_tcp_timeout` (Number) Set NAT64 TCP session timeout, in seconds
- Range: `1`-`536870`
- Default value: `3600`
- `global_settings_nat64_tcp_timeout_variable` (String) Variable name
- `global_settings_nat64_udp_timeout` (Number) Set NAT64 UDP session timeout, in seconds
- Range: `1`-`536870`
- Default value: `300`
- `global_settings_nat64_udp_timeout_variable` (String) Variable name
- `global_settings_s_s_h_version` (String) Set SSH version
- Choices: `2`
- `global_settings_s_s_h_version_variable` (String) Variable name
- `services_global_services_ip_arp_proxy` (Boolean) Set ARP Proxy
- Default value: `false`
- `services_global_services_ip_arp_proxy_variable` (String) Variable name
- `services_global_services_ip_cdp` (Boolean) Configure CDP
- Default value: `true`
- `services_global_services_ip_cdp_variable` (String) Variable name
- `services_global_services_ip_domain_lookup` (Boolean) Configure Domain-Lookup
- Default value: `false`
- `services_global_services_ip_domain_lookup_variable` (String) Variable name
- `services_global_services_ip_ftp_passive` (Boolean) Set Passive FTP
- Default value: `false`
- `services_global_services_ip_ftp_passive_variable` (String) Variable name
- `services_global_services_ip_http_server` (Boolean) Set a HTTP Server
- Default value: `false`
- `services_global_services_ip_http_server_variable` (String) Variable name
- `services_global_services_ip_https_server` (Boolean) Set a HTTPS Server
- Default value: `false`
- `services_global_services_ip_https_server_variable` (String) Variable name
- `services_global_services_ip_line_vty` (Boolean) Configure Telnet (Outbound)
- Default value: `false`
- `services_global_services_ip_line_vty_variable` (String) Variable name
- `services_global_services_ip_lldp` (Boolean) Configure LLDP
- Default value: `true`
- `services_global_services_ip_lldp_variable` (String) Variable name
- `services_global_services_ip_rcmd` (Boolean) Set RSH/RCP
- Default value: `false`
- `services_global_services_ip_rcmd_variable` (String) Variable name
- `services_global_services_ip_source_intrf` (String) Specify interface for source address in all HTTP(S) client connections
- `services_global_services_ip_source_intrf_variable` (String) Variable name

### Read-Only

- `id` (String) The id of the profile parcel
- `version` (Number) The version of the profile parcel

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_system_global_profile_parcel.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "sdwan_system_global_profile_parcel" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import sdwan_system_global_profile_parcel.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
28 changes: 28 additions & 0 deletions examples/resources/sdwan_system_global_profile_parcel/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
resource "sdwan_system_global_profile_parcel" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
services_global_services_ip_http_server = false
services_global_services_ip_https_server = false
services_global_services_ip_ftp_passive = false
services_global_services_ip_domain_lookup = false
services_global_services_ip_arp_proxy = false
services_global_services_ip_rcmd = false
services_global_services_ip_line_vty = false
services_global_services_ip_cdp = true
services_global_services_ip_lldp = true
services_global_services_ip_source_intrf = "GigabitEthernet0/0/1"
global_other_settings_tcp_keepalives_in = true
global_other_settings_tcp_keepalives_out = true
global_other_settings_tcp_small_servers = false
global_other_settings_udp_small_servers = false
global_other_settings_console_logging = true
global_other_settings_i_p_source_route = false
global_other_settings_vty_line_logging = false
global_other_settings_snmp_ifindex_persist = true
global_other_settings_ignore_bootp = true
global_settings_nat64_udp_timeout = 300
global_settings_nat64_tcp_timeout = 3600
global_settings_http_authentication = "aaa"
global_settings_s_s_h_version = "2"
}
86 changes: 86 additions & 0 deletions gen/definitions/profile_parcels/system_global.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
name: System Global
rest_endpoint: /v1/feature-profile/sdwan/system/%v/global
minimum_version: 20.9.0
attributes:
- tf_name: feature_profile_id
reference: true
type: String
description: Feature Profile ID
example: f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac
test_value: sdwan_system_feature_profile.test.id
- model_name: servicesGlobalServicesIpHttpServer
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpHttpsServer
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpFtpPassive
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpDomainLookup
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpArpProxy
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpRcmd
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpLineVty
data_path: [services_global, services_ip]
example: false
- model_name: servicesGlobalServicesIpCdp
data_path: [services_global, services_ip]
example: true
- model_name: servicesGlobalServicesIpLldp
data_path: [services_global, services_ip]
example: true
- model_name: servicesGlobalServicesIpSourceIntrf
data_path: [services_global, services_ip]
example: GigabitEthernet0/0/1
- model_name: globalOtherSettingsTcpKeepalivesIn
data_path: [services_global, services_ip]
example: true
- model_name: globalOtherSettingsTcpKeepalivesOut
data_path: [services_global, services_ip]
example: true
- model_name: globalOtherSettingsTcpSmallServers
data_path: [services_global, services_ip]
example: false
- model_name: globalOtherSettingsUdpSmallServers
data_path: [services_global, services_ip]
example: false
- model_name: globalOtherSettingsConsoleLogging
data_path: [services_global, services_ip]
example: true
- model_name: globalOtherSettingsIPSourceRoute
data_path: [services_global, services_ip]
example: false
- model_name: globalOtherSettingsVtyLineLogging
data_path: [services_global, services_ip]
example: false
- model_name: globalOtherSettingsSnmpIfindexPersist
data_path: [services_global, services_ip]
example: true
- model_name: globalOtherSettingsIgnoreBootp
data_path: [services_global, services_ip]
example: true
- model_name: globalSettingsNat64UdpTimeout
data_path: [services_global, services_ip]
example: 300
- model_name: globalSettingsNat64TcpTimeout
data_path: [services_global, services_ip]
example: 3600
- model_name: globalSettingsHttpAuthentication
data_path: [services_global, services_ip]
example: "aaa"
- model_name: globalSettingsSSHVersion
data_path: [services_global, services_ip]
example: "2"

test_prerequisites: |
resource "sdwan_system_feature_profile" "test" {
name = "TF_TEST"
description = "Terraform test"
}
Loading