DemocracyOSManager.deleteDeployment()

Delete a DemocracyOS Deployment.

Usage

Hover over inputs/exits for more info.

var DemocracyOSManager = require('machinepack-democracyosmanager');


// Delete a DemocracyOS Deployment.

DemocracyOSManager.deleteDeployment({

url: 'http://manager.democracyos.com',

access_token: 'a6f743e10d6ba3001c70d0c190c71cf668093370',

name: 'mars-democracy',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Unexpected error occurred.

serverError: function () {

 

},

// When there's something wrong with the request.

badRequest: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

url required

Url of Manager API.

'http://manager.democracyos.com'
access_token required

Access Token for the given Manager API.

'a6f743e10d6ba3001c70d0c190c71cf668093370'
name required

Name of the instnace to Delete.

'mars-democracy'

Exits

error

An unexpected error occurred.

serverError

Unexpected error occurred.

badRequest

When there's something wrong with the request.

success

OK.