PHP Class Ovh\Dedicated\Server\ServerClient

Inheritance: extends Ovh\Common\AbstractClient
Datei anzeigen Open project: toorop/ovh-sdk-php

Public Methods

Method Description
addSecondaryDnsDomains ( string $domain, string $domain2add, string $ip ) Add a domain on secondary DNS
changeBackupFTPPassword ( $domain ) : Task delete backupFTP
createBackupFTP ( $domain ) /dedicated/server/{serviceName}/features/backupFTP
createBackupFTPAccess ( $domain, $ipBlock ) : object Creatge backupFTP ACL
createVmac ( $domain, $ipaddress, $type, $vmname ) POST /dedicated/server/{serviceName}/virtualMac
deleteBackupFTP ( $domain ) /dedicated/server/{serviceName}/features/backupFTP
deleteBackupFTPaccessBlock ( $domain, $ipBlock ) : object delete backupFTP ACL for specified IPblock
deleteSecondaryDnsDomains ( string $domain, string $domain2delete ) Delete a domain on secondary DNS server
deleteVmacIPAddress ( $domain, $vmac, $ip ) DELETE /dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress/{ipAddress}
getBackupFTPAccess ( $domain ) dedicated/server/{serviceName}/features/backupFTP/access
getBackupFTPAuthorizableBlocks ( $domain ) : object Get backupFTP Authorizable IPBlocks
getBackupFTPaccessBlock ( $domain, $ipBlock ) : object Get backupFTP ACL for specified ipBlock
getBoot ( $domain ) Get boot options
getBootOptions ( $domain, $bootId ) : mixed Get boot options
getBootOptionsProperties ( $domain, $bootId, $option ) : object Get defintion of BootID options - added but not used.
getBootProperties ( $domain, $bootId ) : mixed Get boot properties
getBurst ( $domain ) : Guzzle\Http\EntityBodyInterface | string Get Burst
getCompatibleTemplatePartitionSchemes ( $domain ) * Gets list of partitioning schemes that can be installed onto server -- untested
getCompatibleTemplates ( $domain ) * Gets list of templates that can be installed onto server
getInterventionProperties ( $domain, $interventionId ) : array(date,type,id) Retourne les informations d'une intervention suivant son identifiant Ajout par @Thibautg16 le 22/11/2013
getInterventions ( string $domain ) : integer Retourne les interventions associés au serveur dédié (en cours et passé) Ajout par @Thibautg16 le 22/11/2013
getIps ( $domain ) : Guzzle\Http\EntityBodyInterface | string Get IPs
getMrtg ( string $domain, string $period = 'daily', string $type = 'traffic:download' ) : Guzzle\Http\EntityBodyInterface | string Get MRTG Ajout by @Thibautg16 le 11/11/2013
getNetworkSpecifications ( string $domain ) : mixed Get Network Specs - internal/external speeds and limits
getOrderableBackupFTP ( $domain ) * Gets list of the sizes of backupFTP that can be ordered for the server
getOrderableProfessionalUse ( $domain ) * Gets list of the sizes of USBKeys that can be ordered for the server
getOrderableUSB ( $domain ) * Gets list of the sizes of USBKeys that can be ordered for the server
getProperties ( string $domain ) : string Get properties
getSecondaryDnsDomains ( $domain ) : Guzzle\Http\EntityBodyInterface | string Get secondary DNS
getSecondaryDnsDomainsInfo ( string $domain, string $domain2getInfo ) : Guzzle\Http\EntityBodyInterface | string Get info about $domain2getInfo
getSecondaryDnsServerInfo ( string $domain, string $domain2getInfo ) : Guzzle\Http\EntityBodyInterface | string Get info about secondary DNS server of $domain2getInfo
getServerIPs ( $domain ) * Gets list of assopciated with server
getServerVrack ( string $domain ) : String Get Server Vracks GET /dedicated/server/{serviceName}/vrack
getServiceInfos ( string $domain ) : string Get Service Infos
getSpecificationsHardware ( string $domain ) : Object Get Hardware Specifications GET /dedicated/server/{serviceName}/specifications/hardware Informations sur les spécifications hardware du serveur
getStatistics ( string $domain ) : Object Get Statistics (RTM) Ajout by @Thibautg16 le 01/06/2014
getStatisticsChart ( string $domain, string $period = 'daily', string $type = 'cpu' ) : Object Get Statistics Chart Values Ajout by @Thibautg16 le 01/06/2014
getStatisticsConnection ( string $domain ) : Array Get Statistics Connection Ajout by @Thibautg16 le 01/06/2014
getStatisticsCpu ( string $domain ) : Object Get Statistics Cpu Ajout by @Thibautg16 le 01/06/2014
getStatisticsDisk ( string $domain ) : Array Get Serveur Disks GET /dedicated/server/{serviceName}/statistics/disk Liste des disques
getStatisticsDiskProperties ( string $domain, string $disk = 'disk-0' ) : Object Get Disk Properties GET /dedicated/server/{serviceName}/statistics/disk/{disk} Informtation sur le disque
getStatisticsDiskSmart ( string $domain, string $disk = 'disk-0' ) : Object Get Disk Smart GET /dedicated/server/{serviceName}/statistics/disk/{disk}/smart Informtation SMART sur le disque
getStatisticsLoad ( string $domain ) : Object Get Server Load GET /dedicated/server/{serviceName}/statistics/load Information sur la charge du serveur
getStatisticsMemory ( string $domain ) : Array Get Server Memory Information GET /dedicated/server/{serviceName}/statistics/memory Information sur la memoire
getStatisticsMotherboard ( string $domain ) : Object Get Server Motherboard Information GET /dedicated/server/{serviceName}/statistics/motherboard Information sur la carte-mère
getStatisticsOs ( string $domain ) : Object Get Server Os Informations GET /dedicated/server/{serviceName}/statistics/os Information sur la carte-mère
getStatisticsPartition ( string $domain ) : Array Get Server Partition GET /dedicated/server/{serviceName}/statistics/partition Information sur les partitions
getStatisticsPartitionChart ( string $domain, string $partition, string $period = 'daily' ) : Object Get Partition Properties GET/dedicated/server/{serviceName}/statistics/partition/{partition}/chart Informtation graphique sur la partition
getStatisticsPartitionProperties ( string $domain, string $partition ) : Object Get Partition Properties GET/dedicated/server/{serviceName}/statistics/partition/{partition} Informtation sur la partition
getStatisticsPci ( string $domain ) : Array Get Server PCI Devices Informations GET /dedicated/server/{serviceName}/statistics/pci Informations sur périphériques PCI
getStatisticsProcess ( string $domain ) : Array Get Server Process GET /dedicated/server/{serviceName}/statistics/process Informations sur les process du serveur
getStatisticsRaid ( string $domain ) : Array Get Server Raid GET /dedicated/server/{serviceName}/statistics/raid Informations sur les volumes RAID
getStatisticsRaidProperties ( string $domain, string $unit ) : Object Get Server Raid Properties GET /dedicated/server/{serviceName}/statistics/raid/{unit} Propriétés d'un RAID
getStatisticsRaidVolume ( string $domain, string $unit ) : Array Get Server Raid Volumes GET /dedicated/server/{serviceName}/statistics/raid/{unit}/volume Liste des volumes présent sur le RAID
getStatisticsRaidVolumePort ( string $domain, string $unit, string $volume ) : Array Get Server Raid Volume Ports GET /dedicated/server/{serviceName}/statistics/raid/{unit}/volume/{volume}/port
getStatisticsRaidVolumePortProperties ( string $domain, string $unit, string $volume, string $port ) : Array Get Server Raid Volume Ports Properties GET /dedicated/server/{serviceName}/statistics/raid/{unit}/volume/{volume}/port/{port}
getStatisticsRaidVolumeProperties ( string $domain, string $unit, string $volume ) : Object Get Server Raid Volume Properties GET /dedicated/server/{serviceName}/statistics/raid/{unit}/volume/{volume} Propriétes du volume RAID
getTaskProperties ( $domain, $taskId ) : mixed Get task properties
getTasks ( string $domain ) : mixed Tasks associated to this server
getVmacIPAddresses ( $domain, $vmac ) /dedicated/server/{serviceName}/virtualMac/{virtualmac}/virtualAddress
getVmacProperties ( $domain, $vmac ) GET /dedicated/server/{serviceName}/virtualMac/{virtualmac}
getVmacs ( $domain ) get /dedicated/server/{serviceName}/virtualMac
getbackupFTP ( $domain ) dedicated/server/{serviceName}/features/backupFTP
reboot ( string $domain ) Reboot
setBackupFTPaccessBlock ( $domain, $ipBlock, $ftp, $nfs, $cifs ) : object Get Set backupFTP ACL
setBootDevice ( $domain, $currentState, $bootDevice ) : Guzzle\Http\EntityBodyInterface | string Set boot device
setMonitoring ( $domain, $_enable ) ********************************************
setNetboot ( string $domain, integer $bootId ) : Guzzle\Http\EntityBodyInterface | string Set netboot
setVmacIPAddresses ( $domain, $vmac, $ip, $vmname ) POST /dedicated/server/{serviceName}/virtualMac/{virtualmac}/virtualAddress

Method Details

addSecondaryDnsDomains() public method

Add a domain on secondary DNS
public addSecondaryDnsDomains ( string $domain, string $domain2add, string $ip )
$domain string
$domain2add string
$ip string

changeBackupFTPPassword() public method

delete backupFTP
public changeBackupFTPPassword ( $domain ) : Task
$domain -> Server that this applies to
return Task object

createBackupFTP() public method

/dedicated/server/{serviceName}/features/backupFTP
public createBackupFTP ( $domain )

createBackupFTPAccess() public method

Creatge backupFTP ACL
public createBackupFTPAccess ( $domain, $ipBlock ) : object
$domain -> Server that this applies to
$ipBlock -> ipblock that is being granted access this requires that one type of access be set - and since this is called backuipFTP - I chose the FTP as default a second call to set actual desired ACL will be required to set acl to what is desired
return object result set throws BadMethodCallException if server is not defined usual handling for 400/404 errors

createVmac() public method

POST /dedicated/server/{serviceName}/virtualMac
public createVmac ( $domain, $ipaddress, $type, $vmname )

deleteBackupFTP() public method

/dedicated/server/{serviceName}/features/backupFTP
public deleteBackupFTP ( $domain )

deleteBackupFTPaccessBlock() public method

delete backupFTP ACL for specified IPblock
public deleteBackupFTPaccessBlock ( $domain, $ipBlock ) : object
$domain -> Server that this applies to
return object result set throws BadMethodCallException if server or ipblock is not defined usual handling for 400/404 errors

