Skip to content

Instantly share code, notes, and snippets.

<?php
// Include SoftLayer Client
require_once './softlayer-api-php-client/SoftLayer/SoapClient.class.php';
// Define our vars
$apiUser = '';
$apiKey = '';
$serverId = 12345;
$newPassword = '1234abcd';
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
$apiUser = '';
$apiKey = '';
$targetGlobalIp = '1.1.1.1';
$routeToIp = '1.1.1.2';
$accountClient = SoftLayer_SoapClient::getClient('SoftLayer_Account', null, $apiUser, $apiKey);
$objectMask = "mask.ipAddress";
@underscorephil
underscorephil / gist:6168357
Last active December 20, 2015 17:28
2018 -> vlan priceId 1092 -> 32 Static Public IP Addresses priceId
{
"parameters": [
{
"complexType": "SoftLayer_Container_Product_Order_Network_Vlan",
"location": 142775,
"routerId": 52730,
"packageId": 0,
"prices": [
{ "id": 2018 },
{ "id": 1092 }
{
"parameters": [
{
"complexType": "SoftLayer_Container_Product_Order",
"packageId": 0,
"prices": [
{
"id": 16984
}
]
{
"parameters":[
"tag1, tag2, tag3",
{"id": 2},
12345
]
}
@underscorephil
underscorephil / netscaler_order.json
Created August 2, 2013 14:28
Order object for a Citrix NetScaler VPX 10.1 1000Mbps Standard with 1 Static Public IP Address
{
"parameters": [
{
"complexType": "SoftLayer_Container_Product_Order",
"location": 224092,
"packageId": 0,
"prices": [
{
"id": 22307
},
{
"parameters":[
"test",
[{"id": 123456}],
"This is a note"
]
}