DigitalOcean-public.v2-new_Projects
List All Projects
To list all your projects, send a GET request to /v2/projects.
get/v2/projects
Query parameters
per_pageinteger
Number of items returned per page
pageinteger
Which 'page' of paginated results to return.
Response
The response will be a JSON object with a key called projects. The value of this will be an object with the standard project attributes
Example response
{
"projects": [
{
"id": "4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679",
"owner_uuid": "99525febec065ca37b2ffe4f852fd2b2581895e7",
"owner_id": 258992,
"name": "my-web-api",
"description": "My website API",
"purpose": "Service or API",
"environment": "Production",
"is_default": false,
"created_at": "2018-09-27T20:10:35Z",
"updated_at": "2018-09-27T20:10:35Z"
},
{
"id": "addb4547-6bab-419a-8542-76263a033cf6",
"owner_uuid": "99525febec065ca37b2ffe4f852fd2b2581895e7",
"owner_id": 258992,
"name": "Default",
"description": "Default project",
"purpose": "Just trying out DigitalOcean",
"environment": "Development",
"is_default": true,
"created_at": "2017-10-19T21:44:20Z",
"updated_at": "2019-11-05T18:50:03Z"
}
],
"links": {
"pages": {
"first": "https://api.digitalocean.com/v2/projects?page=1",
"last": "https://api.digitalocean.com/v2/projects?page=1"
}
},
"meta": {
"total": 2
}
}