Colocation API calls

This page describes all the API calls you can make to get information and control your colocation service(s).
You will always receive the output as described in the documentation below unless an error ocurred. For more information, see the error handling section.

Actions

POST
getAll

Get all your colocation services.


Request parameters
ParameterContextTypeDescription
No parameters
Response parameters
ParameterContextTypeDescription
colocationsarrayAll your colocation services.
coloserverIdcolocationsintThe ID of the colocation service
rackNamecolocationsstringThe name / location of the rack
trafficUsedcolocationsfloatTraffic used in the current contract period
trafficUsedDailyAvecolocationsfloatDaily traffic average
contractTrafficcolocationsintContract traffic bought upfront
contractMaxAmpcolocationsintContract maximum amperage usage
contractStartcolocationsstringContract start date
contractEndcolocationsstringContract end date
contractInvoicedUntilcolocationsstringContract invoiced until date
contractCancelDatecolocationsstringContract cancel date if contract is cancelled
monthlyCostcolocationsstringMonthly cost
unitscolocationsintAmount of units rented
pduscolocationsarrayList of PDUs
lastUpdatepdusintLast updated values timestamp
serialNumberpdusstringPDU serial number
totalKWHpdusintPDU current kWh meter
powerFactorpdusstringPDU current power factor in percentage
ampNowpdusstringPDU current amperage usage
ampPeakpdusstringPDU highest amerage peak
ampMaxpdusstringPDU max usable amperage
voltNowpdusstringPDU current voltage
voltMinpdusstringPDU voltage trough
numberOfPhasespdusintPDU number of phases
numberOfOutletspdusintPDU number of outlets
feedspdusarrayList of all feeds for this PDU
outletNumberfeedsintFeed outlet number
totalKWHfeedsintFeed current kWh meter
ampNowfeedsstringFeed current amperage usage
ampPeakfeedsstringFeed highest amerage peak
voltNowfeedsstringFeed current voltage
voltMinfeedsstringFeed voltage trough
powerFactorfeedsstringFeed current power factor in percentage

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [colocations] => Array
                (
                    [0] => Array
                        (
                            [coloserverId] => 573
                            [rackName] => Suite 08 - Rack 32
                            [trafficUsed] => 100
                            [trafficUsedDailyAve] => 33.33
                            [contractTraffic] => 1000
                            [contractMaxAmp] => 32
                            [contractStart] => 19 Jul 2013
                            [contractEnd] => 01 Aug 2020
                            [contractInvoicedUntil] => 19 Aug 2014
                            [contractCancelDate] => 07 Oct 2014
                            [monthlyCost] => 112 Euro
                            [units] => 46
                            [pdus] => Array
                                (
                                    [0] => Array
                                        (
                                            [lastUpdate] => 1414519287
                                            [serialNumber] => SVNL00006722
                                            [totalKWH] => 10239
                                            [powerFactor] => 99.99
                                            [ampNow] => 12.0
                                            [ampPeak] => 22.5
                                            [ampMax] => 31.5
                                            [voltNow] => 235.5
                                            [voltMin] => 228.2
                                            [numberOfPhases] => 1
                                            [numberOfOutlets] => 3
                                            [feeds] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [outletNumber] => 1
                                                            [totalKWH] => 4242
                                                            [ampNow] => 1.20
                                                            [ampPeak] => 6.8
                                                            [voltNow] => 235.5
                                                            [voltMin] => 228.2
                                                            [powerFactor] => 99.99
                                                        )

                                                    [1] => Array
                                                        (
                                                            [outletNumber] => 2
                                                            [totalKWH] => 2102
                                                            [ampNow] => 2.30
                                                            [ampPeak] => 5.5
                                                            [voltNow] => 235.5
                                                            [voltMin] => 228.2
                                                            [powerFactor] => 99.99
                                                        )

                                                    [2] => Array
                                                        (
                                                            [outletNumber] => 3
                                                            [totalKWH] => 80
                                                            [ampNow] => 5.50
                                                            [ampPeak] => 10.2
                                                            [voltNow] => 235.5
                                                            [voltMin] => 228.2
                                                            [powerFactor] => 99.99
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)
POST
getColoById

Get a colocation service by ID.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
Response parameters
ParameterContextTypeDescription
colocationarrayAll your colocation services.
coloserverIdcolocationsintThe ID of the colocation service
rackNamecolocationsstringThe name / location of the rack
trafficUsedcolocationsfloatTraffic used in the current contract period
trafficUsedDailyAvecolocationsfloatDaily traffic average
contractTrafficcolocationsintContract traffic bought upfront
contractMaxAmpcolocationsintContract maximum amperage usage
contractStartcolocationsstringContract start date
contractEndcolocationsstringContract end date
contractInvoicedUntilcolocationsstringContract invoiced until date
contractCancelDatecolocationsstringContract cancel date if contract is cancelled
monthlyCostcolocationsstringMonthly cost
unitscolocationsintAmount of units rented
pduscolocationsarrayList of PDUs
lastUpdatepdusintLast updated values timestamp
serialNumberpdusstringPDU serial number
totalKWHpdusintPDU current kWh meter
powerFactorpdusstringPDU current power factor in percentage
ampNowpdusstringPDU current amperage usage
ampPeakpdusstringPDU highest amerage peak
ampMaxpdusstringPDU max usable amperage
voltNowpdusstringPDU current voltage
voltMinpdusstringPDU voltage trough
numberOfPhasespdusintPDU number of phases
numberOfOutletspdusintPDU number of outlets
feedspdusarrayList of all feeds for this PDU
outletNumberfeedsintFeed outlet number
totalKWHfeedsintFeed current kWh meter
ampNowfeedsstringFeed current amperage usage
ampPeakfeedsstringFeed highest amerage peak
voltNowfeedsstringFeed current voltage
voltMinfeedsstringFeed voltage trough
powerFactorfeedsstringFeed current power factor in percentage

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [colocations] => Array
                (
                    [0] => Array
                        (
                            [coloserverId] => 573
                            [rackName] => Suite 08 - Rack 32
                            [trafficUsed] => 100
                            [trafficUsedDailyAve] => 33.33
                            [contractTraffic] => 1000
                            [contractMaxAmp] => 32
                            [contractStart] => 19 Jul 2013
                            [contractEnd] => 01 Aug 2020
                            [contractInvoicedUntil] => 19 Aug 2014
                            [contractCancelDate] => 07 Oct 2014
                            [monthlyCost] => 112 Euro
                            [units] => 46
                            [pdus] => Array
                                (
                                    [0] => Array
                                        (
                                            [lastUpdate] => 1414519287
                                            [serialNumber] => SVNL00006722
                                            [totalKWH] => 10239
                                            [powerFactor] => 99.99
                                            [ampNow] => 12.0
                                            [ampPeak] => 22.5
                                            [ampMax] => 31.5
                                            [voltNow] => 235.5
                                            [voltMin] => 228.2
                                            [numberOfPhases] => 1
                                            [numberOfOutlets] => 3
                                            [feeds] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [outletNumber] => 1
                                                            [totalKWH] => 4242
                                                            [ampNow] => 1.20
                                                            [ampPeak] => 6.8
                                                            [voltNow] => 235.5
                                                            [voltMin] => 228.2
                                                            [powerFactor] => 99.99
                                                        )

                                                    [1] => Array
                                                        (
                                                            [outletNumber] => 2
                                                            [totalKWH] => 2102
                                                            [ampNow] => 2.30
                                                            [ampPeak] => 5.5
                                                            [voltNow] => 235.5
                                                            [voltMin] => 228.2
                                                            [powerFactor] => 99.99
                                                        )

                                                    [2] => Array
                                                        (
                                                            [outletNumber] => 3
                                                            [totalKWH] => 80
                                                            [ampNow] => 5.50
                                                            [ampPeak] => 10.2
                                                            [voltNow] => 235.5
                                                            [voltMin] => 228.2
                                                            [powerFactor] => 99.99
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)
POST
getNetworkDetails

Get all network details for your dedicated server.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
Response parameters
ParameterContextTypeDescription
rangesarrayYour network ranges.
vlanIdrangesintThe vlan ID
gatewayrangesstringThe gateway IP.
netmaskrangesstringThe range netmask (IPv4 only).
prefixrangesstringCIDR prefix, including leading slash.

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [ranges] => Array
                (
                    [0] => Array
                        (
                            [vlanId] => 1184
                            [gateway] => 213.163.92.129
                            [netmask] => 255.255.255.224
                            [prefix] => /27
                        )

                    [1] => Array
                        (
                            [vlanId] => 1184
                            [gateway] => 2a00:1630:25::1
                            [prefix] => /48
                        )

                )

        )

)
POST
getPtrRecords

Get all IPv6 and IPv6 PTR records.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
Response parameters
ParameterContextTypeDescription
ptrRecordsarrayPTR records array
ipptrRecordsstringAn IPv4 or IPv6 address
ptrptrRecordsstringThe PTR record

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [ptrRecords] => Array
                (
                    [0] => Array
                        (
                            [ip] => 31.204.128.182
                            [ptr] => hostsed-by-i3d.net.
                        )

                    [1] => Array
                        (
                            [ip] => 31.204.128.183
                            [ptr] => hosted-by.i3d.net.
                        )

                    [2] => Array
                        (
                            [ip] => 31.204.128.184
                            [ptr] => hosted-by.i3d.net.
                        )

                )

        )

)
POST
setPtrRecords

Set IPv4 and IPv6 PTR records.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
recordsarrayArray with IP and PTR information
iprecordsarrayAn IP address
ptrrecordsarrayA PTR record for that IP address
Response parameters
ParameterContextTypeDescription
updatesarrayArray containing the result of each record you have submitted
resultupdatesstringOK or Error
msgupdatesstringThe success or error message

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [updates] => Array
                (
                    [0] => Array
                        (
                            [result] => OK
                            [msg] => PTR record for 2a00:1630:2:fff::abc is now mynewptr.example.com
                        )

                )

        )

)
POST
removePtrRecord

