Skip to content

Instantly share code, notes, and snippets.

@jamiehannaford
Created December 13, 2013 12:24
Show Gist options
  • Save jamiehannaford/7943518 to your computer and use it in GitHub Desktop.
Save jamiehannaford/7943518 to your computer and use it in GitHub Desktop.
Change the condition of a LB Node
use OpenCloud\Rackspace;
$client = new Rackspace(Rackspace::US_IDENTITY_ENDPOINT, [
'username' => 'foo',
'apiKey' => 'bar'
]);
$service = $client->loadBalancerService();
$loadBalancer = $service->loadBalancer('<lb_id>');
$node = $loadBalancer->node('<node_id>');
$node->condition = 'ENABLED';
$node->update();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment