'{username}', 'apiKey' => '{apiKey}', )); $service = $client->loadBalancerService(null, '{region}'); // Create empty object $lb = $service->loadBalancer(); // Optional: add back-end nodes that need to be load balanced. These are // usually servers. $serverNode = $lb->node(array( 'address' => '{ipAddress}', // substitute your server's IPv4 address 'port' => 80, 'condition' => 'ENABLED', )); // Configure the type of Virtual IP your LB will use $lb->addVirtualIp('PUBLIC'); // Create it $lb->create(array( 'name' => '{name}', 'port' => 80, 'protocol' => 'HTTP', 'nodes' => array($serverNode) ));