deleteSecondaryDnsDomains() public method

Delete a domain on secondary DNS server
public deleteSecondaryDnsDomains ( string $domain, string $domain2delete )
$domain string
$domain2delete string

deleteVmacIPAddress() public method

DELETE /dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress/{ipAddress}
public deleteVmacIPAddress ( $domain, $vmac, $ip )

getBackupFTPAccess() public method

dedicated/server/{serviceName}/features/backupFTP/access
public getBackupFTPAccess ( $domain )

getBackupFTPAuthorizableBlocks() public method

only the IP blocks associated with your server can access yout FTP space - this returns the valid list.
public getBackupFTPAuthorizableBlocks ( $domain ) : object
$domain -> Server that this applies to
return object result set throws BadMethodCallException if server is not defined usual handling for 400/404 errors

getBackupFTPaccessBlock() public method

Get backupFTP ACL for specified ipBlock
public getBackupFTPaccessBlock ( $domain, $ipBlock ) : object
$domain -> Server that this applies to
return object result set throws BadMethodCallException if server or ipblock is not defined usual handling for 400/404 errors

getBoot() public method

Get boot options
public getBoot ( $domain )

getBootOptions() public method

Get boot options
public getBootOptions ( $domain, $bootId ) : mixed
$domain
$bootId
return mixed

getBootOptionsProperties() public method

.. not tested
public getBootOptionsProperties ( $domain, $bootId, $option ) : object
$domain -> Server that this applies to
$option -> option this applies to
return object result set throws BadMethodCallException if any param is not defined usual handling for 400/404 errors

getBootProperties() public method

Get boot properties
public getBootProperties ( $domain, $bootId ) : mixed
$domain
$bootId
return mixed

getBurst() public method

Get Burst
public getBurst ( $domain ) : Guzzle\Http\EntityBodyInterface | string
$domain
return Guzzle\Http\EntityBodyInterface | string

getCompatibleTemplatePartitionSchemes() public method

* Gets list of partitioning schemes that can be installed onto server -- untested
public getCompatibleTemplatePartitionSchemes ( $domain )
$domain -> server

