Skip to content

Commit

Permalink
doc: scaleway_compute_instance_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBrosse authored Jul 4, 2019
1 parent f1c86a2 commit d2cec23
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
6 changes: 3 additions & 3 deletions scaleway/resource_compute_instance_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ func resourceScalewayComputeInstanceIP() *schema.Resource {
"address": {
Type: schema.TypeString,
Computed: true,
Description: "The ip address",
Description: "The IP address",
},
"reverse": {
Type: schema.TypeString,
Optional: true,
Description: "The reverse dns for this IP",
Description: "The reverse DNS for this IP",
},
"server_id": {
Type: schema.TypeString,
Optional: true,
Description: "The server associated with this ip",
Description: "The server associated with this IP",
ValidateFunc: validationUUIDorUUIDWithLocality(),
DiffSuppressFunc: suppressLocality,
},
Expand Down
30 changes: 14 additions & 16 deletions website/docs/r/compute_instance_ip.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,39 @@ layout: "scaleway"
page_title: "Scaleway: scaleway_compute_instance_ip"
sidebar_current: "docs-scaleway-resource-compute-instance-ip"
description: |-
Manages Scaleway compute instance ip.
Manages Scaleway Compute Instance IPs.
---

# scaleway_compute_instance_ip

Creates and manages Scaleway compute instance IPs.
Creates and manages Scaleway Compute Instance IPs. For more information, see [the documentation](https://developers.scaleway.com/en/products/instance/api/#ips-268151).

## Example Usage

```hcl
resource "scaleway_compute_instance_ip" "test" {}
resource "scaleway_compute_instance_ip" "server_ip" {}
```

## Argument Reference
## Arguments Reference

The following arguments are supported:

* `project_id` - (Optional) The id of the project you want to attach this resource to.
* `reverse` - (Optional) The reverse dns for this IP.
* `zone` - (Optional) The zone you want to attach this resource to.
- `reverse` - (Optional) The reverse DNS for this IP.
- `server_id` - (Optional) The ID of the server you want to attach this resource to.
- `zone` - (Optional) The [zone](https://developers.scaleway.com/en/quickstart/#zone-definition) in which the IP should be reserved. If it is not provided, the provider `zone` is used.
- `project_id` - (Optional) The ID of the project the IP is associated with. If it is not provided, the provider `project_id` is used.

## Attributes Reference

The following attributes are exported:

* `project_id` - The id of the project your resource is attached to.
* `reverse` - The reverse dns for this IP.
* `server_id` - The id of the server this resource is attached to.
* `zone` - The zone your resource is attached to.
In addition to all arguments above, the following attributes are exported:

- `id` - The ID of the IP.
- `address` - The IP address.

## Import

Instances can be imported using the `zone/id`, e.g.
IPs can be imported using the `{zone}/{id}`, e.g.

```
$ terraform import scaleway_compute_instance_ip.test fr-par-1/11111111-1111-1111-1111-111111111111
```bash
$ terraform import scaleway_compute_instance_ip.server_ip fr-par-1/11111111-1111-1111-1111-111111111111
```
4 changes: 2 additions & 2 deletions website/scaleway.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</li>

<li<%= sidebar_current("docs-scaleway-resource") %>>
<a href="#">Resources</a>
<a href="#">Deprecated Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-scaleway-resource-bucket") %>>
<a href="/docs/providers/scaleway/r/bucket.html">scaleway_bucket</a>
Expand Down Expand Up @@ -65,7 +65,7 @@
</li>

<li<%= sidebar_current("docs-scaleway-resource-compute") %>>
<a href="#">Scaleway Compute Resources</a>
<a href="#">Compute Resources</a>
<ul class="nav nav-visible">
<li<%= sidebar_current("docs-scaleway-resource-compute-instance-ip") %>>
<a href="/docs/providers/scaleway/r/compute_instance_ip.html">scaleway_compute_instance_ip</a>
Expand Down

0 comments on commit d2cec23

Please sign in to comment.