HostFact API versie 3.1
VPS
VPS diensten zijn te beheren via de controller 'vps'.
suspend
Middels deze functie kunt u een actieve VPS blokkeren.
Voorbeeldbestand: /voorbeelden/vps/vps.suspend.php
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Identifier | int | De unieke ID van een VPS |
| Hostname | string | De hostnaam |
| GetPassword | 'yes' of 'no' | Geeft aan of het ongecodeerde wachtwoord mee gegeven mag worden. Standaard: 'no' |
Voorbeeld invoer:
$api->sendRequest('vps', 'suspend', array(
'Hostname' => 'vps1.hostfact.nl'
));
Voorbeeld uitvoer:
Array
(
[controller] => vps
[action] => suspend
[status] => success
[date] => 2015-05-15T12:19:22+02:00
[success] => Array
(
[0] => VPS vps1.hostfact.nl is geblokkeerd
)
[vps] => Array
(
[Identifier] => 1
[Hostname] => vps1.hostfact.nl
[Debtor] => 1
[DebtorCode] => DB0001
[IPAddress] => 213.187.244.16
[Package] => 1
[Node] => 1
[ServerID] => 42fac662-d339-4d10-bafd-8b0e2ff3af48
[Image] => ba81185b-b1b8-4f3f-a490-1bc011690532
[MemoryMB] =>
[DiskSpaceGB] =>
[BandWidthGB] =>
[CPUCores] =>
[Comment] =>
[Status] => suspended
[Subscription] => Array
(
[Number] => 1
[NumberSuffix] =>
[ProductCode] => P001
[Description] => VPS Pakket 1 (CentOS 7)
[PriceExcl] => 20
[TaxPercentage] => 21
[DiscountPercentage] => 0
[Periods] => 1
[Periodic] => m
[StartPeriod] => 2015-05-15
[EndPeriod] => 2015-06-15
[NextDate] => 2015-05-01
[ContractPeriods] => 1
[ContractPeriodic] => m
[StartContract] => 2015-05-15
[EndContract] => 2015-06-15
[TerminationDate] =>
[Reminder] =>
[InvoiceAuthorisation] => yes
)
[Translations] => Array
(
[PackageName] => VPS Pakket 1 (CentOS 7)
[NodeName] => Openstack
[ImageName] => CloudVPS CentOS 7
)
)
)