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 Application Priority Traffic Policy Profile Parcel #322

Open
wants to merge 8 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
159 changes: 159 additions & 0 deletions docs/data-sources/application_priority_traffic_policy_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_traffic_policy_policy Data Source - terraform-provider-sdwan"
subcategory: "Policies"
description: |-
This data source can read the Application Priority Traffic Policy Policy.
---

# sdwan_application_priority_traffic_policy_policy (Data Source)

This data source can read the Application Priority Traffic Policy Policy.

## Example Usage

```terraform
data "sdwan_application_priority_traffic_policy_policy" "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

### Read-Only

- `default_action` (String)
- `description` (String) The description of the Policy
- `direction` (String)
- `name` (String) The name of the Policy
- `sequences` (Attributes List) Traffic policy sequence list (see [below for nested schema](#nestedatt--sequences))
- `version` (Number) The version of the Policy
- `vpns` (Set of String)

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

Read-Only:

- `actions` (Attributes List) (see [below for nested schema](#nestedatt--sequences--actions))
- `base_action` (String) Base Action
- `matches` (Attributes List) (see [below for nested schema](#nestedatt--sequences--matches))
- `protocol` (String) Sequence IP Type
- `sequence_id` (Number) Sequence Id
- `sequence_name` (String) Sequence Name

<a id="nestedatt--sequences--actions"></a>
### Nested Schema for `sequences.actions`

Read-Only:

- `backup_sla_preferred_color` (Set of String) Backup SLA perferred color
- `cloud_probe` (Boolean)
- `cloud_saas` (Boolean)
- `count` (String)
- `fallback_to_routing` (Boolean)
- `log` (Boolean)
- `loss_correct_fec_threshold` (Number)
- `loss_correct_type` (String)
- `nat_bypass` (Boolean)
- `nat_dia_interface` (Set of String)
- `nat_dia_pool` (Set of Number)
- `nat_fallback` (Boolean)
- `nat_pool` (Number)
- `nat_vpn` (Boolean)
- `redirect_dns_field` (String)
- `redirect_dns_value` (String)
- `secure_internet_gateway` (Boolean)
- `set_parameters` (Attributes List) (see [below for nested schema](#nestedatt--sequences--actions--set_parameters))
- `sla_classes` (Attributes List) slaClass (see [below for nested schema](#nestedatt--sequences--actions--sla_classes))

<a id="nestedatt--sequences--actions--set_parameters"></a>
### Nested Schema for `sequences.actions.set_parameters`

Read-Only:

- `dscp` (Number)
- `forwarding_class_list_id` (String)
- `local_tloc_list_color` (Set of String)
- `local_tloc_list_encapsulation` (String)
- `local_tloc_list_restrict` (String)
- `next_hop_ipv4` (String)
- `next_hop_ipv6` (String)
- `next_hop_loose` (Boolean)
- `policer_id` (String)
- `preferred_color_group_id` (String)
- `preferred_remote_color_id` (Set of String)
- `preferred_remote_color_restrict` (String)
- `service_chain_fallback_to_routing` (Boolean)
- `service_chain_local` (Boolean)
- `service_chain_tloc_color` (Set of String)
- `service_chain_tloc_encapsulation` (String)
- `service_chain_tloc_ip` (String)
- `service_chain_tloc_list_id` (String)
- `service_chain_type` (String)
- `service_chain_vpn` (Number)
- `service_tloc_color` (Set of String)
- `service_tloc_encapsulation` (String)
- `service_tloc_ip` (String)
- `service_tloc_list_id` (String)
- `service_type` (String)
- `service_vpn` (String)
- `tloc_color` (Set of String)
- `tloc_encapsulation` (String)
- `tloc_ip` (String)
- `tloc_list_id` (String)
- `vpn` (String)


<a id="nestedatt--sequences--actions--sla_classes"></a>
### Nested Schema for `sequences.actions.sla_classes`

Read-Only:

- `fallback_to_best_path` (Boolean)
- `preferred_color` (Set of String)
- `preferred_color_group_list_id` (String)
- `preferred_remote_color` (Set of String)
- `remote_color_restrict` (Boolean)
- `sla_class_list_id` (String)
- `strict` (Boolean)



<a id="nestedatt--sequences--matches"></a>
### Nested Schema for `sequences.matches`

Read-Only:

- `application_list_id` (String)
- `destination_data_ipv4_prefix_list_id` (String)
- `destination_data_ipv6_prefix_list_id` (String)
- `destination_ipv4_prefix` (String) Destination Data IP Prefix
- `destination_ipv6_prefix` (String) Destination Data IP Prefix
- `destination_ports` (Set of String) Destination Port (0-65535) range or individual number separated by space
- `destination_region` (String) Destination Region
- `dns` (String) Dns
- `dns_application_list_id` (String)
- `dscp` (Number) DSCP number
- `icmp6_message` (Set of String) ICMP6 Message
- `icmp_message` (Set of String) ICMP Message
- `packet_length` (String) Packet Length
- `protocols` (Set of String) protocol (0-255) range or individual number separated by space
- `saas_application_list_id` (String)
- `service_area` (Set of String) M365 Service Area
- `source_data_ipv4_prefx_list_id` (String)
- `source_data_ipv6_prefx_list_id` (String)
- `source_ipv4_prefix` (String) Source Data IP Prefix
- `source_ipv6_prefix` (String) Source Data IP Prefix
- `source_ports` (Set of String) Source Port (0-65535) range or individual number separated by space
- `tcp` (String) TCP States
- `traffic_category` (String) M365 Traffic Category
- `traffic_class` (String) Traffic Class
- `traffic_to` (String) Traffic to
207 changes: 207 additions & 0 deletions docs/resources/application_priority_traffic_policy_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_traffic_policy_policy Resource - terraform-provider-sdwan"
subcategory: "Policies"
description: |-
This resource can manage a Application Priority Traffic Policy Policy.
Minimum SD-WAN Manager version: 20.12.0
---

# sdwan_application_priority_traffic_policy_policy (Resource)

This resource can manage a Application Priority Traffic Policy Policy.
- Minimum SD-WAN Manager version: `20.12.0`

## Example Usage

```terraform
resource "sdwan_application_priority_traffic_policy_policy" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
default_action = "accept"
vpns = ["Local_Internet_for_Guests"]
direction = "all"
sequences = [
{
sequence_id = 1
sequence_name = "traffic"
base_action = "accept"
protocol = "ipv4"
matches = [
{
dscp = 1
}
]
actions = [
{
set_parameters = [
{
}
]
}
]
}
]
}
```

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

### Required

- `default_action` (String) - Choices: `drop`, `accept`
- `direction` (String) - Choices: `service`, `tunnel`, `all`
- `feature_profile_id` (String) Feature Profile ID
- `name` (String) The name of the Policy
- `vpns` (Set of String)

### Optional

- `description` (String) The description of the Policy
- `sequences` (Attributes List) Traffic policy sequence list (see [below for nested schema](#nestedatt--sequences))

### Read-Only

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

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

Optional:

- `actions` (Attributes List) (see [below for nested schema](#nestedatt--sequences--actions))
- `base_action` (String) Base Action
- Choices: `drop`, `accept`
- `matches` (Attributes List) (see [below for nested schema](#nestedatt--sequences--matches))
- `protocol` (String) Sequence IP Type
- Choices: `ipv4`, `ipv6`, `all`
- `sequence_id` (Number) Sequence Id
- Range: `1`-`65536`
- `sequence_name` (String) Sequence Name

<a id="nestedatt--sequences--actions"></a>
### Nested Schema for `sequences.actions`

Optional:

- `backup_sla_preferred_color` (Set of String) Backup SLA perferred color
- `cloud_probe` (Boolean)
- `cloud_saas` (Boolean)
- `count` (String)
- `fallback_to_routing` (Boolean)
- `log` (Boolean)
- `loss_correct_fec_threshold` (Number) - Range: `1`-`5`
- `loss_correct_type` (String) - Choices: `fecAdaptive`, `fecAlways`, `packetDuplication`
- `nat_bypass` (Boolean)
- `nat_dia_interface` (Set of String)
- `nat_dia_pool` (Set of Number)
- `nat_fallback` (Boolean)
- `nat_pool` (Number) - Range: `1`-`31`
- `nat_vpn` (Boolean)
- `redirect_dns_field` (String) - Choices: `ipAddress`, `redirectDns`
- `redirect_dns_value` (String)
- `secure_internet_gateway` (Boolean)
- `set_parameters` (Attributes List) (see [below for nested schema](#nestedatt--sequences--actions--set_parameters))
- `sla_classes` (Attributes List) slaClass (see [below for nested schema](#nestedatt--sequences--actions--sla_classes))

<a id="nestedatt--sequences--actions--set_parameters"></a>
### Nested Schema for `sequences.actions.set_parameters`

Optional:

- `dscp` (Number) - Range: `0`-`63`
- `forwarding_class_list_id` (String)
- `local_tloc_list_color` (Set of String)
- `local_tloc_list_encapsulation` (String) - Choices: `ipsec`, `gre`
- `local_tloc_list_restrict` (String)
- `next_hop_ipv4` (String)
- `next_hop_ipv6` (String)
- `next_hop_loose` (Boolean)
- `policer_id` (String)
- `preferred_color_group_id` (String)
- `preferred_remote_color_id` (Set of String)
- `preferred_remote_color_restrict` (String)
- `service_chain_fallback_to_routing` (Boolean)
- `service_chain_local` (Boolean)
- `service_chain_tloc_color` (Set of String)
- `service_chain_tloc_encapsulation` (String) - Choices: `ipsec`, `gre`
- `service_chain_tloc_ip` (String)
- `service_chain_tloc_list_id` (String)
- `service_chain_type` (String) - Choices: `SC1`, `SC2`, `SC4`, `SC5`, `SC6`, `SC7`, `SC8`, `SC9`, `SC10`, `SC11`, `SC12`, `SC13`, `SC14`, `SC15`, `SC16`
- `service_chain_vpn` (Number) - Range: `0`-`65530`
- `service_tloc_color` (Set of String)
- `service_tloc_encapsulation` (String) - Choices: `ipsec`, `gre`
- `service_tloc_ip` (String)
- `service_tloc_list_id` (String)
- `service_type` (String) - Choices: `FW`, `IDS`, `IDP`, `netsvc1`, `netsvc2`, `netsvc3`, `netsvc4`, `appqoe`
- `service_vpn` (String)
- `tloc_color` (Set of String)
- `tloc_encapsulation` (String) - Choices: `ipsec`, `gre`
- `tloc_ip` (String)
- `tloc_list_id` (String)
- `vpn` (String)


<a id="nestedatt--sequences--actions--sla_classes"></a>
### Nested Schema for `sequences.actions.sla_classes`

Optional:

- `fallback_to_best_path` (Boolean)
- `preferred_color` (Set of String)
- `preferred_color_group_list_id` (String)
- `preferred_remote_color` (Set of String)
- `remote_color_restrict` (Boolean)
- `sla_class_list_id` (String)
- `strict` (Boolean)



<a id="nestedatt--sequences--matches"></a>
### Nested Schema for `sequences.matches`

Optional:

- `application_list_id` (String)
- `destination_data_ipv4_prefix_list_id` (String)
- `destination_data_ipv6_prefix_list_id` (String)
- `destination_ipv4_prefix` (String) Destination Data IP Prefix
- `destination_ipv6_prefix` (String) Destination Data IP Prefix
- `destination_ports` (Set of String) Destination Port (0-65535) range or individual number separated by space
- `destination_region` (String) Destination Region
- Choices: `primary-region`, `secondary-region`, `other-region`
- `dns` (String) Dns
- Choices: `request`, `response`
- `dns_application_list_id` (String)
- `dscp` (Number) DSCP number
- Range: `0`-`63`
- `icmp6_message` (Set of String) ICMP6 Message
- `icmp_message` (Set of String) ICMP Message
- `packet_length` (String) Packet Length
- `protocols` (Set of String) protocol (0-255) range or individual number separated by space
- `saas_application_list_id` (String)
- `service_area` (Set of String) M365 Service Area
- `source_data_ipv4_prefx_list_id` (String)
- `source_data_ipv6_prefx_list_id` (String)
- `source_ipv4_prefix` (String) Source Data IP Prefix
- `source_ipv6_prefix` (String) Source Data IP Prefix
- `source_ports` (Set of String) Source Port (0-65535) range or individual number separated by space
- `tcp` (String) TCP States
- Choices: `syn`
- `traffic_category` (String) M365 Traffic Category
- Choices: `optimize-allow`, `optimize`, `all`
- `traffic_class` (String) Traffic Class
- Choices: `gold-voip-telephony`, `gold-broadcast-video`, `gold-real-time-interactive`, `gold-multimedia-conferencing`, `gold-multimedia-streaming`, `gold-network-control`, `gold-signaling`, `gold-ops-admin-mgmt`, `gold-transactional-data`, `gold-bulk-data`, `silver`, `bronze`
- `traffic_to` (String) Traffic to
- Choices: `core`, `service`, `access`

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_application_priority_traffic_policy_policy.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "sdwan_application_priority_traffic_policy_policy" "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_application_priority_traffic_policy_policy.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Loading
Loading