Items with tag python

Router Model Map Jun 23, 2017
Finds the model number of all networking equipment that is on the way to servers on the account.

View Example

Create a Security group Jun 20, 2017
Example for creating a Security Group.

View Example

Provision Times Jun 12, 2017
Generates a report of how long servers took to provision

View Example

Get bills by user Jun 9, 2017
Goes through the upcoming invoice, collects billing items by their user, and prints out the results along with a sum of costs

View Example

Tag Vlans Jun 9, 2017
Some examles of how to add vlans to a server

View Example

Get Virtual Console Virtual Guest May 4, 2017
Retrieve the IP, username, and password needed to access the KVM console for a Virtual Guest.

View Example

Reloading a server with a custom partition scheme Mar 29, 2017
The script will issue an OS reload on your Bare Metal server with a custom partition scheme.

View Example

Network Topology Mar 17, 2017
Prints out a rough topology of your network. DC -> Router -> Vlan -> Server, and includes gateways if applicable

View Example

Endurance Storage Replication Feb 21, 2017
Examples on ordering, snapshots, and replication for endurance storage.

View Example

Subnets and Bandwidth Pools Feb 16, 2017
An example of getting information on portable subnets and servers in a bandwidth pool.

View Example

Get verbose details about a Bare Metal Server Dec 29, 2016
Retrieve the packages, categories and items associated with a Bare Metal Server.

View Example

Get verbose details about a Virtual Guest Dec 29, 2016
Retrieve the packages, categories and items associated with a Virtual Guest.

View Example

Order a Netscaler Nov 29, 2016
Example of how to order a NetScaler ADC.

View Example

Get a list of Virtual Guests and Bare Metal servers per Pod in a Datacenter Nov 18, 2016
List active Bare Metal and Virtual servers from each pod from a specific datacenter.

View Example

Migrating a VSI from SAN to Local Storage and vice-versa Nov 7, 2016
Example on how to call verifyOrder / placeOrder via REST to migrate a Virtual_Guest from SAN to Local storage and vice-versa.

View Example

Monitoring Examples Oct 12, 2016
A few examples on how to interact with SoftLayer Monitoring

View Example

Advanced Quote Ordering Oct 5, 2016
Place an order using a quote with SSH keys and post provisioning scripts. Along with a few examples of how to get the needed data.

View Example

Create a snapshot schedule Aug 23, 2016
Create a snapshot schedule for Endurance storage.

View Example

Create Storage Snapshot Aug 11, 2016
Initiate a manual snapshot of an Endurance or Performance Block storage volume.

View Example

Create A Domain Apr 29, 2016
Example of how to create a Domain in the SoftLayer DNS, along with how to edit its resource records.

View Example

Create a new Bandwidth Pool Apr 29, 2016
Creating a new Bandwidth pool. This allows you to optimize your bandwidth usage by _pooling_ all of the bandwidth together for servers in a the Pool.

View Example

Order a Local Load Balancer Apr 29, 2016
Order a local load balancer using SoftLayer_Product_Item_Price objects

View Example

Adding/Removing Servers in a Bandwidth Pool Apr 28, 2016
Adding and removing Virtual Guests and Bare Metal Servers in an existing Bandwidth Pool

View Example

Get storage credentials for Block Storage Apr 28, 2016
Retrieving the username and password for Performance/Endurance Block storage

View Example

Find Location specific pricing for a package Apr 12, 2016
Use an object filter and object mask to return the Location Based pricing information for a SoftLayer package.

View Example

Find standard location pricing for a package Apr 12, 2016
Use an object filter to only return the Standard Location pricing for a SoftLayer package. This is a priceItemId that is standard accross all SoftLayer Datacenters

View Example

Upgrade Hardware and Virtual Servers Mar 22, 2016
A few examples on how to find upgrade prices, actually do the upgrade with a maintenance window, and verify everything.

View Example

