Skip to content

Commit

Permalink
Appliance Static Routing Resource #182
Browse files Browse the repository at this point in the history
  • Loading branch information
fmunozmiranda committed Nov 27, 2024
1 parent b260343 commit d75b661
Show file tree
Hide file tree
Showing 15 changed files with 1,137 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

data "meraki_networks_appliance_static_routes" "example" {
provider = meraki
network_id = "string"
}

output "meraki_networks_appliance_static_routes_example" {
value = data.meraki_networks_appliance_static_routes.example.items
}

data "meraki_networks_appliance_static_routes" "example" {
provider = meraki
network_id = "string"
}

output "meraki_networks_appliance_static_routes_example" {
value = data.meraki_networks_appliance_static_routes.example.item
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import meraki_networks_appliance_static_routes.example "network_id,static_route_id"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

resource "meraki_networks_appliance_static_routes" "example" {
provider = meraki
gateway_ip = "1.2.3.5"
name = "My route"
network_id = "string"
subnet = "192.168.1.0/24"
}

output "meraki_networks_appliance_static_routes_example" {
value = meraki_networks_appliance_static_routes.example
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ resource "meraki_networks_appliance_traffic_shaping_rules" "example" {

type = "host"
value = "google.com" #if type is ('host', 'port', 'ipRange' or 'localNet')
},
{
type = "host"
value_obj ={
id= "string"
name= "string"
}# if type is ('application' or 'applicationCategory')
},
{
type = "host"
value_obj = {
id = "string"
name = "string"
} # if type is ('application' or 'applicationCategory')
}]
dscp_tag_value = 1
per_client_bandwidth_limits = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {


provider "meraki" {
meraki_debug = "true"
meraki_debug = "true"
meraki_base_url = "http://localhost:3001"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data "meraki_organizations_policy_objects_groups" "example" {

# ending_before = "string"
# organization_id = "string"
per_page = 1
per_page = 1
# starting_after = "string"
}

Expand Down
8 changes: 4 additions & 4 deletions examples/samples/resources/example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@ resource "meraki_networks_wireless_ssids_firewall_l3_firewall_rules" "test-Terra
dest_port = "any"
policy = "allow"
protocol = "any"
ip_ver = "ipv4"
ip_ver = "ipv4"
},
{
# comment = ""
dest_cidr = "0.0.0.0/12"
dest_port = "any"
policy = "deny"
protocol = "any"
ip_ver = "ipv4"
ip_ver = "ipv4"
},
{
# comment = ""
dest_cidr = "0.0.0.0/16"
dest_port = "any"
policy = "deny"
protocol = "any"
ip_ver = "ipv4"
ip_ver = "ipv4"
},
{
# comment = ""
dest_cidr = "10.0.0.0/8"
dest_port = "any"
policy = "deny"
protocol = "any"
ip_ver = "ipv4"
ip_ver = "ipv4"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import meraki_networks_appliance_static_routes.example "network_id,static_route_id"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

resource "meraki_networks_appliance_static_routes" "example" {
provider = meraki
gateway_ip = "1.2.3.5"
name = "My route"
network_id = "string"
subnet = "192.168.1.0/24"
}

output "meraki_networks_appliance_static_routes_example" {
value = meraki_networks_appliance_static_routes.example
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ provider "meraki" {
resource "meraki_networks_appliance_traffic_shaping_rules" "example" {
default_rules_enabled = true
network_id = "L_828099381482775486"

rules = [{
definitions = [
{
Expand All @@ -40,7 +40,7 @@ resource "meraki_networks_appliance_traffic_shaping_rules" "example" {
settings = "custom"
}
priority = "high"
}, {
}, {
definitions = [
{
type = "host"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ terraform {
source = "hashicorp.com/edu/meraki"
}
}
}
}


provider "meraki" {
meraki_debug = "true"
meraki_debug = "true"
meraki_base_url = "http://localhost:3001"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
source = "hashicorp.com/edu/meraki"
}
}
}
}

provider "meraki" {
meraki_debug = "true"
Expand Down
Loading

0 comments on commit d75b661

Please sign in to comment.