Skip to content

Instantly share code, notes, and snippets.

from pprint import pprint as pp
import SoftLayer
client = SoftLayer.Client()
mgr = SoftLayer.CCIManager(client)
serverId = 1234
mask = ('mask[monitoringAgents[id,name,statusName]]')
server = mgr.get_instance(serverId, mask=mask)
pp(server)
<?php
/**
* Retrieve metric data for a single server.
*
* This example shows how to use the SoftLayer API to retrieve metric data for
* Advanced Monitoring on a single hardware or virtual guest server instance.
*
* We will call the SoftLayer API to retrieve the monitoring agents,
* configuration template, and configuration values for a server instance.
* Then we will demonstrate how to find definitions that you have enabled for

Keybase proof

I hereby claim:

  • I am underscorephil on github.
  • I am underscorephil (https://keybase.io/underscorephil) on keybase.
  • I have a public key whose fingerprint is 0D03 E825 D2B6 CDC4 5437 5A3E FCAB D81B A164 600D

To claim this, I am signing this object:

import SoftLayer.API
from pprint import pprint as pp
apiUsername = 'set me'
apiKey = 'set me'
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
quote_id = 1234
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
client = SoftLayer.Client(
username=api_username,
api_key=api_key
)
guest = {
"complexType": "SoftLayer_Virtual_Guest",
"hostname": "userdatatest",
"domain": "example.com",
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
)
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,
)