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
|
|
|
---
|
|
|
|
|
|
|
|
# cloudstack\_security\_group
|
|
|
|
|
2016-10-27 11:10:15 +02:00
|
|
|
Creates a security group.
|
2016-10-26 09:29:37 +02:00
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "cloudstack_security_group" "default" {
|
|
|
|
name = "allow_web"
|
|
|
|
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.
|
2016-10-26 09:29:37 +02:00
|
|
|
|