November 23, 2017

Get FTP credentials.

Important manual pages

Author: SoftLayer Technologies, Inc. <>

import SoftLayer
import json

# Your SoftLayer API username and key.
USERNAME = 'set me'
API_KEY = 'set me'

# The transcode account id from where you wish to get the credentials.
transcodeAccountId = 1514

# Declares the service.
client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
transcodeService = client['SoftLayer_Network_Media_Transcode_Account']

    credentials = transcodeService.getFtpAttributes(id=transcodeAccountId)
    print(json.dumps(credentials, sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to get the credentials. faultCode=%s, faultString=%s" % (e.faultCode, e.faultString))


We would love to hear it
Open an issue