<commit_before>---
layout: "brightbox"
page_title: "Brightbox: brightbox_cloudip"
sidebar_current: "docs-brightbox-resource-cloudip"
description: |-
  Provides a Brightbox CloudIP resource.
---

# brightbox\_cloudip

Provides a Brightbox CloudIP resource.

## Example Usage

```hcl
resource "brightbox_cloudip" "web-public" {
  target = "${brightbox_server.web.interface}"
  name = "web-1 public address"
}

resource "brightbox_server" "web" {
  image  = "img-testy"
  name   = "web-1"
  zone = "gb1a"
  type = "512mb.ssd"
  server_groups = [ "grp-testy" ]
}
```

## Argument Reference

The following arguments are supported:

* `target` - (Required) The CloudIP mapping target. This is the interface id from a server, or the id of a load balancer, server group or cloud sql resource.
* `name` - (Optional) a label to assign to the CloudIP
* `reverse_dns` - (Optional) The reverse DNS entry for the CloudIP<commit_msg>Add cloud ip reservation example to docs<commit_after>---
layout: "brightbox"
page_title: "Brightbox: brightbox_cloudip"
sidebar_current: "docs-brightbox-resource-cloudip"
description: |-
  Provides a Brightbox CloudIP resource.
---

# brightbox\_cloudip

Provides a Brightbox CloudIP resource.

## Example Usage

```hcl
resource "brightbox_cloudip" "web-public" {
  target = "${brightbox_server.web.interface}"
  name = "web-1 public address"
}

resource "brightbox_server" "web" {
  image  = "img-testy"
  name   = "web-1"
  zone = "gb1a"
  type = "512mb.ssd"
  server_groups = [ "grp-testy" ]
}
```

Cloud ips can just be reserved

```hcl
resource "brightbox_cloudip" "myapp-public" {
  name = "Reserved for use by application"
}
```

## Argument Reference

The following arguments are supported:

* `target` - (Required) The CloudIP mapping target. This is the interface id from a server, or the id of a load balancer, server group or cloud sql resource.
* `name` - (Optional) a label to assign to the CloudIP
* `reverse_dns` - (Optional) The reverse DNS entry for the CloudIP
{'fraction_non_alphanumeric': 0.11611611611611612, 'fraction_numerical': 0.006006006006006006, 'mean_word_length': 4.260526315789473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7470333', 'n_tokens_mistral': 680, 'n_tokens_neox': 653, 'n_words': 215}