getCompatibleTemplates() public method

* Gets list of templates that can be installed onto server
public getCompatibleTemplates ( $domain )
$domain -> server

getInterventionProperties() public method

Retourne les informations d'une intervention suivant son identifiant Ajout par @Thibautg16 le 22/11/2013
public getInterventionProperties ( $domain, $interventionId ) : array(date,type,id)
$domain
$interventionId
return array(date,type,id)

getInterventions() public method

Retourne les interventions associés au serveur dédié (en cours et passé) Ajout par @Thibautg16 le 22/11/2013
public getInterventions ( string $domain ) : integer
$domain string
return integer

getIps() public method

Get IPs
public getIps ( $domain ) : Guzzle\Http\EntityBodyInterface | string
$domain
return Guzzle\Http\EntityBodyInterface | string

getMrtg() public method

Get MRTG Ajout by @Thibautg16 le 11/11/2013
public getMrtg ( string $domain, string $period = 'daily', string $type = 'traffic:download' ) : Guzzle\Http\EntityBodyInterface | string
$domain string
$period string
$type string
return Guzzle\Http\EntityBodyInterface | string

getNetworkSpecifications() public method

Get Network Specs - internal/external speeds and limits
public getNetworkSpecifications ( string $domain ) : mixed
$domain string
return mixed normal handling of 400/404s

getOrderableBackupFTP() public method

* Gets list of the sizes of backupFTP that can be ordered for the server
public getOrderableBackupFTP ( $domain )
$domain -> server

getOrderableProfessionalUse() public method

* Gets list of the sizes of USBKeys that can be ordered for the server
public getOrderableProfessionalUse ( $domain )
$domain -> server

getOrderableUSB() public method

* Gets list of the sizes of USBKeys that can be ordered for the server
public getOrderableUSB ( $domain )
$domain -> server

getProperties() public method

Get properties
public getProperties ( string $domain ) : string
$domain string
return string Json

getSecondaryDnsDomains() public method

Get secondary DNS
public getSecondaryDnsDomains ( $domain ) : Guzzle\Http\EntityBodyInterface | string
$domain
return Guzzle\Http\EntityBodyInterface | string

getSecondaryDnsDomainsInfo() public method

Get info about $domain2getInfo
public getSecondaryDnsDomainsInfo ( string $domain, string $domain2getInfo ) : Guzzle\Http\EntityBodyInterface | string
$domain string
$domain2getInfo string
return Guzzle\Http\EntityBodyInterface | string

getSecondaryDnsServerInfo() public method

Get info about secondary DNS server of $domain2getInfo
public getSecondaryDnsServerInfo ( string $domain, string $domain2getInfo ) : Guzzle\Http\EntityBodyInterface | string
$domain string
$domain2getInfo string
return Guzzle\Http\EntityBodyInterface | string

getServerIPs() public method

* Gets list of assopciated with server
public getServerIPs ( $domain )
$domain -> server

getServerVrack() public method

Ajout by @Thibautg16 le 17/05/2015
public getServerVrack ( string $domain ) : String
$domain string -> Nom du Serveur
return String

getServiceInfos() public method

Get Service Infos
public getServiceInfos ( string $domain ) : string
$domain string
return string Json

getSpecificationsHardware() public method

Ajout by @Thibautg16 le 01/06/2014
public getSpecificationsHardware ( string $domain ) : Object
$domain string
return Object

getStatistics() public method

Get Statistics (RTM) Ajout by @Thibautg16 le 01/06/2014
public getStatistics ( string $domain ) : Object
$domain string
return Object

getStatisticsChart() public method

Get Statistics Chart Values Ajout by @Thibautg16 le 01/06/2014
public getStatisticsChart ( string $domain, string $period = 'daily', string $type = 'cpu' ) : Object
$domain string
$period string
$type string
return Object

getStatisticsConnection() public method

Get Statistics Connection Ajout by @Thibautg16 le 01/06/2014
public getStatisticsConnection ( string $domain ) : Array
$domain string
return Array

getStatisticsCpu() public method

Get Statistics Cpu Ajout by @Thibautg16 le 01/06/2014
public getStatisticsCpu ( string $domain ) : Object
$domain string
return Object

