resources
Creates, updates, deletes, gets or lists a resources
resource.
Overview
Name | resources |
Type | Resource |
Id | digitalocean.projects.resources |
Fields
Name | Datatype | Description |
---|---|---|
assigned_at | string | A time value given in ISO8601 combined date and time format that represents when the project was created. |
links | object | The links object contains the self object, which contains the resource relationship. |
status | string | The status of assigning and fetching the resources. |
urn | string | The uniform resource name (URN) for the resource in the format do:resource_type:resource_id. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_list_resources | SELECT | project_id | To list all your resources in a project, send a GET request to /v2/projects/$PROJECT_ID/resources . |
projects_assign_resources | EXEC | project_id | To 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 }}';