defaults
Creates, updates, deletes, gets or lists a defaults
resource.
Overview
Name | defaults |
Type | Resource |
Id | digitalocean.projects.defaults |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_get_default | SELECT |
| To get your default project, send a GET request to /v2/projects/default . |
projects_patch_default | UPDATE |
| To update only specific attributes of your default project, send a PATCH request to /v2/projects/default . At least one of the following attributes needs to be sent. |
projects_update_default | EXEC |
| To update you default project, send a PUT request to /v2/projects/default . All of the following attributes must be sent. |
SELECT
examples
To get your default project, send a GET request to /v2/projects/default
.
SELECT
column_anon
FROM digitalocean.projects.defaults
;
UPDATE
example
Updates a defaults
resource.
/*+ update */
UPDATE digitalocean.projects.defaults
SET
name = '{{ name }}',
description = '{{ description }}',
purpose = '{{ purpose }}',
environment = '{{ environment }}',
is_default = true|false
WHERE
;