HostFact API versie 3.1



Hosting

Hostingaccounts zijn te beheren via de controller 'hosting'.



show

Middels deze functie kunt u meer informatie over een hosting account ophalen.
Voorbeeldbestand: /voorbeelden/hosting/hosting.show.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een hosting account
Username string De accountnaam (en gebruikersnaam)
GetPassword 'yes' of 'no' Geeft aan of het ongecodeerde wachtwoord mee gegeven mag worden. Standaard: 'no'
Verplichte velden: Identifier of Username

Voorbeeld invoer:
<?php

require_once("../hostfact_api.php");

$api = new HostFactAPI();

$hostingParams = array(
				'Username'	=> 'example'
);

$response = $api->sendRequest('hosting', 'show', $hostingParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => hosting
    [action] => show
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [hosting] => Array
        (
            [Identifier] => 2
            [Username] => example
            [Debtor] => 1
            [DebtorCode] => DB0001
            [Domain] => example.com
            [Server] => 1
            [Package] => 1
            [PackageName] => Hosting small
            [Comment] => 
            [Status] => 1
            [Created] => 2022-11-24 11:00:00
            [Modified] => 2022-11-24 11:00:00
            [Subscription] => Array
                (
                    [Number] => 1
                    [NumberSuffix] => 
                    [ProductCode] => P002
                    [Description] => Hosting small
                    [PriceExcl] => 25
                    [PriceIncl] => 30.25
                    [TaxPercentage] => 21
                    [DiscountPercentage] => 0
                    [Periods] => 1
                    [Periodic] => m
                    [StartPeriod] => 2018-03-14
                    [EndPeriod] => 2018-04-14
                    [NextDate] => 2018-02-28
                    [ContractPeriods] => 1
                    [ContractPeriodic] => m
                    [StartContract] => 2018-01-14
                    [EndContract] => 2018-08-14
                    [TerminationDate] => 
                    [Reminder] => 
                    [InvoiceAuthorisation] => yes
                    [AmountExcl] => 25
                    [AmountIncl] => 30.25
                )

            [PackageInfo] => Array
                (
                    [Identifier] => 1
                    [Name] => Hosting small
                    [Type] => normal
                    [Template] => yes
                    [TemplateName] => 
                    [BandWidth] => 
                    [DiscSpace] => 
                    [Domains] => 
                    [SubDomains] => 
                    [Domainpointers] => 
                    [MySQLDatabases] => 
                    [EmailAccounts] => 
                )

            [ServerInfo] => Array
                (
                    [Identifier] => 1
                    [Name] => Example server
                    [Panel] => hostingclass
                    [Location] => https://localhost
                    [Port] => 1234
                    [IP] => 
                    [AdditionalIP] => 
                    [Settings] => 
                    [DefaultDNSTemplate] => 1
                    [SSOSupport] => url
                )

            [Translations] => Array
                (
                    [Status] => Wachten op actie
                )

        )

)