tlds
Creates, updates, deletes, gets or lists a tlds resource.
Overview
| Name | tlds |
| Type | Resource |
| Id | vercel.domains_registrar.tlds |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
supported_language_codes | object | The language codes that are supported for the TLD. The key is the language code, and the value is the name of the language. (wire: supportedLanguageCodes) |
A valid TLD name
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | tld | team_id | Get the metadata for a specific TLD. |
list | select | team_id | Get a list of TLDs supported by Vercel |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
tld | string | |
team_id | string | (wire: teamId) |
SELECT examples
- get
- list
Get the metadata for a specific TLD.
SELECT
supported_language_codes
FROM vercel.domains_registrar.tlds
WHERE tld = '{{ tld }}' -- required
AND team_id = '{{ team_id }}'
;
Get a list of TLDs supported by Vercel
SELECT
*
FROM vercel.domains_registrar.tlds
WHERE team_id = '{{ team_id }}'
;