This file contains 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
$result = $this->uber->call( | |
'device.module_call', | |
array( | |
'device_id'=>$vip['device_id'], | |
'module_id'=>'virtualip', | |
'function'=>'edit', | |
array( | |
'editclick'=>1, | |
'loadbalancer'=>$lb_server, | |
'vip'=>$vserver_name |
This file contains 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
<?php | |
/** | |
* A soap _client_ for accessing other apis | |
* | |
*/ | |
namespace soap; | |
class Soap extends \core\LibBase { |
This file contains 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
function device_is_voxserver_compat($dev, $allow_custom = false) | |
{ | |
if($dev['devtype_group_id'] != VOXSERVERS_DEVICE_GROUP_ID) | |
return false; | |
if($allow_custom) | |
return true; | |
$dev_config_id = $dev['metadata']['voxserver_sellable_config']; | |
//make sure $this->configs s initialize |
This file contains 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
// grab report from device(s) using dm_virtualip module | |
$req = array( | |
'device_module' => 'dm_virtualip', | |
'function' => 'report', | |
'type' => 'loadbalancer', | |
'device' => $device, | |
'loadbalancer' => 'stingray.dev.voxel.net', | |
'virtualip' => '7925-4119-vserver', | |
'start' => $request['start'], | |
'end' => $request['end'], |
This file contains 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
10:03 [voxel] -!- #voxdev dcoe H 0 ~DCoe@dhcp-63-251-67-187.acs.internap.com [David Coe] | |
10:03 [voxel] -!- #voxdev jamesc G 0 ~Adium@dhcp-63-251-67-109.acs.internap.com [Adium User] | |
10:03 [voxel] -!- #voxdev jkr H 0 ~jkr@c-98-252-242-51.hsd1.ga.comcast.net [Jay K. Robertson] | |
10:03 [voxel] -!- #voxdev Corey H 0 ~Adium@nat-loopback.lga4.us.corp.voxel.net [Adium User] | |
10:03 [voxel] -!- #voxdev zac H@ 0 ~zac@api2.dev.voxel.net [zac] | |
10:03 [voxel] -!- #voxdev josh_spice H 0 ~Adium@nat-loopback.lga4.us.corp.voxel.net [Adium User] | |
10:03 [voxel] -!- #voxdev daisy H 0 ~daisy@shuffman-linux.acs.internap.com [Daisy Beckenbach] | |
10:03 [voxel] -!- #voxdev vetere H@ 0 ecv@postmeta.net [blue bell knoll] | |
10:03 [voxel] -!- #voxdev gdeforest H 0 ~Adium@nat-loopback.lga4.us.corp.voxel.net [Adium User] | |
10:03 [voxel] -!- #voxdev pdowell_home H@ 0 ~pdowell@pool-71-167-144-49.nycmny.fios.verizon.net [Patrick Dowell] |
This file contains 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
(api2):slevine> hapi files.objects.create customer_id=7614 container=stusworldofstuff object=stuobject | |
{ | |
"response" : { | |
"status" : "ok", | |
"http_request" : { | |
"headers" : [ | |
{ | |
"X-Auth-Token" : "e01b4d573a52424c84c599c2408a0a54" | |
} | |
], |
This file contains 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
{ | |
"sites": [ | |
{ | |
"stageVersion": 0, | |
"isDefault": true, | |
"id": 20448, | |
"operationalStatus": "ENABLED", | |
"name": "HTTPS Path Match Site", | |
"serviceType": { | |
"allowPublish": true, |
This file contains 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
$duse = $cdn->reseller_api->GetDiskUsageForDomain( | |
array( | |
'domainID'=>23467, | |
'rangeStart'=>'2013-05-29T00:00:00Z', | |
'rangeEnd'=>'2013-05-31T00:00:00Z') | |
); | |
apish> pexport($duse); | |
array ( |
This file contains 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
Now fixed via NJ Router ACL additions this morning and my iptables lbaas1 additions below (lbaas2 & 3 need these as well): | |
root@lbaas1.lga11 /home/slevine # iptables -S | |
-P INPUT ACCEPT | |
-P FORWARD ACCEPT | |
-P OUTPUT ACCEPT | |
-A INPUT -s 74.63.39.138/32 -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -s 192.170.149.250/32 -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -s 173.231.130.227/32 -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -s 74.201.59.61/32 -d 192.170.150.66/32 -p tcp -m tcp --dport 80 -j ACCEPT |
This file contains 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
root@uberdev.ldj1 /home/slevine # iptables -S | |
-P INPUT ACCEPT | |
-P FORWARD ACCEPT | |
-P OUTPUT ACCEPT | |
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT | |
-A INPUT -s 74.63.39.138/32 -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -s 192.170.149.250/32 -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -s 173.231.130.227/32 -p tcp -m tcp --dport 22 -j ACCEPT | |
-A INPUT -s 208.122.10.36/32 -p tcp -m tcp --dport 22 -j ACCEPT |
OlderNewer