Ascio Web Service v3

PHP 5 GetDnsSecKeys

Search for DNSSEC Key objects based on a search criteria.

GetDnsSecKeysResponse GetDnsSecKeys(SecurityHeaderDetails $securityHeader,GetDnsSecKeysRequest $request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Invalid attribute name
505Syntax error in parameters or arguments
506Required attribute missing in request
506Search criteria must have at least one clause
506Required attribute missing in request
506Too many clauses
554Error during search

GetDnsSecKeys Request

Property
request

GetDnsSecKeysResponse

PropertyDescription
GetDnsSecKeysResult
TotalCountExample: 1
DnsSecKeys
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

PHP 5 example

<?php
$wsdl = "https://aws.demo.ascio.com/v3/aws.wsdl";
//$wsdl = "https://aws.ascio.com/v3/aws.wsdl";
$client = new SoapClient($wsdl,array( "trace" => 1, "soap_version" => SOAP_1_1));
$credentials = array("Account"=> "myaccount", "Password" => "mypassword");
$header = new \SoapHeader("http://www.ascio.com/2013/02","SecurityHeaderDetails", $credentials, false);
$client->__setSoapHeaders($header);
//PagingInfo

$pageInfo =  [
	"PageIndex" => 1,
	"PageSize" => 1
];
//GetDnsSecKeysRequest

$request =  [
	"Handle" => "JD123",
	"DigestAlgorithm" => "RSA-SHA256",
	"DigestType" => "SHA-256",
	"Digest" => "846E5ED4AB6788032B89393619752F662CF2B7B2046A8EC0804DF88F1469AC1E",
	"Protocol" => "ProtocolTest",
	"KeyType" => "KeyTypeTest",
	"KeyAlgorithm" => "KeyAlgorithmTest",
	"KeyTag" => "2224",
	"PublicKey" => "PublicKeyTest",
	"Status" => "StatusTest",
	"CreationFromDate" => "CreationFromDateTest",
	"CreationToDate" => "CreationToDateTest",
	"OrderSort" => "CreatedAsc",
	"PageInfo" => $pageInfo
];
//GetDnsSecKeys

$getDnsSecKeys =  [
	"request" => $request
];
try{	
    $result = $client->getDnsSecKeys($getDnsSecKeys);
    echo "ResultCode : ".$result->GetDnsSecKeysResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->GetDnsSecKeysResult->ResultMessage."\r\n";
    if(is_array($result->GetDnsSecKeysResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->GetDnsSecKeysResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL for AWS v3
https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.