Class Transip_DnsService
This is the API endpoint for the DnsService
Methods summary
public static
SoapClient
|
#
_getSoapClient( mixed $parameters = array() )
Gets the singleton SoapClient which is used to connect to the TransIP
Api.
Gets the singleton SoapClient which is used to connect to the TransIP
Api.
Parameters
- $parameters
mixed $parameters Parameters.
Returns
SoapClient
The SoapClient object to which we can connect to the TransIP API
|
protected static
string
|
#
_sign( mixed $parameters )
Calculates the hash to sign our request with based on the given
parameters.
Calculates the hash to sign our request with based on the given
parameters.
Parameters
- $parameters
mixed $parameters The parameters to sign.
Returns
string Base64 encoded signing hash.
|
protected static
string
|
#
_sha512Asn1( string $data )
Creates a digest of the given data, with an asn1 header.
Creates a digest of the given data, with an asn1 header.
Parameters
- $data
string $data The data to create a digest of.
Returns
string The digest of the data, with asn1 header.
|
protected static
string
|
#
_encodeParameters( mixed $parameters, string $keyPrefix = null )
Encodes the given paramaters into a url encoded string based upon RFC
3986.
Encodes the given paramaters into a url encoded string based upon RFC
3986.
Parameters
- $parameters
mixed $parameters The parameters to encode.
- $keyPrefix
string $keyPrefix Key prefix.
Returns
string The given parameters encoded according to RFC 3986.
|
protected static
string
|
#
_urlencode( string $string )
Our own function to encode a string according to RFC 3986 since. PHP <
5.3.0 encodes the ~ character which is not allowed.
Our own function to encode a string according to RFC 3986 since. PHP <
5.3.0 encodes the ~ character which is not allowed.
Parameters
- $string
string $string The string to encode.
Returns
string The encoded string according to RFC 3986.
|
public static
|
#
setDnsEntries( string $domainName, Transip_DnsEntry[] $dnsEntries )
Sets the DnEntries for this Domain, will replace all existing dns entries
with the new entries
Sets the DnEntries for this Domain, will replace all existing dns entries
with the new entries
Parameters
- $domainName
string $domainName the domainName to change the dns entries for
- domainName must meet the requirements for a domain name described in: RFC 952
- $dnsEntries
Transip_DnsEntry[]
$dnsEntries the list of new DnsEntries for this domain
Example
examples/DnsService-setDnsEntries.php
|
public static
boolean
|
#
canEditDnsSec( string $domainName )
Checks if the dnssec entries of a domain can be updated.
Checks if the dnssec entries of a domain can be updated.
Parameters
- $domainName
string $domainName
Returns
boolean
Example
examples/DnsService-setDnsSecEntries.php
|
public static
Transip_DnsSecEntry[]
|
#
getDnsSecEntries( string $domainName )
Parameters
- $domainName
string $domainName
Returns
Transip_DnsSecEntry[]
Example
examples/DnsService-getDnsSecEntries.php
|
public static
|
#
setDnsSecEntries( string $domainName, Transip_DnsSecEntry[] $dnssecKeyEntrySet )
Sets new DNSSEC key entries for a domain, replacing the current ones.
Sets new DNSSEC key entries for a domain, replacing the current ones.
Parameters
- $domainName
string $domainName
- $dnssecKeyEntrySet
Transip_DnsSecEntry[] $dnssecKeyEntrySet
Throws
ApiException
Example
examples/DnsService-setDnsSecEntries.php
|
public static
|
#
removeAllDnsSecEntries( string $domainName )
Remove all the DnsSecEntries from a domain.
Remove all the DnsSecEntries from a domain.
Parameters
- $domainName
string $domainName
Example
examples/DnsService-setDnsSecEntries.php
|
Constants summary
string |
SERVICE
|
'DnsService' |
#
The SOAP service that corresponds with this class.
The SOAP service that corresponds with this class.
|
string |
API_VERSION
|
'5.23' |
|
string |
TRACK_ENDPOINT_NAME
|
'Dns' |
|
Properties summary
protected static
SoapClient
|
$_soapClient
|
null |
#
The SoapClient used to perform the SOAP calls.
The SoapClient used to perform the SOAP calls.
|