domains
Creates, updates, deletes, gets or lists a domains
resource.
Overview
Name | domains |
Type | Resource |
Id | digitalocean.domains.domains |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
domains_get | SELECT | domain_name | To get details about a specific domain, send a GET request to /v2/domains/$DOMAIN_NAME . |
domains_list | SELECT |
| To retrieve a list of all of the domains in your account, send a GET request to /v2/domains . |
domains_create | INSERT |
| To create a new domain, send a POST request to /v2/domains . Set the "name" attribute to the domain name you are adding. Optionally, you may set the "ip_address" attribute, and an A record will be automatically created pointing to the apex domain. |
domains_delete | DELETE | domain_name | To delete a domain, send a DELETE request to /v2/domains/$DOMAIN_NAME . |
SELECT
examples
To retrieve a list of all of the domains in your account, send a GET request to /v2/domains
.
SELECT
column_anon
FROM digitalocean.domains.domains
;
INSERT
example
Use the following StackQL query and manifest file to create a new domains
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.domains.domains (
data__name,
data__ip_address
)
SELECT
'{{ name }}',
'{{ ip_address }}'
;
- name: domains
props:
- name: name
value: string
- name: ip_address
value: string
DELETE
example
Deletes the specified domains
resource.
/*+ delete */
DELETE FROM digitalocean.domains.domains
WHERE domain_name = '{{ domain_name }}';