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 4a09db9 commit b260343
Show file tree
Hide file tree
Showing 2 changed files with 217 additions and 0 deletions.
132 changes: 132 additions & 0 deletions docs/data-sources/networks_appliance_static_routes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "meraki_networks_appliance_static_routes Data Source - terraform-provider-meraki"
subcategory: ""
description: |-
---

# meraki_networks_appliance_static_routes (Data Source)



## Example Usage

```terraform
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
}
```

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

### Optional

- `network_id` (String) networkId path parameter. Network ID
- `static_route_id` (String) staticRouteId path parameter. Static route ID

### Read-Only

- `item` (Attributes) (see [below for nested schema](#nestedatt--item))
- `items` (Attributes List) Array of ResponseApplianceGetNetworkApplianceStaticRoutes (see [below for nested schema](#nestedatt--items))

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

Read-Only:

- `enabled` (Boolean)
- `fixed_ip_assignments` (Attributes) (see [below for nested schema](#nestedatt--item--fixed_ip_assignments))
- `gateway_ip` (String)
- `gateway_vlan_id` (Number)
- `id` (String)
- `ip_version` (Number)
- `name` (String)
- `network_id` (String)
- `reserved_ip_ranges` (Attributes Set) (see [below for nested schema](#nestedatt--item--reserved_ip_ranges))
- `subnet` (String)

<a id="nestedatt--item--fixed_ip_assignments"></a>
### Nested Schema for `item.fixed_ip_assignments`

Read-Only:

- `attribute_22_33_44_55_66_77` (Attributes) (see [below for nested schema](#nestedatt--item--fixed_ip_assignments--attribute_22_33_44_55_66_77))

<a id="nestedatt--item--fixed_ip_assignments--attribute_22_33_44_55_66_77"></a>
### Nested Schema for `item.fixed_ip_assignments.attribute_22_33_44_55_66_77`

Read-Only:

- `ip` (String)
- `name` (String)



<a id="nestedatt--item--reserved_ip_ranges"></a>
### Nested Schema for `item.reserved_ip_ranges`

Read-Only:

- `comment` (String)
- `end` (String)
- `start` (String)



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

Read-Only:

- `enabled` (Boolean)
- `fixed_ip_assignments` (Attributes) (see [below for nested schema](#nestedatt--items--fixed_ip_assignments))
- `gateway_ip` (String)
- `gateway_vlan_id` (Number)
- `id` (String)
- `ip_version` (Number)
- `name` (String)
- `network_id` (String)
- `reserved_ip_ranges` (Attributes Set) (see [below for nested schema](#nestedatt--items--reserved_ip_ranges))
- `subnet` (String)

<a id="nestedatt--items--fixed_ip_assignments"></a>
### Nested Schema for `items.fixed_ip_assignments`

Read-Only:

- `attribute_22_33_44_55_66_77` (Attributes) (see [below for nested schema](#nestedatt--items--fixed_ip_assignments--attribute_22_33_44_55_66_77))

<a id="nestedatt--items--fixed_ip_assignments--attribute_22_33_44_55_66_77"></a>
### Nested Schema for `items.fixed_ip_assignments.attribute_22_33_44_55_66_77`

Read-Only:

- `ip` (String)
- `name` (String)



<a id="nestedatt--items--reserved_ip_ranges"></a>
### Nested Schema for `items.reserved_ip_ranges`

Read-Only:

- `comment` (String)
- `end` (String)
- `start` (String)
85 changes: 85 additions & 0 deletions docs/resources/networks_appliance_static_routes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "meraki_networks_appliance_static_routes Resource - terraform-provider-meraki"
subcategory: ""
description: |-
---

# meraki_networks_appliance_static_routes (Resource)



## Example Usage

```terraform
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
}
```

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

### Required

- `network_id` (String) networkId path parameter. Network ID

### Optional

- `enabled` (Boolean) The enabled state of the static route
- `fixed_ip_assignments` (Attributes) The DHCP fixed IP assignments on the static route. This should be an object that contains mappings from MAC addresses to objects that themselves each contain "ip" and "name" string fields. See the sample request/response for more details. (see [below for nested schema](#nestedatt--fixed_ip_assignments))
- `gateway_ip` (String) The gateway IP (next hop) of the static route
- `gateway_vlan_id` (Number) The gateway IP (next hop) VLAN ID of the static route
- `gateway_vlan_id_rs` (String) The gateway IP (next hop) VLAN ID of the static route
- `name` (String) The name of the new static route
- `reserved_ip_ranges` (Attributes Set) The DHCP reserved IP ranges on the static route (see [below for nested schema](#nestedatt--reserved_ip_ranges))
- `static_route_id` (String) staticRouteId path parameter. Static route ID
- `subnet` (String) The subnet of the static route

### Read-Only

- `id` (String) The ID of this resource.
- `ip_version` (Number)

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

Read-Only:

- `attribute_22_33_44_55_66_77` (Attributes) (see [below for nested schema](#nestedatt--fixed_ip_assignments--attribute_22_33_44_55_66_77))

<a id="nestedatt--fixed_ip_assignments--attribute_22_33_44_55_66_77"></a>
### Nested Schema for `fixed_ip_assignments.attribute_22_33_44_55_66_77`

Read-Only:

- `ip` (String)
- `name` (String)



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

Optional:

- `comment` (String) A text comment for the reserved range
- `end` (String) The last IP in the reserved range
- `start` (String) The first IP in the reserved range

## Import

Import is supported using the following syntax:

```shell
terraform import meraki_networks_appliance_static_routes.example "network_id,static_route_id"
```

0 comments on commit b260343

Please sign in to comment.