getStatisticsDisk() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsDisk ( string $domain ) : Array
$domain string
return Array

getStatisticsDiskProperties() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsDiskProperties ( string $domain, string $disk = 'disk-0' ) : Object
$domain string
$disk string
return Object

getStatisticsDiskSmart() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsDiskSmart ( string $domain, string $disk = 'disk-0' ) : Object
$domain string
$disk string
return Object

getStatisticsLoad() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsLoad ( string $domain ) : Object
$domain string
return Object

getStatisticsMemory() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsMemory ( string $domain ) : Array
$domain string
return Array

getStatisticsMotherboard() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsMotherboard ( string $domain ) : Object
$domain string
return Object

getStatisticsOs() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsOs ( string $domain ) : Object
$domain string
return Object

getStatisticsPartition() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsPartition ( string $domain ) : Array
$domain string
return Array

getStatisticsPartitionChart() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsPartitionChart ( string $domain, string $partition, string $period = 'daily' ) : Object
$domain string
$partition string
$period string
return Object

getStatisticsPartitionProperties() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsPartitionProperties ( string $domain, string $partition ) : Object
$domain string
$partition string
return Object

getStatisticsPci() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsPci ( string $domain ) : Array
$domain string
return Array

getStatisticsProcess() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsProcess ( string $domain ) : Array
$domain string
return Array

getStatisticsRaid() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaid ( string $domain ) : Array
$domain string
return Array

getStatisticsRaidProperties() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaidProperties ( string $domain, string $unit ) : Object
$domain string
$unit string
return Object

getStatisticsRaidVolume() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaidVolume ( string $domain, string $unit ) : Array
$domain string
$unit string
return Array

getStatisticsRaidVolumePort() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaidVolumePort ( string $domain, string $unit, string $volume ) : Array
$domain string
$unit string
$volume string
return Array

getStatisticsRaidVolumePortProperties() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaidVolumePortProperties ( string $domain, string $unit, string $volume, string $port ) : Array
$domain string
$unit string
$volume string
$port string
return Array

getStatisticsRaidVolumeProperties() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaidVolumeProperties ( string $domain, string $unit, string $volume ) : Object
$domain string
$unit string
$volume string
return Object

getTaskProperties() public method

Get task properties
public getTaskProperties ( $domain, $taskId ) : mixed
$domain
$taskId
return mixed

getTasks() public method

Tasks associated to this server
public getTasks ( string $domain ) : mixed
$domain string
return mixed

getVmacIPAddresses() public method

/dedicated/server/{serviceName}/virtualMac/{virtualmac}/virtualAddress
public getVmacIPAddresses ( $domain, $vmac )

getVmacProperties() public method

GET /dedicated/server/{serviceName}/virtualMac/{virtualmac}
public getVmacProperties ( $domain, $vmac )

getVmacs() public method

get /dedicated/server/{serviceName}/virtualMac
public getVmacs ( $domain )

getbackupFTP() public method

dedicated/server/{serviceName}/features/backupFTP
public getbackupFTP ( $domain )

reboot() public method

Reboot
public reboot ( string $domain )
$domain string

setBackupFTPaccessBlock() public method

Get Set backupFTP ACL
public setBackupFTPaccessBlock ( $domain, $ipBlock, $ftp, $nfs, $cifs ) : object
$domain -> Server that this applies to
return object result set throws BadMethodCallException if any param is not defined usual handling for 400/404 errors

setBootDevice() public method

Set boot device
public setBootDevice ( $domain, $currentState, $bootDevice ) : Guzzle\Http\EntityBodyInterface | string
$domain
$bootDevice
return Guzzle\Http\EntityBodyInterface | string

setMonitoring() public method

This didmt work passing bools though as $enable - testing logic on bools is a PITA. if (!var) when var == false => true, and that was tossing missing paramaeter messages. modified to pass on/off instead
public setMonitoring ( $domain, $_enable )

setNetboot() public method

Set netboot
public setNetboot ( string $domain, integer $bootId ) : Guzzle\Http\EntityBodyInterface | string
$domain string
$bootId integer
return Guzzle\Http\EntityBodyInterface | string

setVmacIPAddresses() public method

POST /dedicated/server/{serviceName}/virtualMac/{virtualmac}/virtualAddress
public setVmacIPAddresses ( $domain, $vmac, $ip, $vmname )