Backup and Restore firewall rules Mar 7, 2016
A quick example on how to backup firewall rules to a file and restore those rules.

View Example

Attach and Detach a Block Device to a Virtual_Guest Mar 3, 2016
Attaching and detaching secondary block devices on Virtual Guests

View Example

Update Firmware on a Bare Metal Server Mar 3, 2016
Create a firmware update transaction for the IPMI, BIOS, Hard Drives, or Raid Controller on your Bare Metal Server

View Example

Manage Users Mar 1, 2016
A script to create users and a script to disable users. Used mostly for setting up lab users and then cleaning up after.

View Example

Get Notifications Feb 26, 2016
Gets a list of upcoming maintenance events

View Example

Get tickets using an objectFilter Feb 26, 2016
Pulls down all the cancellation tickets created after a set date, along with any updates

View Example

Creating a support ticket Feb 9, 2016
Create a standard support ticket assigned to your user

View Example

Cancel an item or service Feb 8, 2016
Use cancelService to cancel an item or service

View Example

Determining your next bill Feb 8, 2016
Example on how to use getNextInvoiceTotalAmount to retrieve the pre-tax total amount of an account's next invoice measured in US Dollars ($USD)

View Example

Find a billing item from a provisioned product Feb 8, 2016
Determine the billing item of a provisioned product using getBillingItem

View Example

Month-to-date cost of a Virtual_Guest Feb 8, 2016
Determine the month-to-date cost of an hourly Virtual_Guest using getBillingItem and an objectMask

View Example

Reload with SSH keys Jan 28, 2016
Reloads a server with an image template and some ssh keys

View Example

Modify the configuration for a Bare Metal Server. Jan 11, 2016
Shows how to edit the current configuration of a Bare Metal Server.

View Example

Edit IP address note Dec 11, 2015
Shows how to get and set the notes for individual IP addresses.

View Example

Place block storage (performance ISCSI) order Nov 12, 2015
Shows how to order a block storage (performance ISCSI)

View Example

Order an SSL Certificate Nov 11, 2015
Explains how to get the information requried to order an SSL Certificate

View Example

getCustomGraphData Oct 11, 2015
An example of how to use getCustomGraphData

View Example

Set user permissions Sep 16, 2015
Adds the TICKET_ADD permission to a user

View Example

List Packages Aug 28, 2015
A handy script with a few examples on how to interact with packages

View Example

Create a new virtual server with all options Aug 1, 2015
Creates a new virtual server (VSI) and demonstrates the many options that can be used to customize the creation. The code includes a commented out section that will create a price quote for the order instead of actually placing the virtual server order.

View Example

Find active VMs by creator Jun 23, 2015
Retrieves the list of virtual instances (VSIs) by the person who created them. If no parameter is provided the code uses the ID you are logged into the SL CLI with.

View Example

Server Bandwidth Jun 15, 2015
A handy script to get and print relevant server bandwidth details

View Example

Password Auth Jun 9, 2015
Authenticate to the API with a username + password instead of an API key. Might be useful if you want to GET the api key without logging in to the portal

View Example

Change Passwords May 30, 2015
Users a prefix to find all matching users on your account, then change their password

View Example

Set a server's metadata Mar 23, 2015
Set a server's metadata

View Example

List Instances Jan 1, 2015
Shows how to use one of the python client's managers, VSManager.list_instances() specifically

View Example

Create a virtual server from an existing image template Sep 1, 2014
Provide an image template with a virtual machine order instead of an OS

View Example

Create child SoftLayer Account Sep 1, 2014
Create SoftLayer End-Customer Account on Brand Account

View Example

Get IPMI info for BMS Sep 1, 2014
Retrieve IPMI address, username, and password for all hardware on the account

View Example

Required price IDs for package Sep 1, 2014
For any package retrieve a list of options organized by required category

View Example

Place quote order Feb 12, 2014
Retrieve an order object from a quote and place an order based on it

View Example