-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ipv6 device acl policy definition resource
- Loading branch information
Showing
15 changed files
with
1,407 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_ipv6_device_acl_policy_definition Data Source - terraform-provider-sdwan" | ||
subcategory: "Localized Policies" | ||
description: |- | ||
This data source can read the IPv6 Device ACL Policy Definition . | ||
--- | ||
|
||
# sdwan_ipv6_device_acl_policy_definition (Data Source) | ||
|
||
This data source can read the IPv6 Device ACL Policy Definition . | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sdwan_ipv6_device_acl_policy_definition" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The id of the object | ||
|
||
### Read-Only | ||
|
||
- `default_action` (String) Default action, either `accept` or `drop` | ||
- `description` (String) The description of the policy definition | ||
- `name` (String) The name of the policy definition | ||
- `sequences` (Attributes List) List of ACL sequences (see [below for nested schema](#nestedatt--sequences)) | ||
- `version` (Number) The version of the object | ||
|
||
<a id="nestedatt--sequences"></a> | ||
### Nested Schema for `sequences` | ||
|
||
Read-Only: | ||
|
||
- `action_entries` (Attributes List) List of action entries (see [below for nested schema](#nestedatt--sequences--action_entries)) | ||
- `base_action` (String) Base action, either `accept` or `drop` | ||
- `id` (Number) Sequence ID | ||
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries)) | ||
- `name` (String) Sequence name | ||
|
||
<a id="nestedatt--sequences--action_entries"></a> | ||
### Nested Schema for `sequences.action_entries` | ||
|
||
Read-Only: | ||
|
||
- `counter_name` (String) Counter name | ||
- `type` (String) Type of action entry | ||
|
||
|
||
<a id="nestedatt--sequences--match_entries"></a> | ||
### Nested Schema for `sequences.match_entries` | ||
|
||
Read-Only: | ||
|
||
- `destination_data_ipv6_prefix_list_id` (String) Destination data IPv6 prefix list ID | ||
- `destination_data_ipv6_prefix_list_version` (Number) Destination data IPv6 prefix list version | ||
- `destination_ip` (String) Destination IP prefix | ||
- `destination_port` (Number) Destination port, only `22` and `161` supported | ||
- `source_data_ipv6_prefix_list_id` (String) Source data IPv6 prefix list ID | ||
- `source_data_ipv6_prefix_list_version` (Number) Source data IPv6 prefix list version | ||
- `source_ip` (String) Source IP prefix | ||
- `source_port` (Number) Source port | ||
- `type` (String) Type of match entry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_ipv6_device_acl_policy_definition Resource - terraform-provider-sdwan" | ||
subcategory: "Localized Policies" | ||
description: |- | ||
This resource can manage a IPv6 Device ACL Policy Definition . | ||
--- | ||
|
||
# sdwan_ipv6_device_acl_policy_definition (Resource) | ||
|
||
This resource can manage a IPv6 Device ACL Policy Definition . | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "sdwan_ipv6_device_acl_policy_definition" "example" { | ||
name = "Example" | ||
description = "My description" | ||
default_action = "drop" | ||
sequences = [ | ||
{ | ||
id = 10 | ||
name = "Sequence 10" | ||
base_action = "accept" | ||
match_entries = [ | ||
{ | ||
type = "destinationPort" | ||
destination_port = 22 | ||
} | ||
] | ||
action_entries = [ | ||
{ | ||
type = "count" | ||
counter_name = "count1" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `description` (String) The description of the policy definition | ||
- `name` (String) The name of the policy definition | ||
- `sequences` (Attributes List) List of ACL sequences (see [below for nested schema](#nestedatt--sequences)) | ||
|
||
### Optional | ||
|
||
- `default_action` (String) Default action, either `accept` or `drop` | ||
- Choices: `accept`, `drop` | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
- `version` (Number) The version of the object | ||
|
||
<a id="nestedatt--sequences"></a> | ||
### Nested Schema for `sequences` | ||
|
||
Required: | ||
|
||
- `id` (Number) Sequence ID | ||
- Range: `1`-`65534` | ||
- `name` (String) Sequence name | ||
|
||
Optional: | ||
|
||
- `action_entries` (Attributes List) List of action entries (see [below for nested schema](#nestedatt--sequences--action_entries)) | ||
- `base_action` (String) Base action, either `accept` or `drop` | ||
- Choices: `accept`, `drop` | ||
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries)) | ||
|
||
<a id="nestedatt--sequences--action_entries"></a> | ||
### Nested Schema for `sequences.action_entries` | ||
|
||
Required: | ||
|
||
- `type` (String) Type of action entry | ||
- Choices: `count` | ||
|
||
Optional: | ||
|
||
- `counter_name` (String) Counter name | ||
|
||
|
||
<a id="nestedatt--sequences--match_entries"></a> | ||
### Nested Schema for `sequences.match_entries` | ||
|
||
Required: | ||
|
||
- `type` (String) Type of match entry | ||
- Choices: `sourceIpv6`, `destinationIpv6`, `sourcePort`, `destinationPort`, `sourceDataIpv6PrefixList`, `destinationDataIpv6PrefixList` | ||
|
||
Optional: | ||
|
||
- `destination_data_ipv6_prefix_list_id` (String) Destination data IPv6 prefix list ID | ||
- `destination_data_ipv6_prefix_list_version` (Number) Destination data IPv6 prefix list version | ||
- `destination_ip` (String) Destination IP prefix | ||
- `destination_port` (Number) Destination port, only `22` and `161` supported | ||
- Range: `0`-`65535` | ||
- `source_data_ipv6_prefix_list_id` (String) Source data IPv6 prefix list ID | ||
- `source_data_ipv6_prefix_list_version` (Number) Source data IPv6 prefix list version | ||
- `source_ip` (String) Source IP prefix | ||
- `source_port` (Number) Source port | ||
- Range: `0`-`65535` | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import sdwan_ipv6_device_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
``` |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/sdwan_ipv6_device_acl_policy_definition/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "sdwan_ipv6_device_acl_policy_definition" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/sdwan_ipv6_device_acl_policy_definition/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import sdwan_ipv6_device_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd" |
24 changes: 24 additions & 0 deletions
24
examples/resources/sdwan_ipv6_device_acl_policy_definition/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "sdwan_ipv6_device_acl_policy_definition" "example" { | ||
name = "Example" | ||
description = "My description" | ||
default_action = "drop" | ||
sequences = [ | ||
{ | ||
id = 10 | ||
name = "Sequence 10" | ||
base_action = "accept" | ||
match_entries = [ | ||
{ | ||
type = "destinationPort" | ||
destination_port = 22 | ||
} | ||
] | ||
action_entries = [ | ||
{ | ||
type = "count" | ||
counter_name = "count1" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.