You can enforce naming policy for the hostnames of A, AAAA, Host, MX, NS and bulk host records based on user-defined or default patterns. For MX and NS records, the hostname restrictions apply to the text in the RDATA field of the resource record name. Records that you created before you enabled the hostname checking policy need not to comply with the hostname restriction that you specify.
The record name policy object contains configuration of the regular expression hostnames should comply with.
References to recordnamepolicy are object references.
The name part of the record name policy object reference has following components:
- The name of the record name policy object.
The object does not support the following operations:
The object cannot be managed on Cloud Platform members.
These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable.
The basic version of the object contains the field(s): is_default, name, regex.
The following fields are required to create this object:
Field | Notes |
---|---|
name | |
regex |
Determines whether the record name policy is Grid default.
Type
Bool.
Create
The default value is False.
Search
The field is not available for search.
Notes
The is_default is part of the base object.
The name of the record name policy object.
Type
String.
Values with leading or trailing white space are not valid for this field.
Create
The field is required on creation.
Search
The field is available for search via
Notes
The name is part of the base object.
Field | Type | Req | R/O | Base | Search |
---|---|---|---|---|---|
is_default | Bool | N | N | Y | N/A |
name | String | Y | N | Y | : = ~ |
pre_defined | Bool | N | Y | N | N/A |
regex | String | Y | N | Y | N/A |