HostFact API versie 3.1



SSL certificaten

SSL certificaten zijn te beheren via de controller 'ssl'.



list

Middels deze functie kunt u een lijst met SSL certificaten ophalen die voldoen aan de meegegeven parameters.
Voorbeeldbestand: /voorbeelden/ssl/ssl.list.php


Invoerparameters:
Veldnaam Waarde Omschrijving
status string SSL certificaat status, zie variabelen-lijst
offset int Standaard: 0
limit int Standaard: 1000
sort string Standaard: CommonName
order 'ASC' of 'DESC' Standaard: ASC
searchat string Welke velden doorzocht moeten worden.
Standaard: CommonName
searchfor string Zoekterm
created filter_datetime Filtermogelijkheid op aanmaakdatum
modified filter_datetime Filtermogelijkheid op wijzigingsdatum

Voorbeeld invoer:
<?php

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

$api = new HostFactAPI();

$sslParams = array(
				// Get all domains of customer DB0001
				'searchat' 			=> 'DebtorCode',
				'searchfor' 		=> 'DB0001'
);

$response = $api->sendRequest('ssl', 'list', $sslParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => ssl
    [action] => list
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [totalresults] => 3
    [currentresults] => 3
    [offset] => 0
    [filters] => Array
        (
            [searchat] => DebtorCode
            [searchfor] => DB0001
        )

    [ssl] => Array
        (
            [0] => Array
                (
                    [Identifier] => 1
                    [CommonName] => example.com
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Type] => domain
                    [Wildcard] => no
                    [MultiDomain] => yes
                    [MultiDomainRecords] => Array
                        (
                        )

                    [ApproverEmail] => info@hostfact.nl
                    [CSR] => -----BEGIN...QUEST-----
                    [ServerSoftware] => linux
                    [Period] => 1
                    [RequestDate] => 
                    [RenewDate] => 
                    [RegistrarReference] => 789
                    [Comment] => 
                    [Status] => inrequest
                    [Subscription] => Array
                        (
                            [ProductCode] => P004
                            [Description] => SSL testproduct - example.com
                            [Number] => 1
                            [PriceExcl] => 11.5
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [Periods] => 1
                            [Periodic] => j
                            [StartPeriod] => 2018-01-01
                            [EndPeriod] => 2018-01-01
                            [NextDate] => 2018-04-17
                            [TerminationDate] => 
                            [AmountExcl] => 11.5
                            [AmountIncl] => 13.92
                        )

                    [Modified] => 2022-11-24 11:00:00
                )

            [1] => Array
                (
                    [Identifier] => 2
                    [CommonName] => example2.com
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Type] => domain
                    [Wildcard] => no
                    [MultiDomain] => yes
                    [MultiDomainRecords] => Array
                        (
                        )

                    [ApproverEmail] => test@example2.com
                    [CSR] => 
                    [ServerSoftware] => linux
                    [Period] => 1
                    [RequestDate] => 2018-01-14
                    [RenewDate] => 2018-01-14
                    [RegistrarReference] => 
                    [Comment] => 
                    [Status] => install
                    [Subscription] => Array
                        (
                            [ProductCode] => P004
                            [Description] => SSL certificate - example2.com
                            [Number] => 1
                            [PriceExcl] => 50
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [Periods] => 1
                            [Periodic] => j
                            [StartPeriod] => 2018-01-14
                            [EndPeriod] => 2018-01-14
                            [NextDate] => 2018-06-30
                            [TerminationDate] => 
                            [AmountExcl] => 50
                            [AmountIncl] => 60.5
                        )

                    [Modified] => 2022-11-24 11:00:00
                )

            [2] => Array
                (
                    [Identifier] => 3
                    [CommonName] => example3.com
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Type] => domain
                    [Wildcard] => no
                    [MultiDomain] => yes
                    [MultiDomainRecords] => Array
                        (
                        )

                    [ApproverEmail] => test@example3.com
                    [CSR] => 
                    [ServerSoftware] => linux
                    [Period] => 1
                    [RequestDate] => 2018-01-14
                    [RenewDate] => 2018-01-14
                    [RegistrarReference] => 
                    [Comment] => 
                    [Status] => expired
                    [Modified] => 2022-11-24 11:00:00
                )

        )

)