| ssh_private_key_passphrase | string {"env": "preview", "site_name": "my-editorial", "replace": true, "disable_deploy_cron": true, "template_name": "local", "repo_url": "/opt/crafter/data/repos/sites/my-editorial/sandbox", } Response samples Content typeapplication/json Get a Crafter Deployer target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
http://localhost:9191/api/1/target/get/{env}/{site_name} Response samples Content typeapplication/json Get all Crafter Deployer targets. http://localhost:9191/api/1/target/get/{env}/{site_name} Response samples Content typeapplication/json Get all Crafter Deployer targets. Responseshttp://localhost:9191/api/1/target/get-all Response samples Content typeapplication/json [{"load_date": "2023-03-30T13:24:36.042181-04:00", "env": "preview", "siteName": "hi", "status": "INIT_COMPLETED", "id": "hi-preview" }, {"load_date": "2023-03-31T09:48:48.214383-04:00", "env": "preview", "siteName": "third", "status": "INIT_COMPLETED", "id": "third-preview" } ]Delete a Crafter Deployer target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
http://localhost:9191/api/1/target/delete/{env}/{site_name} Response samples Content typeapplication/json Delete a Crafter Deployer target if it exists. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
http://localhost:9191/api/1/target/delete-if-exists/{env}/{site_name} Response samples Content typeapplication/json Deploy a Crafter Deployer target. http://localhost:9191/api/1/target/delete-if-exists/{env}/{site_name} Response samples Content typeapplication/json Deploy a Crafter Deployer target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
Request Body schema: application/json| reprocess_all_files | boolean If all files in all the target repos should be reprocessed.
| | from_commit_id | string The id of the commit to start processing changes
Available since version 4.0.0
- | | deployment_mode | string The deployment mode to execute. Possible values: PUBLISH: All processors will run SEARCH_INDEX: Only the indexing processor will run
Available since version 4.0.0
+ | | deployment_mode | string The deployment mode to execute. Possible values: nbsp; PUBLISH: All processors will run SEARCH_INDEX: Only the indexing processor will run
Available since version 4.0.0
|
http://localhost:9191/api/1/target/deploy/{env}/{site_name} Request samples Content typeapplication/json {"reprocess_all_files": true, "from_commit_id": "string", "deployment_mode": "string" } Response samples Content typeapplication/json Deploy all Crafter Deployer targets. http://localhost:9191/api/1/target/deploy/{env}/{site_name} Request samples Content typeapplication/json {"reprocess_all_files": true, "from_commit_id": "string", "deployment_mode": "string" } Response samples Content typeapplication/json Deploy all Crafter Deployer targets. Request Body schema: application/json| reprocess_all_files | boolean If all files in all the target repos should be reprocessed.
@@ -532,10 +532,10 @@
" class="sc-eVqvcJ sc-fszimp sc-etsjJW kIppRw jnwENr ljKHqG"> Internal server error
http://localhost:9191/api/1/target/deploy-all Request samples Content typeapplication/json Response samples Content typeapplication/json Get the pending deployments for a target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
http://localhost:9191/api/1/target/deployments/get-pending/{env}/{site_name} Response samples Content typeapplication/json Get the current deployment for a target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
http://localhost:9191/api/1/target/deployments/get-current/{env}/{site_name} Response samples Content typeapplication/json Get the current and pending deployments for a target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
http://localhost:9191/api/1/target/deployments/get-all/{env}/{site_name} Response samples Content typeapplication/json Clear git lock of a Crafter Deployer target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
query Parameters| token required | string Example: token=defaultManagementToken |
http://localhost:9191/api/1/target/unlock/{env}/{site_name} Response samples Content typeapplication/json Recreate the underlying search index for a Crafter Deployer target. path Parameters| env required | string Example: env,dev The target’s environment (e.g. dev).
- | | site_name required | string Example: site_name,editorial The target’s project/site name (e.g. editorial).
+ path Parameters| env required | string Example: env,dev The target's environment (e.g. dev).
+ | | site_name required | string Example: site_name,editorial The target's project/site name (e.g. editorial).
|
query Parameters| token required | string Example: token=defaultManagementToken |
http://localhost:9191/api/1/target/recreate/{env}/{site_name} Response samples Content typeapplication/json Duplicate a target path Parameters| env required | string Example: dev The target’s environment (e.g. dev).
+ path Parameters| env required | string Example: dev The target's environment (e.g. dev).
| | source_site_name required | string Example: editorial The source project/site name (e.g. editorial).
|
Request Body schema: application/jsonrequired Duplicate target's request body
- | env required | string The target’s environment (e.g. dev).
- | | site_name required | string The target’s project/site name (e.g. my-editorial).
+ | env required | string The target's environment (e.g. dev).
+ | | site_name required | string The target's project/site name (e.g. my-editorial).
| | replace | boolean Replace the existing target.
| | template_name | string Only use with remote template. The branch name of the remote Git repo to pull from. If not specified, the branch will be whatever branch is the current one in the remote repo.
| | repo_username | string Only use with remote template. The username of the remote Git repo.
- | | repo_password | string Only use with remote template. The password of the remote Git repo.
+ | | repo_password | string Only use with remote template. The username of the remote Git repo.
| | ssh_private_key_path | string Only use with remote template. The path for the private key used for the remote Git repo.
| | ssh_private_key_passphrase | http://localhost:9191/api/1/target/duplicate/{env}/{source_site_name} Request samples Content typeapplication/json {"env": "string", "site_name": "string", "replace": true, "template_name": "string", "disable_deploy_cron": true, "repo_url": "string", "repo_branch": "string", "repo_username": "string", "repo_password": "string", "ssh_private_key_path": "string", "ssh_private_key_passphrase": "string", "engine_url": "string", "notification_addresses": "string", "source": {"env": "string", "site_name": "string", "replace": true, "template_name": "string", "disable_deploy_cron": true, "repo_url": "string", "repo_branch": "string", "repo_username": "string", "repo_password": "string", "ssh_private_key_path": "string", "ssh_private_key_passphrase": "string", "engine_url": "string", "notification_addresses": "string" } } Response samples Content typeapplication/json Get Crafter Deployer's version details. Get a Crafter Deployer's version details. query Parameters| token required | string Example: token=defaultManagementToken The authorization token
@@ -662,19 +662,13 @@
" class="sc-eVqvcJ sc-fszimp sc-etsjJW kIppRw jnwENr ljKHqG"> Unauthorized
http://localhost:9191/api/1/monitoring/version Response samples Content typeapplication/json {"packageName": "Crafter Deployer", "packageVersion": "4.1.0-SNAPSHOT", "packageBuild": "f33f1804c95dd0df4902c9732203841d22022459", "packageBuildDate": "2023-04-17T21:28:40.642Z" }Get Crafter Deployer's system information details. http://localhost:9191/api/1/monitoring/version Response samples Content typeapplication/json {"packageName": "Crafter Deployer", "packageVersion": "4.1.0-SNAPSHOT", "packageBuild": "f33f1804c95dd0df4902c9732203841d22022459", "packageBuildDate": "2023-04-17T21:28:40.642Z" }Get a Crafter Deployer's version details. query Parameters| token required | string Example: token=defaultManagementToken |
http://localhost:9191/api/1/monitoring/sysinfo Response samples Content typeapplication/json {"packageName": "Crafter Deployer", "packageVersion": "4.1.0-SNAPSHOT", "packageBuild": "f33f1804c95dd0df4902c9732203841d22022459", "packageBuildDate": "2023-04-17T21:28:40.642Z", "osName": "Mac OS X", "osVersion": "13.2.1", "osArch": "x86_64", "javaVersion": 17, "javaVendor": "Oracle Corporation", "javaVm": "OpenJDK 64-Bit Server VM" }Get Crafter Deployer's status details. http://localhost:9191/api/1/monitoring/sysinfo Response samples Content typeapplication/json {"packageName": "Crafter Deployer", "packageVersion": "4.1.0-SNAPSHOT", "packageBuild": "f33f1804c95dd0df4902c9732203841d22022459", "packageBuildDate": "2023-04-17T21:28:40.642Z", "osName": "Mac OS X", "osVersion": "13.2.1", "osArch": "x86_64", "javaVersion": 17, "javaVendor": "Oracle Corporation", "javaVm": "OpenJDK 64-Bit Server VM" }Get a Crafter Deployer's status details. query Parameters| token required | string Example: token=defaultManagementToken The authorization token
@@ -686,7 +680,7 @@
" class="sc-eVqvcJ sc-fszimp sc-etsjJW kIppRw jnwENr ljKHqG"> Unauthorized
http://localhost:9191/api/1/monitoring/status Response samples Content typeapplication/json Get Crafter Deployer's memory details. http://localhost:9191/api/1/monitoring/status Response samples Content typeapplication/json Get a Crafter Deployer's memory details. query Parameters| token required | string Example: token=defaultManagementToken The authorization token
@@ -700,7 +694,7 @@
" class="sc-eVqvcJ sc-fszimp sc-etsjJW kIppRw jnwENr ljKHqG"> Internal server error
http://localhost:9191/api/1/monitoring/memory Response samples Content typeapplication/json {"MemoryInfo": {"totalJvmMemory": 154140672, "freeJvmMemory": 102165520, "maxJvmMemory": 1073741824, "totalOsMemory": 34359738368, "freeOsMemory": 59957248, "totalSwapMemory": 8589934592, "freeSwapMemory": 1076363264 } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|