Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • AsyncResponse
  • Domain
  • Object
  • PtrRecord
  • Record
  • Service
  • Subdomain
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

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
Extended by OpenCloud\Common\PersistentObject
Extended by OpenCloud\DNS\Object
Extended by OpenCloud\DNS\Record
Extended by OpenCloud\DNS\PtrRecord
Namespace: OpenCloud\DNS
Located at OpenCloud/DNS/PtrRecord.php
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

OpenCloud\DNS\Record::__construct()
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

OpenCloud\Common\PersistentObject::url()
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

OpenCloud\DNS\AsyncResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\DNS\Object::create()
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

OpenCloud\DNS\AsyncResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\DNS\Object::update()
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

OpenCloud\DNS\AsyncResponse

Throws

DeleteError
if HTTP status is not Success

Overrides

OpenCloud\DNS\Object::delete()
protected stdClass
# createJson( )

Specialized JSON for DNS PTR creates and updates

Specialized JSON for DNS PTR creates and updates

Returns

stdClass

Throws

CreateError
if not overridden

Overrides

OpenCloud\DNS\Object::createJson()
protected stdClass
# updateJson( mixed $params = array() )

The Update() JSON requires a record ID

The Update() JSON requires a record ID

Returns

stdClass

Throws

UpdateError
if not overridden

Overrides

OpenCloud\DNS\Object::updateJson()
Methods inherited from OpenCloud\DNS\Record
Parent()
Methods inherited from OpenCloud\DNS\Object
getCreateKeys(), getUpdateKeys()
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()
Methods inherited from OpenCloud\Common\Base
checkJsonError(), getHttpRequestObject(), getLogger(), makeQueryString(), populate(), setLogger(), setProperty()
Properties summary
public mixed $server
#
protected static boolean $json_name false
#
protected static string $json_collection_name 'records'
#
protected static string $url_resource 'rdns'
#
Properties inherited from OpenCloud\DNS\Record
$comment, $createKeys, $created, $data, $id, $name, $parent, $priority, $ttl, $type, $updateKeys, $updated
PHP OpenCloud API API documentation generated by ApiGen 2.8.0