Skip to main content

List GCP Projects

Retrieve all active GCP projects across authenticated accounts.

Response

value
array
Array of GCP projects

Example Request

curl -X GET https://api.example.com/api/account/google/projects \
  -H "Cookie: session=your-session-token"

Example Response

{
  "value": [
    {
      "provider": "gcp",
      "projectId": "my-project-123",
      "projectNumber": "123456789012",
      "displayName": "My Project",
      "lifecycleState": "ACTIVE"
    }
  ]
}

Get GCP Accounts

Retrieve all authenticated GCP accounts with their associated projects.

Response

value
array
Array of GCP accounts

Example Request

curl -X GET https://api.example.com/api/account/gcp \
  -H "Cookie: session=your-session-token"

Example Response

{
  "value": [
    {
      "provider": "gcp",
      "email": "[email protected]",
      "projects": [
        {
          "provider": "gcp",
          "projectId": "my-project-123",
          "projectNumber": "123456789012",
          "displayName": "My Project",
          "lifecycleState": "ACTIVE"
        }
      ]
    }
  ]
}

Error Responses

error
string
Error message describing what went wrong
{
  "error": "Brak kompletnych tokenów do uwierzytelnienia."
}

Build docs developers (and LLMs) love