Skip to main content

resources

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

Overview

Nameresources
TypeResource
Iddigitalocean.projects.resources

Fields

NameDatatypeDescription
assigned_atstringA time value given in ISO8601 combined date and time format that represents when the project was created.
linksobjectThe links object contains the self object, which contains the resource relationship.
statusstringThe status of assigning and fetching the resources.
urnstringThe uniform resource name (URN) for the resource in the format do:resource_type:resource_id.

Methods

NameAccessible byRequired ParamsDescription
projects_list_resourcesSELECTproject_idTo list all your resources in a project, send a GET request to /v2/projects/$PROJECT_ID/resources.
projects_assign_resourcesEXECproject_idTo assign resources to a project, send a POST request to /v2/projects/$PROJECT_ID/resources.

SELECT examples

To list all your resources in a project, send a GET request to /v2/projects/$PROJECT_ID/resources.

SELECT
assigned_at,
links,
status,
urn
FROM digitalocean.projects.resources
WHERE project_id = '{{ project_id }}';