WeFact Hosting API versie 2.6



SSL certificaten

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



installed

Middels deze functie kunt u aangeven dat een SSL certificaat geinstalleerd is, hierna wordt het certificaat in WeFact op actief gezet.
Voorbeeldbestand: /voorbeelden/ssl/ssl.installed.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een SSL certificaat
CommonName string De domeinnaam
Verplichte velden: Identifier of CommonName

Voorbeeld invoer:
<?php

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

$api = new WeFactAPI();

$sslParams = array(
				//'Identifier'		=> '2',
				'CommonName'		=> 'example2.com',
);

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

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => ssl
    [action] => installed
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [success] => Array
        (
            [0] => SSL certificaat example2.com is geïnstalleerd
        )

    [ssl] => Array
        (
            [Identifier] => 2
            [CommonName] => example2.com
            [Debtor] => 1
            [DebtorCode] => DB0001
            [Registrar] => 1
            [SSLTypeID] => 1
            [ownerHandle] => 1
            [adminHandle] => 1
            [techHandle] => 1
            [Type] => domain
            [Wildcard] => no
            [MultiDomain] => yes
            [MultiDomainRecords] => Array
                (
                )

            [ApproverEmail] => test@example2.com
            [CSR] => 
            [ServerSoftware] => linux
            [Period] => 1
            [RequestDate] => 2016-07-14
            [RenewDate] => 2017-07-14
            [RegistrarReference] => 
            [Comment] => 
            [Status] => active
            [Created] => 2016-09-01 12:00:00
            [Modified] => 2016-09-01 12:00:00
            [Subscription] => Array
                (
                    [Number] => 1
                    [NumberSuffix] => 
                    [ProductCode] => P004
                    [Description] => SSL certificate - example2.com
                    [PriceExcl] => 50
                    [PriceIncl] => 60.5
                    [TaxPercentage] => 21
                    [DiscountPercentage] => 0
                    [Periods] => 1
                    [Periodic] => j
                    [StartPeriod] => 2017-07-14
                    [EndPeriod] => 2018-07-14
                    [NextDate] => 2017-06-30
                    [ContractPeriods] => 1
                    [ContractPeriodic] => j
                    [StartContract] => 2016-07-14
                    [EndContract] => 2017-07-14
                    [TerminationDate] => 
                    [Reminder] => 
                    [InvoiceAuthorisation] => yes
                    [AmountExcl] => 50
                    [AmountIncl] => 60.5
                )

            [SSLProductInfo] => Array
                (
                    [Name] => SSL dummy product
                    [Brand] => SSLs
                    [TemplateName] => 
                    [Product] => 4
                    [Periods] => Array
                        (
                            [0] => 1
                            [1] => 2
                            [2] => 3
                        )

                    [Type] => domain
                    [Wildcard] => no
                    [MultiDomain] => yes
                    [MultiDomainIncluded] => 4
                    [MultiDomainMax] => 10
                )

            [RegistrarInfo] => Array
                (
                    [Identifier] => 1
                    [Class] => registrarclass
                    [Name] => Example registrar
                    [Testmode] => 1
                    [DefaultDNSTemplate] => 0
                    [AdminHandle] => 0
                    [TechHandle] => 0
                )

        )

)