Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Identity
      • Log
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Resource
    • LoadBalancer
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • AsyncResponse
  • Domain
  • Object
  • PtrRecord
  • Record
  • 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\Resource\Object
Extended by OpenCloud\DNS\Resource\Record
Extended by OpenCloud\DNS\Resource\PtrRecord
Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/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
$service The service object for this resource
$info
mixed
$info The ID or array/object of data

Overrides

OpenCloud\Common\PersistentObject::__construct()
public OpenCloud\DNS\Resource\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\Resource\AsyncResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

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

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

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

Throws

DeleteError
if HTTP status is not Success

Overrides

OpenCloud\DNS\Resource\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\Resource\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\Resource\Object::updateJson()
Methods inherited from OpenCloud\DNS\Resource\Object
getCreateKeys(), getUpdateKeys()
Methods inherited from OpenCloud\Common\PersistentObject
action(), checkExtension(), createUrl(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), id(), jsonCollectionElement(), jsonCollectionName(), jsonName(), name(), noCreate(), noDelete(), noUpdate(), parseResponse(), primaryKeyField(), refresh(), refreshFromLocationUrl(), region(), resourceName(), setMetadata(), setParent(), setService(), status(), url(), waitFor()
Methods inherited from OpenCloud\Common\Base
__call(), checkJsonError(), generateUuid(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
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\Resource\Record
$comment, $createKeys, $created, $data, $id, $name, $parent, $priority, $ttl, $type, $updateKeys, $updated
Properties inherited from OpenCloud\Common\PersistentObject
$metadata
PHP OpenCloud API API documentation generated by ApiGen 2.8.0