2014-12-10 22:20:52 +01:00
|
|
|
---
|
|
|
|
layout: "cloudstack"
|
|
|
|
page_title: "CloudStack: cloudstack_ipaddress"
|
|
|
|
sidebar_current: "docs-cloudstack-resource-ipaddress"
|
|
|
|
description: |-
|
|
|
|
Acquires and associates a public IP.
|
|
|
|
---
|
|
|
|
|
|
|
|
# cloudstack\_ipaddress
|
|
|
|
|
|
|
|
Acquires and associates a public IP.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "cloudstack_ipaddress" "default" {
|
|
|
|
network = "test-network"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `network` - (Optional) The name of the network for which an IP address should
|
2015-01-03 19:31:53 +01:00
|
|
|
be acquired and associated. Changing this forces a new resource to be created.
|
2014-12-10 22:20:52 +01:00
|
|
|
|
2015-01-03 19:31:53 +01:00
|
|
|
* `vpc` - (Optional) The name of the VPC for which an IP address should
|
|
|
|
be acquired and associated. Changing this forces a new resource to be created.
|
2014-12-10 22:20:52 +01:00
|
|
|
|
|
|
|
*NOTE: Either `network` or `vpc` should have a value!*
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
2015-01-03 19:31:53 +01:00
|
|
|
* `id` - The ID of the acquired and associated IP address.
|
|
|
|
* `ipaddress` - The IP address that was acquired and associated.
|