Class PtrRecord
PTR records are used for reverse DNS
The PtrRecord object is nearly identical with the Record object. However, the
PtrRecord is a child of the service, and not a child of a Domain.
-
OpenCloud\Common\Base
-
OpenCloud\Common\PersistentObject
-
OpenCloud\DNS\Object
-
OpenCloud\DNS\Record
-
OpenCloud\DNS\PtrRecord
Methods summary
public
|
#
__construct( mixed $parent, mixed $info = null )
constructur ensures that the record type is PTR
constructur ensures that the record type is PTR
Parameters
- $parent
mixed $parent either the domain object or the DNS object (for PTR)
- $info
mixed $info ID or array/object of data for the object
Overrides
|
public
string
|
#
url( string $subresource = null, array $params = array() )
specialized DNS PTR URL requires server service name and href
specialized DNS PTR URL requires server service name and href
Parameters
- $subresource
string $subresource optional sub-resource string
- $params
array $qstr optional k/v pairs for query strings
Returns
string
Throws
UrlError if URL is not defined
Overrides
|
public
OpenCloud\DNS\AsyncResponse
|
#
create( array $params = array() )
DNS PTR Create() method requires a server
DNS PTR Create() method requires a server
Generally called as Create(array('server'=>$server))
Parameters
- $params
array $params array of key/value pairs
Returns
Throws
VolumeCreateError if HTTP status is not Success
Overrides
|
public
OpenCloud\DNS\AsyncResponse
|
#
update( array $params = array() )
DNS PTR Update() method requires a server
DNS PTR Update() method requires a server
Parameters
- $params
array $params array of key/value pairs
Returns
Throws
VolumeCreateError if HTTP status is not Success
Overrides
|
public
OpenCloud\DNS\AsyncResponse
|
#
delete( )
DNS PTR Delete() method requires a server
DNS PTR Delete() method requires a server
Note that delete will remove ALL PTR records associated with the device
unless you pass in the parameter ip={ip address}
Returns
Throws
DeleteError if HTTP status is not Success
Overrides
|
protected
stdClass
|
#
createJson( )
Specialized JSON for DNS PTR creates and updates
Specialized JSON for DNS PTR creates and updates
Returns
Throws
CreateError if not overridden
Overrides
|
protected
stdClass
|
#
updateJson( mixed $params = array() )
The Update() JSON requires a record ID
The Update() JSON requires a record ID
Returns
Throws
UpdateError if not overridden
Overrides
|
Methods inherited from OpenCloud\Common\PersistentObject
__set(),
action(),
checkExtension(),
createUrl(),
customAction(),
findLink(),
getParent(),
getService(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
name(),
noCreate(),
noDelete(),
noUpdate(),
parent(),
primaryKeyField(),
refresh(),
region(),
resourceName(),
service(),
setParent(),
setService(),
status(),
waitFor()
|
Properties inherited from OpenCloud\DNS\Record
$comment,
$createKeys,
$created,
$data,
$id,
$name,
$parent,
$priority,
$ttl,
$type,
$updateKeys,
$updated
|