2016-10-26 09:29:37 +02:00
|
|
|
---
|
|
|
|
layout: "cloudstack"
|
|
|
|
page_title: "CloudStack: cloudstack_security_group"
|
2016-10-27 11:10:15 +02:00
|
|
|
sidebar_current: "docs-cloudstack-resource-security-group"
|
2016-10-26 09:29:37 +02:00
|
|
|
description: |-
|
2016-10-27 11:10:15 +02:00
|
|
|
Creates a security group.
|
2016-10-26 09:29:37 +02:00
|
|
|
---
|
|
|
|
|
2017-04-10 18:15:08 +02:00
|
|
|
# cloudstack_security_group
|
2016-10-26 09:29:37 +02:00
|
|
|
|
2016-10-27 11:10:15 +02:00
|
|
|
Creates a security group.
|
2016-10-26 09:29:37 +02:00
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-10 18:15:08 +02:00
|
|
|
```hcl
|
2016-10-26 09:29:37 +02:00
|
|
|
resource "cloudstack_security_group" "default" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "allow_web"
|
2016-10-26 09:29:37 +02:00
|
|
|
description = "Allow access to HTTP and HTTPS"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2016-10-27 11:10:15 +02:00
|
|
|
* `name` - (Required) The name of the security group. Changing this forces a
|
|
|
|
new resource to be created.
|
2016-10-26 09:29:37 +02:00
|
|
|
|
2016-10-27 11:10:15 +02:00
|
|
|
* `description` - (Optional) The description of the security group. Changing
|
|
|
|
this forces a new resource to be created.
|
2016-10-26 09:29:37 +02:00
|
|
|
|
2016-10-27 11:10:15 +02:00
|
|
|
* `project` - (Optional) The name or ID of the project to create this security
|
|
|
|
group in. Changing this forces a new resource to be created.
|
2016-10-26 09:29:37 +02:00
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
2016-10-27 11:10:15 +02:00
|
|
|
* `id` - The ID of the security group.
|