CreateEnvironmentFromProject
Creates an environment from an existing project configuration and starts it.
This method uses project settings as defaults but allows overriding specific configurations. Project settings take precedence over default configurations, while custom specifications in the request override project settings.
Examples
-
Create with project defaults:
Creates an environment using all default settings from the project configuration.
projectId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" -
Create with custom compute resources:
Creates an environment from project with custom machine class and timeout settings.
projectId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" spec: machine: class: "d2c94c27-3b76-4a42-b88c-95a85e392c68" timeout: disconnected: "14400s" # 4 hours in seconds
Request body
Response
Success
Changes
Changed in 12 of the 18 revisions of this API.81695
- ●
removed the request property
spec/secrets/items/credentialProxy/formatrequest-property-removed
- ●
removed the optional property
environment/spec/secrets/items/credentialProxy/formatfrom the response with the200statusresponse-optional-property-removed
- ●
added the new
ENVIRONMENT_ROLE_BASE_SNAPSHOT_BUILDenum value to theenvironment/metadata/roleresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
spec/kernelControlsConfig/veto/filenew-optional-request-property
- ○
added the new optional request property
spec/secrets/items/sourceDetailsnew-optional-request-property
- ○
added the new optional request property
spec/securityPolicyIdnew-optional-request-property
- ○
request property
spec/kernelControlsConfig/veto/exec/denyBlockDevicesdeprecatedrequest-property-deprecated
- ○
added the optional property
environment/metadata/pinnedByCreatorto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/kernelControlsConfig/veto/fileto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/secrets/items/sourceDetailsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/securityPolicyIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/codexto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/content/git/changedFiles/items/oldPathto the response with the200statusresponse-optional-property-added
- ○
response property
environment/spec/kernelControlsConfig/veto/exec/denyBlockDevicesdeprecatedresponse-property-deprecated
This revision also has 24 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional request property
annotationsnew-optional-request-property
- ○
added the new optional request property
sessionIdnew-optional-request-property
- ○
added the new optional request property
spec/kernelControlsConfig/bpfDebugLevelnew-optional-request-property
- ○
added the new optional request property
spec/kernelControlsConfig/veto/exec/denyBlockDevicesnew-optional-request-property
- ○
added the new optional request property
spec/kernelControlsConfig/veto/exec/resolveBareNamesnew-optional-request-property
- ○
added the new optional request property
spec/kernelControlsConfig/veto/exec/untouchablenew-optional-request-property
- ○
added the new optional request property
spec/kernelControlsConfig/veto/exec/watchnew-optional-request-property
- ○
added the new optional request property
spec/machine/preferDualDisknew-optional-request-property
- ○
added the new optional request property
spec/ports/items/authNoncenew-optional-request-property
- ○
added the new optional request property
spec/secrets/items/credentialProxynew-optional-request-property
- ○
added the optional property
environment/metadata/lockdownAtto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/metadata/sessionIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/kernelControlsConfig/bpfDebugLevelto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/kernelControlsConfig/veto/exec/denyBlockDevicesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/kernelControlsConfig/veto/exec/resolveBareNamesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/kernelControlsConfig/veto/exec/untouchableto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/kernelControlsConfig/veto/exec/watchto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/machine/preferDualDiskto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/ports/items/authNonceto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/secrets/items/credentialProxyto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/environmentUrls/vmLiveUsageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/machine/dualDiskto the response with the200statusresponse-optional-property-added
- ○
removed the
PRINCIPAL_AGENT_EXECUTIONenum value from theenvironment/metadata/creator/principalresponse property for the response status200response-property-enum-value-removed
- ○
- ○
added the new optional request property
spec/kernelControlsConfig/veto/exec/actionnew-optional-request-property
- ○
added the optional property
environment/spec/kernelControlsConfig/veto/exec/actionto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
ADMISSION_LEVEL_CREATOR_ONLYenum value to theenvironment/spec/admissionresponse property for the response status200response-property-enum-value-added
- ●
added the new
ADMISSION_LEVEL_CREATOR_ONLYenum value to theenvironment/spec/ports/items/admissionresponse property for the response status200response-property-enum-value-added
- ●
added the new
ADMISSION_LEVEL_ORGANIZATIONenum value to theenvironment/spec/admissionresponse property for the response status200response-property-enum-value-added
- ●
added the new
ADMISSION_LEVEL_ORGANIZATIONenum value to theenvironment/spec/ports/items/admissionresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
namenew-optional-request-property
- ○
added the new optional request property
spec/kernelControlsConfignew-optional-request-property
- ○
added the new optional request property
spec/secrets/items/scopenew-optional-request-property
- ○
added the new
ADMISSION_LEVEL_CREATOR_ONLYenum value to the request propertyspec/admissionrequest-property-enum-value-added
- ○
added the new
ADMISSION_LEVEL_CREATOR_ONLYenum value to the request propertyspec/ports/items/admissionrequest-property-enum-value-added
- ○
added the new
ADMISSION_LEVEL_ORGANIZATIONenum value to the request propertyspec/admissionrequest-property-enum-value-added
- ○
added the new
ADMISSION_LEVEL_ORGANIZATIONenum value to the request propertyspec/ports/items/admissionrequest-property-enum-value-added
- ○
added the optional property
environment/spec/kernelControlsConfigto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/secrets/items/scopeto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
removed
subschema #1subschema #2subschema #3subschema #4subschema #5from thespec/automationsFile/triggerFilter/items/request propertyoneOflistrequest-property-one-of-removed
- ▲
added
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6to theenvironment/spec/automationsFile/triggerFilter/items/response propertyoneOflist for the response status200response-property-one-of-added
- ○
added the new optional request property
spec/automationsFile/triggerFilter/items/beforeSnapshotnew-optional-request-property
- ○
added
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6to thespec/automationsFile/triggerFilter/items/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
environment/spec/automationsFile/triggerFilter/items/beforeSnapshotto the response with the200statusresponse-optional-property-added
- ○
removed
subschema #1subschema #2subschema #3subschema #4subschema #5from theenvironment/spec/automationsFile/triggerFilter/items/response propertyoneOflist for the response status200response-property-one-of-removed
- ▲
- ▲
the
spec/ports/items/portrequest property's min was increased to1024.00request-property-min-increased
- ▲
removed
subschema #1subschema #2subschema #3subschema #4from thespec/secrets/items/request propertyoneOflistrequest-property-one-of-removed
- ▲
added
subschema #1subschema #2subschema #3subschema #4subschema #5to theenvironment/spec/secrets/items/response propertyoneOflist for the response status200response-property-one-of-added
- ●
added the new
CLONE_TARGET_MODE_REMOTE_TAGenum value to theenvironment/spec/content/initializer/specs/items/git/targetModeresponse property for the response status200response-property-enum-value-added
- ●
added the new
CONTENT_PHASE_UNAVAILABLEenum value to theenvironment/status/automationsFile/phaseresponse property for the response status200response-property-enum-value-added
- ●
added the new
CONTENT_PHASE_UNAVAILABLEenum value to theenvironment/status/content/phaseresponse property for the response status200response-property-enum-value-added
- ●
added the new
CONTENT_PHASE_UNAVAILABLEenum value to theenvironment/status/secrets/items/phaseresponse property for the response status200response-property-enum-value-added
- ●
added the new
CONTENT_PHASE_UNAVAILABLEenum value to theenvironment/status/sshPublicKeys/items/phaseresponse property for the response status200response-property-enum-value-added
- ●
added the new
PRINCIPAL_AGENT_EXECUTIONenum value to theenvironment/metadata/creator/principalresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
spec/automationsFile/triggerFilternew-optional-request-property
- ○
added the new optional request property
spec/devcontainer/lifecycleStagenew-optional-request-property
- ○
added the new optional request property
spec/ports/items/protocolnew-optional-request-property
- ○
added the new optional request property
spec/secrets/items/apiOnlynew-optional-request-property
- ○
added the new optional request property
spec/workflowActionIdnew-optional-request-property
- ○
added the new
CLONE_TARGET_MODE_REMOTE_TAGenum value to the request propertyspec/content/initializer/specs/items/git/targetModerequest-property-enum-value-added
- ○
added
subschema #1subschema #2subschema #3subschema #4subschema #5to thespec/secrets/items/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
environment/metadata/prebuildIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/metadata/roleto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/automationsFile/triggerFilterto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/devcontainer/lifecycleStageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/ports/items/protocolto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/secrets/items/apiOnlyto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/workflowActionIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/environmentUrls/opsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/environmentUrls/supportBundleto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/machine/versions/amiIdto the response with the200statusresponse-optional-property-added
- ○
removed
subschema #1subschema #2subschema #3subschema #4from theenvironment/spec/secrets/items/response propertyoneOflist for the response status200response-property-one-of-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
added the new
PRINCIPAL_RUNNER_MANAGERenum value to theenvironment/metadata/creator/principalresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
spec/devcontainer/defaultDevcontainerImagenew-optional-request-property
- ○
added the new optional request property
spec/secrets/items/idnew-optional-request-property
- ○
added the optional property
environment/metadata/archivedAtto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/devcontainer/defaultDevcontainerImageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/spec/secrets/items/idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/automationsFile/warningMessageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/status/secrets/items/idto the response with the200statusresponse-optional-property-added
This revision also has 43 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
specrequest property type/format changed from/toobject/request-property-type-changed
- ▲
the
environmentresponse's property type/format changed from/toobject/for status200response-property-type-changed
- ●
removed
gitpod.v1.EnvironmentSpecfrom thespecrequest propertyallOflistrequest-property-all-of-removed
- ○
added the new optional request property
spec/admissionnew-optional-request-property
- ○
added the new optional request property
spec/automationsFilenew-optional-request-property
- ○
added the new optional request property
spec/contentnew-optional-request-property
- ○
added the new optional request property
spec/desiredPhasenew-optional-request-property
- ○
added the new optional request property
spec/devcontainernew-optional-request-property
- ○
added the new optional request property
spec/machinenew-optional-request-property
- ○
added the new optional request property
spec/portsnew-optional-request-property
- ○
added the new optional request property
spec/secretsnew-optional-request-property
- ○
added the new optional request property
spec/specVersionnew-optional-request-property
- ○
added the new optional request property
spec/sshPublicKeysnew-optional-request-property
- ○
added the new optional request property
spec/timeoutnew-optional-request-property
- ○
added the optional property
environment/metadatato the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/specto the response with the200statusresponse-optional-property-added
- ○
added the optional property
environment/statusto the response with the200statusresponse-optional-property-added
- ○
removed
gitpod.v1.Environmentfrom theenvironmentresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
added the required property
environment/idto the response with the200statusresponse-required-property-added
- ▲
- ●
removed the optional property
detailfrom the response with thedefaultstatusresponse-optional-property-removed
- ●
- ○
added the new optional request property
spec/allOf[subschema #1: EnvironmentSpec]/devcontainer/allOf[subschema #1: DevContainer]/dotfilesnew-optional-request-property
- ○
added the optional property
environment/allOf[subschema #1: Environment]/spec/allOf[subschema #1: EnvironmentSpec]/devcontainer/allOf[subschema #1: DevContainer]/dotfilesto the response with the200statusresponse-optional-property-added
- ○
the response property
environmentbecame required for the status200response-property-became-required
- ○