GET
/
cloud
/
v1
/
projects
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.projects.list()
page = page.results[0]
print(page.id)
{
  "count": 1,
  "results": [
    {
      "client_id": 1,
      "created_at": "2019-12-31T23:59:59",
      "deleted_at": "2020-12-31T23:59:59",
      "description": "Project description",
      "id": 1,
      "is_default": true,
      "name": "default",
      "state": "ACTIVE",
      "task_id": "7244e161-664c-4afd-a34e-7003eac4d949"
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

client_id
integer

Client ID filter for administrators.

Examples:

1

include_deleted
boolean
default:false

Whether to include deleted projects in the response.

Examples:

false

limit
integer
default:100

Limit value is used to limit the number of records in the result

Required range: 0 < x <= 1000
Examples:

100

name
string

Name to filter the results by.

Examples:

"my-project"

offset
integer
default:0

Offset value is used to exclude the first set of records from the result

Required range: x >= 0
Examples:

0

order_by
enum<string>

Order by field and direction.

Available options:
created_at.asc,
created_at.desc,
name.asc,
name.desc

Response

200 - application/json

OK

The response is of type object.