github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/docs/providers/cloudstack/r/network.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_network" 4 sidebar_current: "docs-cloudstack-resource-network" 5 description: |- 6 Creates a network. 7 --- 8 9 # cloudstack\_network 10 11 Creates a network. 12 13 ## Example Usage 14 15 Basic usage: 16 17 ``` 18 resource "cloudstack_network" "default" { 19 name = "test-network" 20 cidr = "10.0.0.0/16" 21 network_offering = "Default Network" 22 zone = "zone-1" 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `name` - (Required) The name of the network. 31 32 * `display_text` - (Optional) The display text of the network. 33 34 * `cidr` - (Required) The CIDR block for the network. Changing this forces a new 35 resource to be created. 36 37 * `network_offering` - (Required) The name or ID of the network offering to use 38 for this network. 39 40 * `vpc` - (Optional) The name of the VPC to create this network for. Changing 41 this forces a new resource to be created. 42 43 * `aclid` - (Optional) The ID of a network ACL that should be attached to the 44 network. Changing this forces a new resource to be created. 45 46 * `zone` - (Required) The name or ID of the zone where this disk volume will be 47 available. Changing this forces a new resource to be created. 48 49 ## Attributes Reference 50 51 The following attributes are exported: 52 53 * `id` - The ID of the network. 54 * `display_text` - The display text of the network.