Catalog
Trong trang này
- List remote builder candidates, including disabled servers, and unclaimed waiting jobs
- Create a builder with no workloads; assigning a workload later also makes it a deploy target. Installer uses --builder --no-edge
- Configure builder mode on an existing remote server; max_jobs is 1 to 32, cache_limit_bytes is non-negative
- List the last reported builder cache catalog, including while offline
- Clear builder caches. Query: service_id (optional UUID), key (optional); no filters clears all inactive caches. Builder must be connected
- Evict builder caches by LRU down to its configured limit; active service caches are protected
- List running and recent builder jobs (up to 100), including jobs waiting for this selected builder
- Delete an environment
- List an environment's services
- Create a service
- List projects
- Create a project
- Get a project
- Rename or describe a project
- Delete a project and its environments
- List a project's environments
- Create an environment
- List servers
- Add a server; remote servers get a one-time join command
- Update a server's name, description, IP, or auto-prune
- Delete a server and revoke its agent certificate
- Issue a new join token for a remote server (valid for one hour)
- Refresh Docker and OS facts for a server
- All services with their project and environment
- Get a service
- Update a service
- Delete a service and its containers
- List environment variables; secret values are masked
- Set an environment variable
- Preview or save many variables from the text of a .env file
- Delete an environment variable
- Check a typed value against the saved one without revealing it
- Agent binaries and checksums
- Agent install script (text/x-shellscript)
Servers, projects, environments, and services
List remote builder candidates, including disabled servers, and unclaimed waiting jobs
/api/v1/buildersPhản hồi
200 List remote builder candidates, including disabled servers, and unclaimed waiting jobs
BuilderInventorybuildersBuilderView[]bắt buộcRemote servers, including disabled candidates that can be enabled with PATCH.
BuilderView[]
active_jobsinteger (int64)bắt buộcarchstring | nullbuildxbooleanbắt buộccache_bytesinteger (int64)bắt buộcLast reported cache catalog, also available while the builder is offline.
cache_limit_bytesinteger (int64)bắt buộcdescriptionstringbắt buộcdrainingbooleanbắt buộcenabledbooleanbắt buộcidstring (uuid)bắt buộclast_seenstring | null (date-time)max_jobsinteger (int32)bắt buộcnamestringbắt buộcnixpacksbooleanbắt buộconlinebooleanbắt buộcpausedbooleanbắt buộcqueued_jobsinteger (int64)bắt buộcQueued jobs explicitly targeting this builder. Auto jobs are not reserved yet.
versionstring | null
waiting_jobsBuilderJob[]bắt buộcUnclaimed jobs; auto placement has no builder assignment until it is claimed.
BuilderJob[]
builder_idstring | null (uuid)cancel_requestedbooleanbắt buộccreated_atstring (date-time)bắt buộcdeployment_idstring (uuid)bắt buộcdisconnect_retriesinteger (int32)bắt buộcfinished_atstring | null (date-time)idstring (uuid)bắt buộcservice_idstring (uuid)bắt buộcservice_namestringbắt buộcstarted_atstring | null (date-time)statusstringbắt buộc
Create a builder with no workloads; assigning a workload later also makes it a deploy target. Installer uses --builder --no-edge
/api/v1/buildersNội dung gửi lênapplication/json
CreateBuilder
descriptionstring | nullnamestringbắt buộc
Phản hồi
201 Create a builder with no workloads; assigning a workload later also makes it a deploy target. Installer uses --builder --no-edge
CreatedBuilderexpires_atstring (date-time)bắt buộcjoin_commandstringbắt buộcjoin_tokenstringbắt buộcserverBuilderViewbắt buộcBuilderView
active_jobsinteger (int64)bắt buộcarchstring | nullbuildxbooleanbắt buộccache_bytesinteger (int64)bắt buộcLast reported cache catalog, also available while the builder is offline.
cache_limit_bytesinteger (int64)bắt buộcdescriptionstringbắt buộcdrainingbooleanbắt buộcenabledbooleanbắt buộcidstring (uuid)bắt buộclast_seenstring | null (date-time)max_jobsinteger (int32)bắt buộcnamestringbắt buộcnixpacksbooleanbắt buộconlinebooleanbắt buộcpausedbooleanbắt buộcqueued_jobsinteger (int64)bắt buộcQueued jobs explicitly targeting this builder. Auto jobs are not reserved yet.
versionstring | null
Configure builder mode on an existing remote server; max_jobs is 1 to 32, cache_limit_bytes is non-negative
/api/v1/builders/{id}Nội dung gửi lênapplication/json
UpdateBuilder
cache_limit_bytesinteger | null (int64)drainingboolean | nullenabledboolean | nullmax_jobsinteger | null (int32)pausedboolean | null
Phản hồi
200 Configure builder mode on an existing remote server; max_jobs is 1 to 32, cache_limit_bytes is non-negative
BuilderViewactive_jobsinteger (int64)bắt buộcarchstring | nullbuildxbooleanbắt buộccache_bytesinteger (int64)bắt buộcLast reported cache catalog, also available while the builder is offline.
cache_limit_bytesinteger (int64)bắt buộcdescriptionstringbắt buộcdrainingbooleanbắt buộcenabledbooleanbắt buộcidstring (uuid)bắt buộclast_seenstring | null (date-time)max_jobsinteger (int32)bắt buộcnamestringbắt buộcnixpacksbooleanbắt buộconlinebooleanbắt buộcpausedbooleanbắt buộcqueued_jobsinteger (int64)bắt buộcQueued jobs explicitly targeting this builder. Auto jobs are not reserved yet.
versionstring | null
List the last reported builder cache catalog, including while offline
/api/v1/builders/{id}/cachePhản hồi
200 List the last reported builder cache catalog, including while offline
BuilderCacheEntry[]cache_keystringbắt buộccreated_atstring (date-time)bắt buộclast_used_atstring (date-time)bắt buộcservice_idstring (uuid)bắt buộcservice_namestringbắt buộcsize_bytesinteger (int64)bắt buộc
Clear builder caches. Query: service_id (optional UUID), key (optional); no filters clears all inactive caches. Builder must be connected
/api/v1/builders/{id}/cachePhản hồi
200 Clear builder caches. Query: service_id (optional UUID), key (optional); no filters clears all inactive caches. Builder must be connected
BuilderCachePrunedentriesBuilderCacheEntry[]bắt buộcBuilderCacheEntry[]
cache_keystringbắt buộccreated_atstring (date-time)bắt buộclast_used_atstring (date-time)bắt buộcservice_idstring (uuid)bắt buộcservice_namestringbắt buộcsize_bytesinteger (int64)bắt buộc
reclaimed_bytesinteger (int64)bắt buộcremaining_bytesinteger (int64)bắt buộc
Evict builder caches by LRU down to its configured limit; active service caches are protected
/api/v1/builders/{id}/cache/prunePhản hồi
200 Evict builder caches by LRU down to its configured limit; active service caches are protected
BuilderCachePrunedentriesBuilderCacheEntry[]bắt buộcBuilderCacheEntry[]
cache_keystringbắt buộccreated_atstring (date-time)bắt buộclast_used_atstring (date-time)bắt buộcservice_idstring (uuid)bắt buộcservice_namestringbắt buộcsize_bytesinteger (int64)bắt buộc
reclaimed_bytesinteger (int64)bắt buộcremaining_bytesinteger (int64)bắt buộc
List running and recent builder jobs (up to 100), including jobs waiting for this selected builder
/api/v1/builders/{id}/jobsPhản hồi
200 List running and recent builder jobs (up to 100), including jobs waiting for this selected builder
BuilderJob[]builder_idstring | null (uuid)cancel_requestedbooleanbắt buộccreated_atstring (date-time)bắt buộcdeployment_idstring (uuid)bắt buộcdisconnect_retriesinteger (int32)bắt buộcfinished_atstring | null (date-time)idstring (uuid)bắt buộcservice_idstring (uuid)bắt buộcservice_namestringbắt buộcstarted_atstring | null (date-time)statusstringbắt buộc
Delete an environment
/api/v1/environments/{id}Phản hồi
- 204 Delete an environment
List an environment's services
/api/v1/environments/{id}/servicesPhản hồi
200 List an environment's services
ServiceView[]created_atstring (date-time)bắt buộcenvironment_idstring (uuid)bắt buộcidstring (uuid)bắt buộckindstringbắt buộcnamestringbắt buộcserver_idstring (uuid)bắt buộcspecanybắt buộcstatusstringbắt buộc
Create a service
/api/v1/environments/{id}/servicesNội dung gửi lênapplication/json
CreateService
kindstringbắt buộcnamestringbắt buộcserver_idstring (uuid)bắt buộcspecany
Phản hồi
201 Create a service
ServiceViewcreated_atstring (date-time)bắt buộcenvironment_idstring (uuid)bắt buộcidstring (uuid)bắt buộckindstringbắt buộcnamestringbắt buộcserver_idstring (uuid)bắt buộcspecanybắt buộcstatusstringbắt buộc
List projects
/api/v1/projectsPhản hồi
200 List projects
ProjectView[]created_atstring (date-time)bắt buộcdescriptionstringbắt buộcidstring (uuid)bắt buộcnamestringbắt buộc
Create a project
/api/v1/projectsNội dung gửi lênapplication/json
CreateProject
descriptionstring | nullnamestringbắt buộc
Phản hồi
201 Create a project
ProjectViewcreated_atstring (date-time)bắt buộcdescriptionstringbắt buộcidstring (uuid)bắt buộcnamestringbắt buộc
Get a project
/api/v1/projects/{id}Phản hồi
200 Get a project
ProjectViewcreated_atstring (date-time)bắt buộcdescriptionstringbắt buộcidstring (uuid)bắt buộcnamestringbắt buộc
Rename or describe a project
/api/v1/projects/{id}Nội dung gửi lênapplication/json
CreateProject
descriptionstring | nullnamestringbắt buộc
Phản hồi
200 Rename or describe a project
ProjectViewcreated_atstring (date-time)bắt buộcdescriptionstringbắt buộcidstring (uuid)bắt buộcnamestringbắt buộc
Delete a project and its environments
/api/v1/projects/{id}Phản hồi
- 204 Delete a project and its environments
List a project's environments
/api/v1/projects/{id}/environmentsPhản hồi
200 List a project's environments
EnvironmentView[]descriptionstringbắt buộcidstring (uuid)bắt buộcnamestringbắt buộcproject_idstring (uuid)bắt buộc
Create an environment
/api/v1/projects/{id}/environmentsNội dung gửi lênapplication/json
CreateEnvironment
descriptionstring | nullnamestringbắt buộc
Phản hồi
201 Create an environment
EnvironmentViewdescriptionstringbắt buộcidstring (uuid)bắt buộcnamestringbắt buộcproject_idstring (uuid)bắt buộc
List servers
/api/v1/serversPhản hồi
200 List servers
ServerView[]agent_versionstring | nullauto_prunebooleanbắt buộcRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)bắt buộcdescriptionstringbắt buộcdocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)bắt buộckindstringbắt buộclast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringbắt buộcos_infostring | nullpublic_ipstring | nullstatusstringbắt buộctelemetry_droppedinteger (int64)bắt buộcTelemetry items the agent discarded because its buffer was full.
Add a server; remote servers get a one-time join command
/api/v1/serversNội dung gửi lênapplication/json
CreateServer
descriptionstring | nullkindstringbắt buộcnamestringbắt buộcpublic_ipstring | null
Phản hồi
201 Add a server; remote servers get a one-time join command
CreatedServeragent_versionstring | nullauto_prunebooleanbắt buộcRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)bắt buộcdescriptionstringbắt buộcdocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)bắt buộckindstringbắt buộclast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringbắt buộcos_infostring | nullpublic_ipstring | nullstatusstringbắt buộctelemetry_droppedinteger (int64)bắt buộcTelemetry items the agent discarded because its buffer was full.
join_commandstring | nulljoin_tokenstring | null
Update a server's name, description, IP, or auto-prune
/api/v1/servers/{id}Nội dung gửi lênapplication/json
UpdateServer
auto_pruneboolean | nullPrune dangling images and build cache once a day.
descriptionstring | nullnamestring | nullpublic_ipstring | null
Phản hồi
200 Update a server's name, description, IP, or auto-prune
ServerViewagent_versionstring | nullauto_prunebooleanbắt buộcRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)bắt buộcdescriptionstringbắt buộcdocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)bắt buộckindstringbắt buộclast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringbắt buộcos_infostring | nullpublic_ipstring | nullstatusstringbắt buộctelemetry_droppedinteger (int64)bắt buộcTelemetry items the agent discarded because its buffer was full.
Delete a server and revoke its agent certificate
/api/v1/servers/{id}Phản hồi
- 204 Delete a server and revoke its agent certificate
Issue a new join token for a remote server (valid for one hour)
/api/v1/servers/{id}/join-tokenPhản hồi
200 Issue a new join token for a remote server (valid for one hour)
JoinTokenexpires_atstring (date-time)bắt buộcjoin_commandstringbắt buộcjoin_tokenstringbắt buộc
Refresh Docker and OS facts for a server
/api/v1/servers/{id}/probePhản hồi
200 Refresh Docker and OS facts for a server
ServerViewagent_versionstring | nullauto_prunebooleanbắt buộcRemove dangling images and build cache once a day.
cpu_countinteger | null (int32)created_atstring (date-time)bắt buộcdescriptionstringbắt buộcdocker_versionstring | nullenrolled_atstring | null (date-time)When the agent last exchanged a join token for a certificate.
hostnamestring | nullHostname the agent reported.
idstring (uuid)bắt buộckindstringbắt buộclast_heartbeat_atstring | null (date-time)last_pruned_atstring | null (date-time)memory_bytesinteger | null (int64)namestringbắt buộcos_infostring | nullpublic_ipstring | nullstatusstringbắt buộctelemetry_droppedinteger (int64)bắt buộcTelemetry items the agent discarded because its buffer was full.
All services with their project and environment
/api/v1/servicesPhản hồi
200 All services with their project and environment
ServiceSummary[]environment_idstring (uuid)bắt buộcenvironment_namestringbắt buộcidstring (uuid)bắt buộckindstringbắt buộcnamestringbắt buộcproject_idstring (uuid)bắt buộcproject_namestringbắt buộcserver_idstring (uuid)bắt buộcstatusstringbắt buộc
Get a service
/api/v1/services/{id}Phản hồi
200 Get a service
ServiceViewcreated_atstring (date-time)bắt buộcenvironment_idstring (uuid)bắt buộcidstring (uuid)bắt buộckindstringbắt buộcnamestringbắt buộcserver_idstring (uuid)bắt buộcspecanybắt buộcstatusstringbắt buộc
Update a service
/api/v1/services/{id}Nội dung gửi lênapplication/json
UpdateService
server_idstring | null (uuid)specany
Phản hồi
200 Update a service
ServiceViewcreated_atstring (date-time)bắt buộcenvironment_idstring (uuid)bắt buộcidstring (uuid)bắt buộckindstringbắt buộcnamestringbắt buộcserver_idstring (uuid)bắt buộcspecanybắt buộcstatusstringbắt buộc
Delete a service and its containers
/api/v1/services/{id}Phản hồi
- 204 Delete a service and its containers
List environment variables; secret values are masked
/api/v1/services/{id}/envPhản hồi
200 List environment variables; secret values are masked
EnvVarView[]is_build_secretbooleanbắt buộckeystringbắt buộclengthinteger (int32)bắt buộcCharacters in the saved value, so a typo or a truncated paste shows without revealing it.
updated_atstring (date-time)bắt buộcWhen the value was last written.
Set an environment variable
/api/v1/services/{id}/envNội dung gửi lênapplication/json
PutEnvVar
is_build_secretbooleanbắt buộckeystringbắt buộcvaluestringbắt buộc
Phản hồi
- 204 Set an environment variable
Preview or save many variables from the text of a .env file
/api/v1/services/{id}/env/importNội dung gửi lênapplication/json
ImportEnv
dry_runbooleanOnly report what would change; save nothing.
is_build_secretbooleantextstringbắt buộcThe text of a
.envfile:KEY=valuelines,#comments, quotes.
Phản hồi
200 Preview or save many variables from the text of a .env file
ImportEnvResultappliedbooleanbắt buộcThe values were saved. False for a dry run or when the text has errors.
entriesImportEnvEntry[]bắt buộcImportEnvEntry[]
keystringbắt buộclengthinteger (int32)bắt buộcstatusstringbắt buộcnew,changed, orunchangedcompared with what is saved.
errorsImportEnvError[]bắt buộcImportEnvError[]
lineinteger (int32)bắt buộcmessagestringbắt buộc
Delete an environment variable
/api/v1/services/{id}/env/{key}Phản hồi
- 204 Delete an environment variable
Check a typed value against the saved one without revealing it
/api/v1/services/{id}/env/{key}/verifyNội dung gửi lênapplication/json
VerifyEnvVar
is_build_secretbooleanvaluestringbắt buộc
Phản hồi
200 Check a typed value against the saved one without revealing it
VerifyEnvResultmatchesbooleanbắt buộcThe value typed matches the saved one exactly.
Agent binaries and checksums
/downloads/{file}Phản hồi
- 200 Agent binaries and checksums
Agent install script (text/x-shellscript)
/install-agent.shPhản hồi
- 200 Agent install script (text/x-shellscript)