Cloudflare.DnsRecord (Cloudflare v0.2.0) View Source
DNS Records for a Zone
Documentation for Cloudflare DNS records
List DNS Records
GET
List, search, sort, and filter a zones' DNS records.
GET zones/:zone_identifier/dns_records
Permission needed: #dns_records:read
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Create DNS Record
POST
Create a new DNS record for a zone. See the record object definitions for required attributes for each record type
POST zones/:zone_identifier/dns_records
Permission needed: #dns_records:edit
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
DNS Record Details
GET
GET zones/:zone_identifier/dns_records/:identifier
Permission needed: #dns_records:read
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Update DNS Record
PUT
PUT zones/:zone_identifier/dns_records/:identifier
Permission needed: #dns_records:edit
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Patch DNS Record
PATCH
PATCH zones/:zone_identifier/dns_records/:identifier
Permission needed: #dns_records:edit
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Delete DNS Record
DELETE
DELETE zones/:zone_identifier/dns_records/:identifier
Permission needed: #dns_records:edit
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Import DNS Records
POST
You can upload your BIND config through this endpoint. It assumes that cURL is called from a location with bind_config.txt (valid BIND config) present.
POST zones/:zone_identifier/dns_records/import
Permission needed: #dns_records:edit
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Export DNS Records
GET
You can export your BIND config through this endpoint.
GET zones/:zone_identifier/dns_records/export
Permission needed: #dns_records:read
Available in:
- FREE
- PRO
- BUSINESS
- ENTERPRISE
Link to this section Summary
Link to this section Functions
Specs
client(Restlax.Resource.action_options()) :: module()
Specs
create( body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: Tesla.Env.result()
Specs
create!( body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: Tesla.Env.t() | no_return()
Specs
delete(id :: term(), opts :: Restlax.Resource.action_options()) :: Tesla.Env.result()
Specs
delete!(id :: term(), opts :: Restlax.Resource.action_options()) :: Tesla.Env.t() | no_return()
Specs
index(opts :: Restlax.Resource.action_options()) :: Tesla.Env.result()
Specs
index!(opts :: Restlax.Resource.action_options()) :: Tesla.Env.t() | no_return()
Specs
Specs
show(id :: term(), opts :: Restlax.Resource.action_options()) :: Tesla.Env.result()
Specs
show!(id :: term(), opts :: Restlax.Resource.action_options()) :: Tesla.Env.t() | no_return()
Specs
update( id :: term(), body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: Tesla.Env.result()
Specs
update!( id :: term(), body :: Restlax.Resource.action_body(), opts :: Restlax.Resource.action_options() ) :: Tesla.Env.t() | no_return()