|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "nios_rpz_record_ptr Resource - nios" |
| 4 | +subcategory: "RPZ" |
| 5 | +description: |- |
| 6 | + Manages an RPZ PTR record. |
| 7 | +--- |
| 8 | + |
| 9 | +# nios_rpz_record_ptr (Resource) |
| 10 | + |
| 11 | +Manages an RPZ PTR record. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +// Create Parent RP Zone |
| 17 | +resource "nios_dns_zone_rp" "parent_zone" { |
| 18 | + fqdn = "rpz.example.com" |
| 19 | +} |
| 20 | +
|
| 21 | +// Create Record RPZ PTR with Basic Fields |
| 22 | +resource "nios_rpz_record_ptr" "create_record_rpz_ptr" { |
| 23 | + ptrdname = "record1.${nios_dns_zone_rp.parent_zone.fqdn}" |
| 24 | + ipv4addr = "10.10.0.1" |
| 25 | + rp_zone = nios_dns_zone_rp.parent_zone.fqdn |
| 26 | +} |
| 27 | +
|
| 28 | +// Create Record RPZ PTR with Additional Fields |
| 29 | +resource "nios_rpz_record_ptr" "create_record_rpz_ptr_with_additional_fields" { |
| 30 | + ptrdname = "record2.${nios_dns_zone_rp.parent_zone.fqdn}" |
| 31 | + ipv4addr = "10.10.0.2" |
| 32 | + rp_zone = nios_dns_zone_rp.parent_zone.fqdn |
| 33 | + view = "default" |
| 34 | + use_ttl = true |
| 35 | + ttl = 10 |
| 36 | + comment = "Example RPZ PTR record" |
| 37 | + extattrs = { |
| 38 | + Site = "location-1" |
| 39 | + } |
| 40 | +} |
| 41 | +
|
| 42 | +// Create Record RPZ PTR with Name |
| 43 | +resource "nios_rpz_record_ptr" "create_record_rpz_ptr_with_name" { |
| 44 | + ptrdname = "record3.${nios_dns_zone_rp.parent_zone.fqdn}" |
| 45 | + name = "3.0.10.10.in-addr.arpa.${nios_dns_zone_rp.parent_zone.fqdn}" |
| 46 | + rp_zone = nios_dns_zone_rp.parent_zone.fqdn |
| 47 | + view = "default" |
| 48 | + extattrs = { |
| 49 | + Site = "location-1" |
| 50 | + } |
| 51 | +} |
| 52 | +
|
| 53 | +// Create Record RPZ PTR with IPv6 Address |
| 54 | +resource "nios_rpz_record_ptr" "create_record_rpz_ptr_with_ipv6addr" { |
| 55 | + ptrdname = "record4.${nios_dns_zone_rp.parent_zone.fqdn}" |
| 56 | + ipv6addr = "2002:1f93::12:1" |
| 57 | + rp_zone = nios_dns_zone_rp.parent_zone.fqdn |
| 58 | + view = "default" |
| 59 | + extattrs = { |
| 60 | + Site = "location-1" |
| 61 | + } |
| 62 | +} |
| 63 | +``` |
| 64 | + |
| 65 | +<!-- schema generated by tfplugindocs --> |
| 66 | +## Schema |
| 67 | + |
| 68 | +### Required |
| 69 | + |
| 70 | +- `ptrdname` (String) The domain name of the RPZ Substitute (PTR Record) Rule object in FQDN format. |
| 71 | +- `rp_zone` (String) The name of a response policy zone in which the record resides. |
| 72 | + |
| 73 | +### Optional |
| 74 | + |
| 75 | +- `comment` (String) The comment for the record; maximum 256 characters. |
| 76 | +- `disable` (Boolean) Determines if the record is disabled or not. False means that the record is enabled. |
| 77 | +- `extattrs` (Map of String) Extensible attributes associated with the object. For valid values for extensible attributes, see {extattrs:values}. |
| 78 | +- `ipv4addr` (String) The IPv4 Address of the substitute rule. |
| 79 | +- `ipv6addr` (String) The IPv6 Address of the substitute rule. |
| 80 | +- `name` (String) The name of the RPZ Substitute (PTR Record) Rule object in FQDN format. |
| 81 | +- `ttl` (Number) The Time To Live (TTL) value for record. A 32-bit unsigned integer that represents the duration, in seconds, for which the record is valid (cached). Zero indicates that the record should not be cached. |
| 82 | +- `use_ttl` (Boolean) Use flag for: ttl |
| 83 | +- `view` (String) The name of the DNS View in which the record resides. Example: "external". |
| 84 | + |
| 85 | +### Read-Only |
| 86 | + |
| 87 | +- `extattrs_all` (Map of String) Extensible attributes associated with the object, including default attributes. |
| 88 | +- `ref` (String) The reference to the object. |
| 89 | +- `zone` (String) The name of the zone in which the record resides. Example: "zone.com". If a view is not specified when searching by zone, the default view is used. |
0 commit comments