This API v2 is deprecated and may no longer work, or may even be removed soon.
Please refer to our new API v3 documentation for your automation purposes.

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] => _ID_
                            [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] => _SERIAL_
                                            [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
trafficDaysint(optional) returns daily traffic usage if larger than 0 (max. 30).
PLEASE NOTE: you are limited to 12 traffic requests per minute.
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] => _ID_
                            [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] => _SERIAL_
                                            [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] => 203.0.113.2
                            [netmask] => 255.255.255.224
                            [prefix] => /27
                        )

                    [1] => Array
                        (
                            [vlanId] => 1184
                            [gateway] => 2001:db8::13::48
                            [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] => 203.0.113.2
                            [ptr] => hostsed-by-i3d.net.
                        )

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

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

                )

        )

)
POST 
setPtrRecords

Set IPv4 and IPv6 PTR records.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation service
recordsarray arrayArray containing records, each containing an ip and ptr key value pair
iprecordsstringAn IP address
ptrrecordsstringA 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 2001:db8::13::48 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 2001:db8::13::48 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] => _SERIAL_
                    [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 
getAllWhitelistEntries

Get all whitelist entries for your userId.


Request parameters
ParameterContextTypeDescription
No parameters
Response parameters
ParameterContextTypeDescription
userIdintuserId of the whitelist entry
whitelistIdintThe whitelistId for this entry
dateverifieddateThe date this entry was verified
dateonlistdateThe date this entry was added
dateofflistdateThe date this entry was removed
datevisitdateThe date of last visit
timevisittimeThe time of last visit
emailstringThe email address for this user
mobilestringThe mobile phone number for this user
firstNamestringThe first name of this user
lastNamestringThe last name of this user
birthDatedateThe date of birth for this user
companyNamestringThe company name at which this user is employed
companyFunctionstringThe function this user has at it`s company
citystringThe city in which this user lives
countryintThe countryId for the country in which this user lives
countryENstringThe English notation of the country this user lives in
countryNLstringThe Dutch notation of the country this user lives in
licensePlatestringThe licenseplate for this user
licensePlateCountryIdintThe countryId for the country this licenseplate is for
licensePlateCountryCodestringThe two letter countrycode for this licenseplate
userDocumentsarrayArray with all the documents for this user
whitelistColocatedServersarrayArray with all the colocation servers this entry has access for
createdByintThe userId of the user that created this entry

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [userId] => _USER-ID_
            [whitelistId] => 123
            [dateverified] => 2015-07-15
            [dateonlist] => 2015-07-07
            [dateofflist] => 0000-00-00
            [datevisit] => 2015-07-18
            [timevisit] => 12:14:40
            [email] => john@example.com
            [mobile] => 06-123456789
            [firstName] => John
            [lastName] => Doe
            [birthDate] => 1970-01-01
            [companyName] => i3D.net
            [companyFunction] => Employee
            [city] => Rotterdam
            [country] => 149
            [countryEN] => Netherlands
            [countryNL] => Nederland
            [licensePlate] => 12-12-12
            [licensePlateCountryId] => 149
            [licensePlateCountryCode] => NL
            [documents] => Array
                (
                    [456] => Array
                        (
                            [documentId] => 456
                            [documentType] => 2
                            [documentNumber] => 123456789ABC
                            [documentExpiration] => 2020-12-12
                            [documentNameEnglish] => Drivers license
                            [documentNameDutch] => Rijbewijs
                        )

                )

            [colocatedServers] => Array
                (
                    [123] => Array
                        (
                            [coloId] => 123
                            [rackName] => Suite XX - Rack XX
                        )

                )

            [createdBy] => 123456
        )

)
POST 
getWhitelistEntry

Get whitelist entry for your userId by whitelistId.


Request parameters
ParameterContextTypeDescription
whitelistIdintThe whitelistId of the desired entry
Response parameters
ParameterContextTypeDescription
userIdintuserId of the whitelist entry
whitelistIdintThe whitelistId for this entry
dateverifieddateThe date this entry was verified
dateonlistdateThe date this entry was added
dateofflistdateThe date this entry was removed
datevisitdateThe date of last visit
timevisittimeThe time of last visit
emailstringThe email address for this user
mobilestringThe mobile phone number for this user
firstNamestringThe first name of this user
lastNamestringThe last name of this user
birthDatedateThe date of birth for this user
companyNamestringThe company name at which this user is employed
companyFunctionstringThe function this user has at it`s company
citystringThe city in which this user lives
countryintThe countryId for the country in which this user lives
countryENstringThe English notation of the country this user lives in
countryNLstringThe Dutch notation of the country this user lives in
licensePlatestringThe licenseplate for this user
licensePlateCountryIdintThe countryId for the country this licenseplate is for
licensePlateCountryCodestringThe two letter countrycode for this licenseplate
userDocumentsarrayArray with all the documents for this user
whitelistColocatedServersarrayArray with all the colocation servers this entry has access for
createdByintThe userId of the user that created this entry

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [userId] => _USER-ID_
            [whitelistId] => 123
            [dateverified] => 2015-07-15
            [dateonlist] => 2015-07-07
            [dateofflist] => 0000-00-00
            [datevisit] => 2015-07-18
            [timevisit] => 12:14:40
            [email] => john@example.com
            [mobile] => 06-123456789
            [firstName] => John
            [lastName] => Doe
            [birthDate] => 1970-01-01
            [companyName] => i3D.net
            [companyFunction] => Employee
            [city] => Rotterdam
            [country] => 149
            [countryEN] => Netherlands
            [countryNL] => Nederland
            [licensePlate] => 12-12-12
            [licensePlateCountryId] => 149
            [licensePlateCountryCode] => NL
            [documents] => Array
                (
                    [456] => Array
                        (
                            [documentId] => 456
                            [documentType] => 2
                            [documentNumber] => 123456789ABC
                            [documentExpiration] => 2020-12-12
                            [documentNameEnglish] => Drivers license
                            [documentNameDutch] => Rijbewijs
                        )

                )

            [colocatedServers] => Array
                (
                    [123] => Array
                        (
                            [coloId] => 123
                            [rackName] => Suite XX - Rack XX
                        )

                )

            [createdBy] => 123456
        )

)
POST 
addToWhitelist

