github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/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 or ID 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 * `project` - (Optional) The name or ID of the project to deploy this 47 instance to. Changing this forces a new resource to be created. 48 49 * `zone` - (Required) The name or ID of the zone where this disk volume will be 50 available. Changing this forces a new resource to be created. 51 52 ## Attributes Reference 53 54 The following attributes are exported: 55 56 * `id` - The ID of the network. 57 * `display_text` - The display text of the network.