-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcin Parafiniuk
committed
Sep 6, 2024
1 parent
62b9a27
commit f5b3aa1
Showing
29 changed files
with
1,307 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "meraki_network_group_policies Data Source - terraform-provider-meraki" | ||
subcategory: "Networks" | ||
description: |- | ||
This data source can read the Network Group Policies configuration. | ||
--- | ||
|
||
# meraki_network_group_policies (Data Source) | ||
|
||
This data source can read the `Network Group Policies` configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "meraki_network_group_policies" "example" { | ||
id = "L_123456" | ||
network_id = "L_123456" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `network_id` (String) Network ID | ||
|
||
### Optional | ||
|
||
- `group_policy_id` (String) The id of the object | ||
- `name` (String) | ||
|
||
### Read-Only | ||
|
||
- `bonjour_forwarding_rules` (Attributes List) (see [below for nested schema](#nestedatt--bonjour_forwarding_rules)) | ||
- `bonjour_forwarding_settings` (String) | ||
|
||
<a id="nestedatt--bonjour_forwarding_rules"></a> | ||
### Nested Schema for `bonjour_forwarding_rules` | ||
|
||
Read-Only: | ||
|
||
- `description` (String) | ||
- `services` (List of String) | ||
- `vlan_id` (String) |
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,62 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "meraki_network_group_policies Resource - terraform-provider-meraki" | ||
subcategory: "Networks" | ||
description: |- | ||
This resource can manage the Network Group Policies configuration. | ||
--- | ||
|
||
# meraki_network_group_policies (Resource) | ||
|
||
This resource can manage the `Network Group Policies` configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "meraki_network_group_policies" "example" { | ||
network_id = "L_123456" | ||
name = "test_group_policy" | ||
bonjour_forwarding_settings = "custom" | ||
bonjour_forwarding_rules = [ | ||
{ | ||
description = "" | ||
services = [""] | ||
vlan_id = "" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) | ||
- `network_id` (String) Network ID | ||
|
||
### Optional | ||
|
||
- `bonjour_forwarding_rules` (Attributes List) (see [below for nested schema](#nestedatt--bonjour_forwarding_rules)) | ||
- `bonjour_forwarding_settings` (String) | ||
|
||
### Read-Only | ||
|
||
- `group_policy_id` (String) The id of the object | ||
|
||
<a id="nestedatt--bonjour_forwarding_rules"></a> | ||
### Nested Schema for `bonjour_forwarding_rules` | ||
|
||
Optional: | ||
|
||
- `description` (String) | ||
- `services` (List of String) | ||
- `vlan_id` (String) | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import meraki_network_group_policies.example "<network_id>" | ||
``` |
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
4 changes: 4 additions & 0 deletions
4
examples/data-sources/meraki_network_group_policies/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,4 @@ | ||
data "meraki_network_group_policies" "example" { | ||
id = "L_123456" | ||
network_id = "L_123456" | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
data "meraki_network_settings" "example" { | ||
id = "12345678" | ||
id = "L_123456" | ||
network_id = "L_123456" | ||
} |
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 meraki_network_group_policies.example "<network_id>" |
12 changes: 12 additions & 0 deletions
12
examples/resources/meraki_network_group_policies/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,12 @@ | ||
resource "meraki_network_group_policies" "example" { | ||
network_id = "L_123456" | ||
name = "test_group_policy" | ||
bonjour_forwarding_settings = "custom" | ||
bonjour_forwarding_rules = [ | ||
{ | ||
description = "" | ||
services = [""] | ||
vlan_id = "" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
terraform import meraki_network_settings.example "<network_id>,<id>" | ||
terraform import meraki_network_settings.example "<network_id>" |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
resource "meraki_network_settings" "example" { | ||
network_id = "L_123456" | ||
local_status_page_enabled = false | ||
network_id = "L_123456" | ||
local_status_page_enabled = false | ||
remote_status_page_enabled = false | ||
local_status_page_authentication_enabled = false | ||
local_status_page_authentication_password = "miles123" | ||
named_vlans_enabled = false | ||
secure_port_enabled = false | ||
} |
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,47 @@ | ||
--- | ||
name: Network Group Policies | ||
rest_endpoint: /networks/%v/groupPolicies | ||
doc_category: Networks | ||
id_name: group_policy_id | ||
data_source_name_query: true | ||
attributes: | ||
- tf_name: network_id | ||
type: String | ||
id: true | ||
reference: true | ||
description: Network ID | ||
example: L_123456 | ||
test_value: meraki_network.test.id | ||
- model_name: name | ||
type: String | ||
mandatory: true | ||
example: test_group_policy | ||
- model_name: settings | ||
data_path: [bonjourForwarding] | ||
type: String | ||
example: custom | ||
- model_name: rules | ||
data_path: [bonjourForwarding] | ||
type: List | ||
attributes: | ||
- model_name: description | ||
type: String | ||
- model_name: services | ||
type: List | ||
element_type: String | ||
- model_name: vlanId | ||
type: String | ||
|
||
|
||
|
||
|
||
|
||
test_prerequisites: | | ||
data "meraki_organization" "test" { | ||
name = "Dev" | ||
} | ||
resource "meraki_network" "test" { | ||
organization_id = data.meraki_organization.test.id | ||
name = "Network1" | ||
product_types = ["switch"] | ||
} |
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
Oops, something went wrong.