Created
January 9, 2014 00:49
-
-
Save kenperkins/8327513 to your computer and use it in GitHub Desktop.
Sample Scratch Directory Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pkgcloud = require('pkgcloud'), | |
log = require('../../common/logging'), | |
_ = require('underscore'), | |
config = require('../config'); | |
var logger = log.getLogger('debug'); | |
var client = pkgcloud.providers.rackspace.loadbalancer.createClient(config.getConfig()); | |
client.on('log::*', log.logFunction); | |
client.createLoadBalancer({ | |
name: 'https=test', | |
protocol: { | |
name: 'TCP_CLIENT_FIRST', | |
port: 32129 | |
}, | |
// nodes: [ | |
// { | |
// "address": "192.168.10.1", | |
// "port": 80, | |
// "condition": 'ENABLED' | |
// }, | |
// { | |
// "address": "192.168.10.2", | |
// "port": 80, | |
// "condition": "ENABLED" | |
// } | |
// ], | |
virtualIps: [ | |
{ | |
type: pkgcloud.providers.rackspace.loadbalancer.VirtualIpTypes.PUBLIC | |
} | |
] | |
}, function (err, lb) { | |
console.log(JSON.stringify(err, null, ' ')); | |
console.dir(lb); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment