Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created May 18, 2015 18:49

Revisions

  1. underscorephil created this gist May 18, 2015.
    15 changes: 15 additions & 0 deletions get_spare_pool.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    import SoftLayer.API
    from pprint import pprint as pp

    apiUsername = ''
    apiKey = ''

    client = SoftLayer.Client(
    username=apiUsername,
    api_key=apiKey,
    )


    hardware = client['Account'].getHardware(
    filter={'hardware': {'sparePoolBillingItem': {'d' : {'operation': 'NOT NULL'}}}})
    pp(hardware)