Google App Engine

POST Parameters

You can find the list with common parameters for all Buddy actions here.

NameTypeDescription
name
Required
StringThe name of the action.
type
Required
StringThe type of the action. Should be set to GOOGLE_APP_ENGINE.
bucket_name
Required
StringThe name of the GAE Bucket.
application_name
Required
StringThe name of the GAE application.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
version_labelStringThe label of the image version.
image_urlStringThe URL address to the desired image.
promote_all_trafficBooleanSpecifies whether or not to send all traffic to the new version immediately.
stop_previous_versionBooleanSpecifies whether or not to stop previous version instances.
server_keyStringThe GAE server key (base64 encoded).
verbosityStringThe verbosity level. Default level is warning. Can be one of critical, debug, error, info, none or warning.

Example

Request

POST https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions

JSON

{
"name": "Deploy to GAE",
"type": "GOOGLE_APP_ENGINE",
"trigger_time": "ON_EVERY_EXECUTION",
"trigger_condition": "ALWAYS",
"input_type": "SCM_REPOSITORY",
"local_path": "/",
"bucket_name": "artifacts.tokyo-house-112923.appspot.com",
"application_name": "tokyo-house-131123",
"version_label": "123",
"image_url": "gcr.io/your-project-id/your-image",
"promote_all_traffic": true,
"stop_previous_version": true,
"verbosity": "warning",
"server_key":"ewogICJ0eXBlIjogInNlcnZpY2VfYWnjb3VudCIsCiAgInByb2plY3RfaWQiOiAidG9reW8taG91c2UtMTM3OTIzIiwKICAicHJpdmF0ZV9rZXlfaWQiOiAiYjMzMjc0ZDcWOGMzOGNhZjgwNmU1YWU0YzhkZjUwZjJlMGFhODA3MCIsCiAgInByaXZhdGVfa2V5IjogIi0tLS0tQkVHSU4gUFJJVkFURSBLRVktLS0tLVxuTUlJRXZRSUJBREFOQmdrcWhraUc5dzBCQVFFRkFBU0NCS2N3Z2dTakFnRUFBb0lCQVFEZk1DTHZac1oyU01GaFxuY3V0VWhzaC9OYTZxSkFBT1hsT2oweUYwZDRXZFEvakI1MnRNWkFRblZ0NG9Rek02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S0tLS0tXG4iLAogICJjbGllbnRfZW1haWwiOiAidG9reW8taG91c2UtMTM3OTIzQGFwcHNwb3QuZ3NlcnZpY2VhY2NvdW50LmNvbSIsCiAgImNsaWVudF9pZCI6ICIxMTUwNDc3NTUwMTUzNzA1NTQ5NTciLAogICJhdXRoX3VyaSI6ICJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vby9vYXV0aDIvYXV0aCIsCiAgInRva2VuX3VyaSI6ICJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vby9vYXV0aDIvdG9rZW4iLAogICJhdXRoX3Byb3ZpZGVyX3g1MDlfY2VydF91cmwiOiAiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vb2F1dGgyL3YxL2NlcnRzIiwKICAiY2xpZW50X3g1MDlfY2VydF91cmwiOiAiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vcm9ib3QvdjEvbWV0YWRhdGEveDUwOS90b2t5by1ob3VzZS0xMzc5MjMlNDBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iCn0K"
}

Sample Response

HTTP

Status: 201 Created
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999

JSON

{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions/2",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2/action/2/edit",
"id": 2,
"name": "Deploy to GAE",
"type": "GOOGLE_APP_ENGINE",
"trigger_time": "ON_EVERY_EXECUTION",
"trigger_condition": "ALWAYS",
"last_execution_status": "INITIAL",
"input_type": "SCM_REPOSITORY",
"local_path": "/",
"bucket_name": "artifacts.tokyo-house-112923.appspot.com",
"application_name": "tokyo-house-131123",
"version_label": "123",
"image_url": "gcr.io/your-project-id/your-image",
"promote_all_traffic": true,
"stop_previous_version": true,
"verbosity": "warning",
"server_key":"ewogICJ0eXBlIjogInNlcnZpY2VfYWnjb3VudCIsCiAgInByb2plY3RfaWQiOiAidG9reW8taG91c2Ut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WN5WHRRanNqVStFSXhMSG1kRlZId0cvOEVpWDhNOC9hQkFvR0FHZElzT05ucjk2NExMdnN1a0hiUFxuaWdQYThXL2tFN3JDeko1eThDZnh3MGdUTk9RRkRucExjcDlTVUIvQmJRWWYwVFZqdys3cFFrZXQ3UFFNTXR2bVxuaVdQUmxud3FhZnpqVTZlaVNoR0N1UWQrRCtFN1FjaEcvNEozSFVBekIxVGEwTmFTbTNTNS9BUFhwRDdrejBGdlxuWWxEczA2ZlhFQWoxSWRUcmRQeW9FOUU9XG4tLS0tLUVORCBQUklWQVRFIEtFWS0tLS0tXG4iLAogICJjbGllbnRfZW1haWwiOiAidG9reW8taG91c2UtMTM3OTIzQGFwcHNwb3QuZ3NlcnZpY2VhY2NvdW50LmNvbSIsCiAgImNsaWVudF9pZCI6ICIxMTUwNDc3NTUwMTUzNzA1NTQ5NTciLAogICJhdXRoX3VyaSI6ICJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vby9vYXV0aDIvYXV0aCIsCiAgInRva2VuX3VyaSI6ICJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vby9vYXV0aDIvdG9rZW4iLAogICJhdXRoX3Byb3ZpZGVyX3g1MDlfY2VydF91cmwiOiAiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vb2F1dGgyL3YxL2NlcnRzIiwKICAiY2xpZW50X3g1MDlfY2VydF91cmwiOiAiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vcm9ib3QvdjEvbWV0YWRhdGEveDUwOS90b2t5by1ob3VzZS0xMzc5MjMlNDBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iCn0K"
"pipeline": {
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2",
"id": 2,
"name": "test server",
"trigger_mode": "MANUAL",
"ref_name": "master",
"last_execution_status": "SUCCESSFUL",
"last_execution_revision": "506a3963507943d6908154f4bc9646e829128a08"
}
}