forked from mirrors/terraform-provider-binarylane
1.5 KiB
1.5 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| binarylane_server_reverse_name Resource - terraform-provider-binarylane | 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
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
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 can be used, for example:
terraform import binarylane_server_reverse_name.example "<server id>:<ipv4 address>"