PHP 클래스 Ovh\Dedicated\Server\ServerClient

상속: extends Ovh\Common\AbstractClient
파일 보기 프로젝트 열기: toorop/ovh-sdk-php

공개 메소드들

메소드 설명
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

메소드 상세

addSecondaryDnsDomains() 공개 메소드

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

changeBackupFTPPassword() 공개 메소드

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

createBackupFTP() 공개 메소드

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

createBackupFTPAccess() 공개 메소드

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
리턴 object result set throws BadMethodCallException if server is not defined usual handling for 400/404 errors

createVmac() 공개 메소드

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

deleteBackupFTP() 공개 메소드

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

deleteBackupFTPaccessBlock() 공개 메소드

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

deleteSecondaryDnsDomains() 공개 메소드

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

deleteVmacIPAddress() 공개 메소드

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

getBackupFTPAccess() 공개 메소드

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

getBackupFTPAuthorizableBlocks() 공개 메소드

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
리턴 object result set throws BadMethodCallException if server is not defined usual handling for 400/404 errors

getBackupFTPaccessBlock() 공개 메소드

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

getBoot() 공개 메소드

Get boot options
public getBoot ( $domain )

getBootOptions() 공개 메소드

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

getBootOptionsProperties() 공개 메소드

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

getBootProperties() 공개 메소드

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

getBurst() 공개 메소드

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

getCompatibleTemplatePartitionSchemes() 공개 메소드

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

getCompatibleTemplates() 공개 메소드

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

getInterventionProperties() 공개 메소드

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
리턴 array(date,type,id)

getInterventions() 공개 메소드

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
리턴 integer

getIps() 공개 메소드

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

getMrtg() 공개 메소드

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
리턴 Guzzle\Http\EntityBodyInterface | string

getNetworkSpecifications() 공개 메소드

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

getOrderableBackupFTP() 공개 메소드

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

getOrderableProfessionalUse() 공개 메소드

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

getOrderableUSB() 공개 메소드

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

getProperties() 공개 메소드

Get properties
public getProperties ( string $domain ) : string
$domain string
리턴 string Json

getSecondaryDnsDomains() 공개 메소드

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

getSecondaryDnsDomainsInfo() 공개 메소드

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

getSecondaryDnsServerInfo() 공개 메소드

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

getServerIPs() 공개 메소드

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

getServerVrack() 공개 메소드

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

getServiceInfos() 공개 메소드

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

getSpecificationsHardware() 공개 메소드

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

getStatistics() 공개 메소드

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

getStatisticsChart() 공개 메소드

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
리턴 Object

getStatisticsConnection() 공개 메소드

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

getStatisticsCpu() 공개 메소드

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

getStatisticsDisk() 공개 메소드

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

getStatisticsDiskProperties() 공개 메소드

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

getStatisticsDiskSmart() 공개 메소드

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

getStatisticsLoad() 공개 메소드

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

getStatisticsMemory() 공개 메소드

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

getStatisticsMotherboard() 공개 메소드

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

getStatisticsOs() 공개 메소드

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

getStatisticsPartition() 공개 메소드

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

getStatisticsPartitionChart() 공개 메소드

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

getStatisticsPartitionProperties() 공개 메소드

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

getStatisticsPci() 공개 메소드

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

getStatisticsProcess() 공개 메소드

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

getStatisticsRaid() 공개 메소드

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

getStatisticsRaidProperties() 공개 메소드

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

getStatisticsRaidVolume() 공개 메소드

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

getStatisticsRaidVolumePort() 공개 메소드

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

getStatisticsRaidVolumePortProperties() 공개 메소드

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
리턴 Array

getStatisticsRaidVolumeProperties() 공개 메소드

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

getTaskProperties() 공개 메소드

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

getTasks() 공개 메소드

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

getVmacIPAddresses() 공개 메소드

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

getVmacProperties() 공개 메소드

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

getVmacs() 공개 메소드

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

getbackupFTP() 공개 메소드

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

reboot() 공개 메소드

Reboot
public reboot ( string $domain )
$domain string

setBackupFTPaccessBlock() 공개 메소드

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

setBootDevice() 공개 메소드

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

setMonitoring() 공개 메소드

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() 공개 메소드

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

setVmacIPAddresses() 공개 메소드

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