Add a whitelist entry for your userId.


Request parameters
ParameterContextTypeDescription
emailREQUIREDstringThe email for this person.
firstNameREQUIREDstringThe first name for this person.
lastNameREQUIREDstringThe last name for this person.
birthDateREQUIREDdateThe date of birth for this person.
mobilestringThe mobile number for this person.
companyNamestringThe company name this person works at.
companyFunctionstringThe function within the company for this person.
CitystringThe city this person lives.
CountrystringThe country(2 letter code) this person lives.
licensePlatestringThe license plate for this person`s car.
licensePlateCountrystringThe license plate country for this person`s car.
documentarrayAll the documents for this person which will be used for identification.
accessarrayAll the coloId this person will have access to.
Response parameters
ParameterContextTypeDescription
whitelistIdintThe whitelistId of the new entry

Example
Request_Example : 
Array ( [email] => john@example.com [mobile] => 06-123456789 [firstName] => John [lastName] => Doe [birthDate] => 1970-01-01 [companyName] => i3D.net [companyFunction] => Employee [city] => Rotterdam [country] => NL [licensePlate] => 12-12-12 [licensePlateCountry] => NL [document] => Array ( [0] => Array ( [documentType] => 2 // types: 1=Unknown 2=Drivers License 3=Passport 4=Identity Card [documentNumber] => 123456789ABC [documentExpiration] => 2020-12-12 ) ) [access] => Array ( [123] => Array ( [coloId] => 123 ) [456] => Array ( [coloId] => 456 ) ) )
POST 
updateWhitelistEntry

Update a whitelist entry for your userId.


Request parameters
ParameterContextTypeDescription
whitelistIdREQUIREDintThe whitelistId for this entry.
emailREQUIREDstringThe email for this person.
firstNameREQUIREDstringThe first name for this person.
lastNameREQUIREDstringThe last name for this person.
birthDateREQUIREDdateThe date of birth for this person.
mobilestringThe mobile number for this person.
companyNamestringThe company name this person works at.
companyFunctionstringThe function within the company for this person.
CitystringThe city this person lives.
CountrystringThe country(2 letter code) this person lives.
licensePlatestringThe license plate for this person`s car.
licensePlateCountrystringThe license plate country for this person`s car.
documentarrayAll the documents for this person which will be used for identification.
accessarrayAll the coloId this person will have access to.
Response parameters
ParameterContextTypeDescription
responsestringSucceeded or failed

Example
Request_Example : 
Array ( [whitelistId] => 123 [email] => john@example.com [firstName] => John [lastName] => Doe [birthDate] => 1970-01-01 [mobile] => 06-123456789 [companyName] => i3D.net [companyFunction] => Employee [city] => Rotterdam [country] => NL [licensePlate] => 12-12-12 [licensePlateCountry] => NL [document] => Array ( [0] => Array ( [documentType] => 2 // types: 1=Unknown 2=Drivers License 3=Passport 4=Identity Card [documentNumber] => 123456789ABC [documentExpiration] => 2020-12-12 ) ) [access] => Array ( [123] => Array ( [coloId] => 123 ) [456] => Array ( [coloId] => 456 ) ) )
POST 
disableWhitelistEntry

Disable a whitelist entry for your userId.


Request parameters
ParameterContextTypeDescription
whitelistIdintThe whitelistId for this entry.
Response parameters
ParameterContextTypeDescription
responsestringtrue, false or already completed

POST 
enableWhitelistEntry

Enable a whitelist entry for your userId.


Request parameters
ParameterContextTypeDescription
whitelistIdintThe whitelistId for this entry.
Response parameters
ParameterContextTypeDescription
responsestringtrue, false or already completed

Networking

POST 
getTraffic

Get traffic data for the past 3 months, for every network link. Will include graph image data if incGraph is 1.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation server
incGraphint(optional) Include graph image data if 1
dateStartstringThe start date of fetched traffic in format: DD-MM-YYYY (optional)
dateEndstringThe end date of fetched traffic in format: DD-MM-YYYY (optional)
Response parameters
ParameterContextTypeDescription
trafficarrayList of network interfaces and their traffic.
linkNametrafficarrayTraffic data per day, for 3 months.
datelinkNamestringThe date of the day holding the stats.
inlinkNameintIncoming traffic for that day.
outlinkNameintOutgoing traffic for that day.

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [traffic] => Array
                (
                    [link0] => Array
                        (
                            [0] => Array
                                (
                                    [date] => 2014-06-30
                                    [in] => 0.01
                                    [out] => 0.09
                                )

                            [1] => Array
                                (
                                    [date] => 2014-06-29
                                    [in] => 0.06
                                    [out] => 0.13
                                )

                            [2] => Array
                                (
                                    [date] => 2014-06-28
                                    [in] => 0.12
                                    [out] => 0.68
                                )

                            [3] => Array
                                (
                                    [date] => 2014-06-27
                                    [in] => 0.12
                                    [out] => 0.29
                                )

                            [4] => Array
                                (
                                    [etc] => ...
                                )

                            [graphDay] => base64encoded image data (png)
                            [graphWeek] => base64encoded image data (png)
                            [graphMonth] => base64encoded image data (png)
                            [graphYear] => base64encoded image data (png)
                        )

                )

        )

)
POST 
getTrafficGraphs

Get traffic graphs (24 hours, week, month and year), for every network link.


Request parameters
ParameterContextTypeDescription
colocationIdintThe ID of the colocation server
dateStartstringThe start date of fetched traffic in format: DD-MM-YYYY (optional)
dateEndstringThe end date of fetched traffic in format: DD-MM-YYYY (optional)
Response parameters
ParameterContextTypeDescription
traffic
linkXtrafficThe link for which the graphs are presented.
graphDaylinkXbase64encodedTraffic graph of the last 24 hours.
graphWeeklinkXbase64encodedTraffic graph of the last week.
graphMonthlinkXbase64encodedTraffic graph of the last month.
graphYearlinkXbase64encodedTraffic graph of the last year.

Example
Array
(
    [status] => Success
    [msg] => OK
    [data] => stdClass Object
        (
            [traffic] => Array
                (
                    [link0] => Array
                        (
                            [graphDay] => base64encoded image data (png)
                            [graphWeek] => base64encoded image data (png)
                            [graphMonth] => base64encoded image data (png)
                            [graphYear] => base64encoded image data (png)
                        )

                )

        )

)