HostFact API versie 3.1
Hosting
Hostingaccounts zijn te beheren via de controller 'hosting'.
suspend
Met behulp van deze functie is het mogelijk om een hosting account te blokkeren.
Voorbeeldbestand: /voorbeelden/hosting/hosting.suspend.php
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Identifier | int | De unieke ID van een hosting account |
| Username | string | De accountnaam (en gebruikersnaam) |
Voorbeeld invoer:
<?php
require_once("../hostfact_api.php");
$api = new HostFactAPI();
$hostingParams = array(
'Username' => 'activeaccount'
);
$response = $api->sendRequest('hosting', 'suspend', $hostingParams);
print_r_pre($response);
?>Voorbeeld uitvoer:
Array
(
[controller] => hosting
[action] => suspend
[status] => success
[date] => 2022-11-24T12:00:00+02:00
[success] => Array
(
[0] => Hostingaccount activeaccount is geblokkeerd
)
)