Remove a PTR record.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
ipstringThe IPv4 or IPv6 address you want to remove the PTR of
Response parameters
ParameterContextTypeDescription
resultstringOK or Error
msgstringThe success or error message

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [updates] => Array
                (
                    [0] => Array
                        (
                            [result] => OK
                            [msg] => PTR record for 2a00:1630:2:fff::abc has been removed.
                        )

                )

        )

)
POST
getPduDetails

Get all PDU details.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
Response parameters
ParameterContextTypeDescription
pdusarrayList of all PDUs
lastUpdatepdusintLast updated values timestamp
serialNumberpdusstringPDU serial number
totalKWHpdusintPDU current kWh meter
powerFactorpdusstringPDU current power factor in percentage
ampNowpdusstringPDU current amperage usage
ampPeakpdusstringPDU highest amerage peak
ampMaxpdusstringPDU max usable amperage
voltNowpdusstringPDU current voltage
voltMinpdusstringPDU voltage trough
numberOfPhasespdusintPDU number of phases
numberOfOutletspdusintPDU number of outlets
feedspdusarrayList of all feeds for this PDU
outletNumberfeedsintFeed outlet number
totalKWHfeedsintFeed current kWh meter
ampNowfeedsstringFeed current amperage usage
ampPeakfeedsstringFeed highest amerage peak
voltNowfeedsstringFeed current voltage
voltMinfeedsstringFeed voltage trough
powerFactorfeedsstringFeed current power factor in percentage

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [pdus] => Array
                (
                    [lastUpdate] => 1414519287
                    [serialNumber] => SVNL00006722
                    [totalKWH] => 10239
                    [powerFactor] => 99.99
                    [ampNow] => 12.0
                    [ampPeak] => 22.5
                    [ampMax] => 31.5
                    [voltNow] => 235.5
                    [voltMin] => 228.2
                    [numberOfPhases] => 1
                    [numberOfOutlets] => 3
                    [feeds] => Array
                        (
                            [0] => Array
                                (
                                    [outletNumber] => 1
                                    [totalKWH] => 4242
                                    [ampNow] => 1.20
                                    [ampPeak] => 6.8
                                    [voltNow] => 235.5
                                    [voltMin] => 228.2
                                    [powerFactor] => 99.99
                                )

                            [1] => Array
                                (
                                    [outletNumber] => 2
                                    [totalKWH] => 2102
                                    [ampNow] => 2.30
                                    [ampPeak] => 5.5
                                    [voltNow] => 235.5
                                    [voltMin] => 228.2
                                    [powerFactor] => 99.99
                                )

                            [2] => Array
                                (
                                    [outletNumber] => 3
                                    [totalKWH] => 80
                                    [ampNow] => 5.50
                                    [ampPeak] => 10.2
                                    [voltNow] => 235.5
                                    [voltMin] => 228.2
                                    [powerFactor] => 99.99
                                )

                        )

                )

        )

)