github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/openstack/r/networking_secgroup_v2.html.markdown (about) 1 --- 2 layout: "openstack" 3 page_title: "OpenStack: openstack_networking_secgroup_v2" 4 sidebar_current: "docs-openstack-resource-networking-secgroup-v2" 5 description: |- 6 Manages a V2 Neutron security group resource within OpenStack. 7 --- 8 9 # openstack\_networking\_secgroup_v2 10 11 Manages a V2 neutron security group resource within OpenStack. 12 Unlike Nova security groups, neutron separates the group from the rules 13 and also allows an admin to target a specific tenant_id. 14 15 ## Example Usage 16 17 ``` 18 resource "openstack_networking_secgroup_v2" "secgroup_1" { 19 name = "secgroup_1" 20 description = "My neutron security group" 21 } 22 ``` 23 24 ## Argument Reference 25 26 The following arguments are supported: 27 28 * `region` - (Required) The region in which to obtain the V2 networking client. 29 A networking client is needed to create a port. If omitted, the 30 `OS_REGION_NAME` environment variable is used. Changing this creates a new 31 security group. 32 33 * `name` - (Required) A unique name for the security group. Changing this 34 creates a new security group. 35 36 * `description` - (Optional) A unique name for the security group. Changing this 37 creates a new security group. 38 39 * `tenant_id` - (Optional) The owner of the security group. Required if admin 40 wants to create a port for another tenant. Changing this creates a new 41 security group. 42 43 ## Attributes Reference 44 45 The following attributes are exported: 46 47 * `region` - See Argument Reference above. 48 * `name` - See Argument Reference above. 49 * `description` - See Argument Reference above. 50 * `tenant_id` - See Argument Reference above. 51 52 ## Import 53 54 Security Groups can be imported using the `id`, e.g. 55 56 ``` 57 $ terraform import openstack_networking_secgroup_v2.secgroup_1 38809219-5e8a-4852-9139-6f461c90e8bc 58 ```