Deployment API
ace-deployment-server
service exposes API endpoints which are mostly used by ACE CLI commands.
This page describes stable API endpoints that can be used by external tools.
API endpoints
Deploy git workspace
This API is used to deploy workspace from git repository to production environment.
POST http://{ace-deployment-server}/deploy/workspace/git
Query parameters
merge
(pass astrue
) - used to merge existing workspace with a new one
Body
repository
- repository urltoken
- git tokenbranch
- git branch namecommit
optional - git commitusername
optional - git usernamerepositoryWorkspacePath
(default:src/ace
) - path to workspace.
Deploy workspace from zip file
This API is used to deploy workspace from zip file to production environment.
POST http://{ace-deployment-server}/deploy/workspace/zip
Query parameters
merge
(pass astrue
) - used to merge existing workspace with a new one
Body
Need to specify header Content-Type: application/zip
Body must contain binary zip
file content.
Deploy schedules from git repository
This API is used to deploy schedules from git repository to production environment.
POST http://{ace-deployment-server}/deploy/schedules/git
Body
repository
- repository urltoken
- git tokenbranch
- git branch namecommit
optional - git commitusername
optional - git usernamerepositoryWorkspacePath
(default:src/ace
) - path to workspace.
Deploy schedules from zip
This API is used to deploy schedules from zip file to production environment.
POST http://{ace-deployment-server}/deploy/schedules/zip
Body
Need to specify header Content-Type: application/zip
Body must contain binary zip
file content.
Clean up development workspaces
This API is used to delete development workspaces in MongoDB based on workspaces age. By default, workspaces that are older than 24 hours are deleted.
DELETE http://{ace-deployment-server}/clear/workspace/dev?workspaceAge={workspaceAge}
Parameters
workspaceAge
(default:24
) - A optional numeric value that represents hours. Workspaces that are older than the provided value are deleted.
Clear (redis) cache
This API is used to clear cached values in redis database based on prefix.
DELETE http://{ace-deployment-server}/clear/redis/cache
Parameters
Parameters used by this API are set up as environment variables
REDIS_CACHE_URL
- redis connection string, should start withredis://
orrediss://
REDIS_CACHE_KEY
- redis passwordREDIS_KEY_PREFIX
(default:ace-cache
) - prefix to be used by installed jobsREDIS_CACHE_DB
- redis dbREDIS_CACHE_HOST
- redis hostREDIS_CACHE_PORT
- redis portREDIS_CACHE_USER
- redis usernameREDIS_CACHE_TLS_ENABLED
- redis tls enabled flagREDIS_CACHE_TLS_KEY
- redis tls keyREDIS_CACHE_TLS_CERT
- redis tls certREDIS_CACHE_TLS_CA
- redis tls ca