API Docs

This functionality of the Ubiquity API has been disabled. Looking for information on this transition to LeaseWeb? Click here for answers to FAQs and here for information on the LeaseWeb customer portal. Click here for information about the Leaseweb API.

Get to know get_stock_levels

Overview: get_stock_levels returns server stock level inventory counts, per each location. Clients are only granted access on a valid as-needed basis.

get_stock_levels expects no parameters.

Example:

$api->call('dedicated.get_stock_levels');

Output:

Array(
    [status] => 1
    [data] => Array(
        [Location X] => Array(
            [0] => Array(
                [name] => Intel Core2Duo E4400 - 2.0GHz
                [qty] => 15
            )
            [1] => Array(
                [name] => Intel Xeon Lynnfield X3460 - 4 x 2.8GHz
                [qty] => 7
            )
            [2] => Array(
		        [name] => Intel Xeon Lynnfield X3430 - 4 x 2.4GHz
                [qty] => 8
            )
        )
        [Location Y] => Array(
            [0] => Array(
                [name] => Intel Xeon Kentsfield X3210 - 4 x 2.13GHz
                [qty] => 4
            )
            [1] => Array(
                [name] => Dual Intel Xeon Nehalem E5520 - 4 x 2.26GHz
                [qty] => 16
            )
            [2] => Array(
                [name] => Intel Xeon Lynnfield X3460 - 4 x 2.8GHz
                [qty] => 7
            )
        )
        [Location Z] => Array(
            [0] => Array(
                [name] => Intel Xeon Lynnfield X3430 - 4 x 2.4GHz
                [qty] => 5
            )
            [1] => Array(
                [name] => Intel Xeon Lynnfield X3460 - 4 x 2.8GHz
                [qty] => 2
            )
        )
    )
)