# Return the subdomain validation pattern

This function retrieves the regular expression that the system uses to
validate a subdomain label.

Note:

Use this value to validate a subdomain label in an interface before you
call the SubDomain::addsubdomain function. It does not replace the
server-side validation that SubDomain::addsubdomain performs.

Endpoint: GET /SubDomain/validregex
Version: 11.138.0.10
Security: BasicAuth

## Response 200 fields (application/json):

  - `data` (array)
    A single-element array holding the validation pattern.
    Example: ["^[A-Za-z0-9][A-Za-z0-9-]*$"]

  - `errors` (array,null)

  - `messages` (array,null)

  - `metadata` (object)

  - `metadata.transformed` (integer)

  - `status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `warnings` (array,null)


