domains
Creates, updates, deletes, gets or lists a domains resource.
Overview
| Name | domains |
| Type | Resource |
| Id | deno.deployment.domains |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
attach_domain_to_deployment | replace | deploymentId, domain | This API allows you to attach a domain to an existing deployment. Once attached, the deployment will become accessible via that domain. If the specified domain is already attached to another deployment, it will be detached from the current deployment and attached to the new one. | |
detach_domain_from_deployment | delete | deploymentId, domain | This API disassociates a domain from a deployment. Once this operation is completed, the deployment will no longer be accessible via that domain. |
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 |
|---|---|---|
deploymentId | string | Deployment ID |
domain | string | Domain to detach |
REPLACE examples
- attach_domain_to_deployment
This API allows you to attach a domain to an existing deployment. Once
attached, the deployment will become accessible via that domain.
If the specified domain is already attached to another deployment, it will
be detached from the current deployment and attached to the new one.
REPLACE deno.deployment.domains
SET
-- No updatable properties
WHERE
deploymentId = '{{ deploymentId }}' --required
AND domain = '{{ domain }}' --required
RETURNING
domain;
DELETE examples
- detach_domain_from_deployment
This API disassociates a domain from a deployment. Once this operation is
completed, the deployment will no longer be accessible via that domain.
DELETE FROM deno.deployment.domains
WHERE deploymentId = '{{ deploymentId }}' --required
AND domain = '{{ domain }}' --required
;