# Class Subdomain

The Subdomain is basically another domain, albeit one that is a child of a parent domain. In terms of the code involved, the JSON is slightly different than a top-level domain, and the parent is a domain instead of the DNS service itself.

  OpenCloud\Common\Base
  OpenCloud\Common\Resource\BaseResource
  OpenCloud\Common\Resource\PersistentResource
  OpenCloud\DNS\Resource\AbstractResource
  OpenCloud\DNS\Resource\Domain
  OpenCloud\DNS\Resource\Subdomain

Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/Subdomain.php

Methods inherited from OpenCloud\DNS\Resource\Domain
`addRecord(), addSubdomain(), changes(), cloneDomain(), createJson(), export(), record(), recordList(), subdomain(), subdomainList()`

Methods inherited from OpenCloud\DNS\Resource\AbstractResource
`create(), delete(), getCreateKeys(), getUpdateKeys(), update(), updateJson()`

Methods inherited from OpenCloud\Common\Resource\PersistentResource
`checkExtension(), getAlias(), noCreate(), noDelete(), noUpdate(), refresh(), refreshFromLocationUrl(), waitFor()`

Methods inherited from OpenCloud\Common\Resource\BaseResource
`__construct(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), primaryKeyField(), resourceName(), setMetadata(), setParent(), setService()`

Methods inherited from OpenCloud\Common\Base
`__call(), checkJsonError(), generateUuid(), getInstance(), getJsonHeader(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()`

Properties summary
`protected static boolean` | $json_name | `false` | #
`protected static string` | $json_collection_name | `'domains'` | #
`protected static string` | $url_resource | `'subdomains'` | #

Properties inherited from OpenCloud\DNS\Resource\Domain
`$accountId, $comment, $createKeys, $created, $emailAddress, $id, $name, $ttl, $updateKeys, $updated`

Properties inherited from OpenCloud\Common\Resource\BaseResource
`$metadata, $parent, $service`

Properties inherited from OpenCloud\Common\Base
`$aliases`