2016-10-27 21:06:39 +02:00
|
|
|
---
|
|
|
|
layout: "cloudstack"
|
|
|
|
page_title: "CloudStack: cloudstack_static_route"
|
|
|
|
sidebar_current: "docs-cloudstack-resource-static-route"
|
|
|
|
description: |-
|
|
|
|
Creates a static route.
|
|
|
|
---
|
|
|
|
|
|
|
|
# cloudstack\_static\_route
|
|
|
|
|
|
|
|
Creates a static route for the given private gateway or VPC.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "cloudstack_static_route" "default" {
|
2017-02-18 23:48:50 +01:00
|
|
|
cidr = "10.0.0.0/16"
|
|
|
|
gateway_id = "76f607e3-e8dc-4971-8831-b2a2b0cc4cb4"
|
2016-10-27 21:06:39 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `cidr` - (Required) The CIDR for the static route. Changing this forces
|
|
|
|
a new resource to be created.
|
|
|
|
|
|
|
|
* `gateway_id` - (Required) The ID of the Private gateway. Changing this forces
|
|
|
|
a new resource to be created.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The ID of the static route.
|
|
|
|
|