Skip to main content

defaults

Creates, updates, deletes, gets or lists a defaults resource.

Overview

Namedefaults
TypeResource
Iddigitalocean.projects.defaults

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
projects_get_defaultSELECTTo get your default project, send a GET request to /v2/projects/default.
projects_patch_defaultUPDATETo 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_defaultEXECTo 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
;