Class Dns
CloudFlare API wrapper
DNS Record CloudFlare DNS records
- Cloudflare\Api
-
Cloudflare\Zone\Dns
Namespace: Cloudflare\Zone
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/Zone/Dns.php
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/Zone/Dns.php
public
|
#
create( string $zone_identifier, string $type, string $name, string $content, integer|null $ttl = null, boolean|null $proxied = null, integer|null $priority = null, array|null $data = null )
Create DNS record (permission needed: #dns_records:edit) Create a new DNS record for a zone. See the record object definitions for required attributes for each record type |
public
|
#
list_records( string $zone_identifier, string|null $type = null, string|null $name = null, string|null $content = null, string|null $vanity_name_server_record = null, integer|null $page = null, integer|null $per_page = null, string|null $order = null, string|null $direction = null, string|null $match = null )
List DNS Records (permission needed: #dns_records:read) List, search, sort, and filter a zones' DNS records. |
public
|
|
public
|
#
update( string $zone_identifier, string $identifier, string|null $type = null, string|null $name = null, string|null $content = null, string|null $ttl = null, boolean|null $proxied = null, array|null $data = null, integer|null $priority = null )
Update DNS record (permission needed: #dns_records:edit) |
public
|
#
delete_record( string $zone_identifier, string $identifier )
Update DNS record (permission needed: #dns_records:edit) |
__construct(),
delete(),
get(),
patch(),
permissions(),
post(),
put(),
request(),
setAuthKey(),
setCurlOption(),
setEmail()
|
protected
array
|
$permission_level
Default permissions level |
#
['read' => '#dns_records:read', 'edit' => '#dns_records:edit']
|
$auth_key,
$curl_options,
$email
|