ContinuityApp

Fetch a Deploy Strategy

Fetches an existing deploy strategy from an existing project.

Auth&ACL

Both users and collaborators can access this API, via OAuth deploys scope (or HTTP Basic Authentication for development purposes).

Definition

GET https://v1.continuityapp.ws/projects/<project_id>/deploy_strategies/<deploy_strategy_id>

Example request

$ curl https://v1.continuityapp.ws/projects/123456789123456789/deploy_strategies/123456789123456789?oauth_token=<access_token>

Returns

A deploy strategy is returned, with the following fields:

Fields  
id Unique id - You will use it while performing Delete requests, or Create Deploy
name Human-friendly name of the deploy strategy.
strategy_type Can be git. We are working to add more deploy handlers.
options An array of deploy options

Example response

{
  "response": {
    "id": 123456789123456789,
    "id_str": "123456789123456789",
    "name": "heroku staging",
    "strategy_type": "git",
    "options": {
      "repository_url": "git@heroku.com:continuityapp-demo.git",
      "local_branch": "master",
      "remote_branch": "master"
    }
  }
}

Errors

There are no specific errors for this API.

comments powered by Disqus