'{username}', 'apiKey' => '{apiKey}', )); $service = $client->loadBalancerService(null, '{region}'); // Retrieve your load balancer $lb = $service->loadBalancer('{loadBalancerId}'); // Limit access to just 1 IP CIDR $lb->createAccessList(array( (object) array( 'type' => 'ALLOW', 'address' => '{ipAddress}' // Add your own CIDR ), (object) array( 'type' => 'DENY', 'address' => '0.0.0.0/0' ) ));