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" {
|
2016-04-11 17:14:19 +02:00
|
|
|
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
|
2014-12-10 22:20:52 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2016-04-11 17:14:19 +02:00
|
|
|
* `network_id` - (Optional) The ID 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
|
|
|
|
2016-04-11 17:14:19 +02:00
|
|
|
* `network` - (Optional, Deprecated) The name or ID of the network for which an IP
|
|
|
|
addess should be acquired and associated. Changing this forces a new resource
|
|
|
|
to be created.
|
|
|
|
|
|
|
|
* `vpc_id` - (Optional) The ID of the VPC for which an IP address should be
|
|
|
|
acquired and associated. Changing this forces a new resource to be created.
|
|
|
|
|
|
|
|
* `vpc` - (Optional, Deprecated) The name or ID 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
|
|
|
|
2015-08-21 16:59:35 +02:00
|
|
|
* `project` - (Optional) The name or ID of the project to deploy this
|
|
|
|
instance to. Changing this forces a new resource to be created.
|
|
|
|
|
2016-04-11 17:14:19 +02:00
|
|
|
*NOTE: Either `network_id` or `vpc_id` should have a value!*
|
2014-12-10 22:20:52 +01:00
|
|
|
|
|
|
|
## 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.
|
2016-04-04 22:13:27 +02:00
|
|
|
* `ip_address` - The IP address that was acquired and associated.
|