GetPrebuild
POST/gitpod.v1.PrebuildService/GetPrebuild
Gets details about a specific prebuild.
Use this method to:
- Check prebuild status and progress
- Access prebuild logs for debugging
Examples
-
Get prebuild details:
Retrieves comprehensive information about a prebuild.
prebuildId: "07e03a28-65a5-4d98-b532-8ea67b188048"
GetPrebuild
curl https://app.gitpod.io/api/gitpod.v1.PrebuildService/GetPrebuild \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{
"prebuildId": "07e03a28-65a5-4d98-b532-8ea67b188048"
}'{
"prebuild": {
"metadata": {
"createdAt": "2019-12-27T18:11:19.117Z",
"creator": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"principal": "PRINCIPAL_UNSPECIFIED"
},
"updatedAt": "2019-12-27T18:11:19.117Z",
"environmentClassId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"executor": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"principal": "PRINCIPAL_UNSPECIFIED"
},
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"projectId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"triggeredBy": "PREBUILD_TRIGGER_UNSPECIFIED"
},
"spec": {
"desiredPhase": "PREBUILD_PHASE_UNSPECIFIED",
"specVersion": "specVersion",
"timeout": "+9125115.360s"
},
"status": {
"phase": "PREBUILD_PHASE_UNSPECIFIED",
"completionTime": "2019-12-27T18:11:19.117Z",
"environmentId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failureMessage": "failureMessage",
"logUrl": "https://example.com",
"snapshotCompletionPercentage": 100,
"snapshotSizeBytes": "snapshotSizeBytes",
"statusVersion": "statusVersion",
"warningMessage": "warningMessage"
},
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}Returns Examples
{
"prebuild": {
"metadata": {
"createdAt": "2019-12-27T18:11:19.117Z",
"creator": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"principal": "PRINCIPAL_UNSPECIFIED"
},
"updatedAt": "2019-12-27T18:11:19.117Z",
"environmentClassId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"executor": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"principal": "PRINCIPAL_UNSPECIFIED"
},
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"projectId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"triggeredBy": "PREBUILD_TRIGGER_UNSPECIFIED"
},
"spec": {
"desiredPhase": "PREBUILD_PHASE_UNSPECIFIED",
"specVersion": "specVersion",
"timeout": "+9125115.360s"
},
"status": {
"phase": "PREBUILD_PHASE_UNSPECIFIED",
"completionTime": "2019-12-27T18:11:19.117Z",
"environmentId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failureMessage": "failureMessage",
"logUrl": "https://example.com",
"snapshotCompletionPercentage": 100,
"snapshotSizeBytes": "snapshotSizeBytes",
"statusVersion": "statusVersion",
"warningMessage": "warningMessage"
},
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}