List GCP Projects
Retrieve all active GCP projects across authenticated accounts.
Response
Array of GCP projects
Cloud provider identifier (always “gcp”)
Unique project identifier
Human-readable project name
Current project state (e.g., “ACTIVE”)
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
Array of GCP accounts
Cloud provider identifier (always “gcp”)
Array of projects associated with this account
Unique project identifier
Human-readable project name
Error message if project listing failed
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 message describing what went wrong
{
"error": "Brak kompletnych tokenów do uwierzytelnienia."
}