November 29, 2016


Order a Netscaler
Example of how to order a NetScaler ADC.

import SoftLayer
from pprint import pprint as pp

class orderNetscaler():

    def __init__(self):

        self.client = SoftLayer.Client()

    def main(self):

        productOrder = {
        'orderContainers': [
            {"hardware": [{
                "primaryBackendNetworkComponent": {
                    # REPLACE THIS
                    "networkVlanId": 1234
                },
                "primaryNetworkComponent": {
                    # REPLACE THIS
                    "networkVlanId": 456
                }
            }],
            # REPLACE THIS with your location
            "location": "DALLAS09",
            "packageId": 192,
            "quantity": 1,
            # Price IDS for Netscaler and 2 IPs
            "prices": [
                {"id": 44964},
                {"id": 17238}
            ]
        }]
        }
        order = self.client['Product_Order'].placeOrder(productOrder)
        pp(order)

if __name__ == "__main__":
    main = example()
    main.main()

Feedback?

We would love to hear it
Open an issue

/python/orderNetscaler/