forked from mirrors/terraform-provider-binarylane
49 lines
1.5 KiB
Markdown
49 lines
1.5 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "binarylane_server_reverse_name Resource - terraform-provider-binarylane"
|
|
subcategory: ""
|
|
description: |-
|
|
Manage the reverse name (PTR record) for a public IPv4 address of a BinaryLane server. Destroying this resource clears the custom reverse name, restoring the BinaryLane default.
|
|
---
|
|
|
|
# binarylane_server_reverse_name (Resource)
|
|
|
|
Manage the reverse name (PTR record) for a public IPv4 address of a BinaryLane server. Destroying this resource clears the custom reverse name, restoring the BinaryLane default.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
resource "binarylane_server" "example" {
|
|
# ...
|
|
}
|
|
|
|
resource "binarylane_server_reverse_name" "example" {
|
|
server_id = binarylane_server.example.id
|
|
ipv4_address = binarylane_server.example.public_ipv4_addresses.0
|
|
reverse_name = "mx1.example.com"
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `ipv4_address` (String) The public IPv4 address to set the reverse name for.
|
|
- `reverse_name` (String) The reverse name (PTR record) for the IPv4 address.
|
|
- `server_id` (Number) The ID of the server the IPv4 address is assigned to.
|
|
|
|
### Read-Only
|
|
|
|
- `id` (String) The ID of this resource, in the format `<server_id>:<ipv4_address>`.
|
|
|
|
## Import
|
|
|
|
Import is supported using the following syntax:
|
|
|
|
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
|
|
|
|
```shell
|
|
terraform import binarylane_server_reverse_name.example "<server id>:<ipv4 address>"
|
|
```
|