DigitalOcean-public.v2-new_Project Resources
List Default Project Resources
To list all your resources in your default project, send a GET request to /v2/projects/default/resources.
Only resources that you are authorized to see will be returned. For example, to see Droplets in a project, include the droplet:read scope.
get/v2/projects/default/resources
Response
The response will be a JSON object with a key called resources. The value of this will be an object with the standard resource attributes.
Only resources that you are authorized to see will be returned.
Example response
{
"resources": [
{
"urn": "do:droplet:13457723",
"assigned_at": "2018-09-28T19:26:37Z",
"links": {
"self": "https://api.digitalocean.com/v2/droplets/13457723"
},
"status": "ok"
},
{
"urn": "do:domain:example.com",
"assigned_at": "2019-03-31T16:24:14Z",
"links": {
"self": "https://api.digitalocean.com/v2/domains/example.com"
},
"status": "ok"
}
],
"links": {
"pages": {
"first": "https://api.digitalocean.com/v2/projects/4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679/resources?page=1",
"last": "https://api.digitalocean.com/v2/projects/4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679/resources?page=1"
}
},
"meta": {
"total": 2
}
}