API

LivednsSnapshot

A zone's snapshots: list, take, get, rename or delete one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /livedns/domains/{fqdn}/snapshots create Created
GET /livedns/domains/{fqdn}/snapshots list OK
GET /livedns/domains/{fqdn}/snapshots/{id} load OK
DELETE /livedns/domains/{fqdn}/snapshots/{id} remove No Content
PATCH /livedns/domains/{fqdn}/snapshots/{id} update Accepted

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

livedns_snapshots, err := client.LivednsSnapshot(nil).List(map[string]any{"fqdn": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(livedns_snapshots)
livedns_snapshot, err := client.LivednsSnapshot(nil).Load(map[string]any{"fqdn": "example", "id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(livedns_snapshot)
created, err := client.LivednsSnapshot(nil).Create(map[string]any{"fqdn": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.LivednsSnapshot(nil).Update(map[string]any{"id": "example_id", "fqdn": "example", "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.LivednsSnapshot(nil).Remove(map[string]any{"fqdn": "example", "id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local livedns_snapshots, err = client:LivednsSnapshot():list({ fqdn = "example" })
local livedns_snapshot, err = client:LivednsSnapshot():load({ fqdn = "example", id = "example_id" })
local created, err = client:LivednsSnapshot():create({ fqdn = "example" })
local updated, err = client:LivednsSnapshot():update({ id = "example_id", fqdn = "example", name = "example" })
local removed, err = client:LivednsSnapshot():remove({ fqdn = "example", id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$livedns_snapshots = $client->LivednsSnapshot()->list(["fqdn" => "example"]);
$livedns_snapshot = $client->LivednsSnapshot()->load(["fqdn" => "example", "id" => "example_id"]);
$created = $client->LivednsSnapshot()->create(["fqdn" => "example"]);
$updated = $client->LivednsSnapshot()->update(["id" => "example_id", "fqdn" => "example", "name" => "example"]);
$client->LivednsSnapshot()->remove(["fqdn" => "example", "id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

livedns_snapshots = client.LivednsSnapshot().list({"fqdn": "example"})
livedns_snapshot = client.LivednsSnapshot().load({"fqdn": "example", "id": "example_id"})
created = client.LivednsSnapshot().create({ "fqdn": "example" })
updated = client.LivednsSnapshot().update({"id": "example_id", "fqdn": "example", "name": "example"})
client.LivednsSnapshot().remove({"fqdn": "example", "id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

livedns_snapshots = client.LivednsSnapshot.list({ "fqdn" => "example" })
livedns_snapshot = client.LivednsSnapshot.load({ "fqdn" => "example", "id" => "example_id" })
created = client.LivednsSnapshot.create({ "fqdn" => "example" })
updated = client.LivednsSnapshot.update({ "id" => "example_id", "fqdn" => "example", "name" => "example" })
client.LivednsSnapshot.remove({ "fqdn" => "example", "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const livedns_snapshots = await client.LivednsSnapshot().list({ fqdn: "example" })
const livedns_snapshot = await client.LivednsSnapshot().load({ fqdn: "example", id: "example_id" })
const created = await client.LivednsSnapshot().create({ fqdn: "example" })
const updated = await client.LivednsSnapshot().update({ id: "example_id", fqdn: "example", name: "example" })
await client.LivednsSnapshot().remove({ fqdn: "example", id: "example_id" })

Fields

Field Type Required Description
automatic boolean Yes Automatic
created_at string Yes Created At
href string Yes Href
id string Yes Id
message string Yes Message
name string Yes Name
zone_data array Yes Zone Data

create

POST /livedns/domains/{fqdn}/snapshots

Operation ID: postLivednsDomainsFqdnSnapshots.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes

Request body

application/json

Property Type Required Description
name string No

Responses

201: Created

application/json

Property Type Required Description
id string Yes
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

list

GET /livedns/domains/{fqdn}/snapshots

Operation ID: getLivednsDomainsFqdnSnapshots.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes
automatic query boolean No
page query integer No
per_page query integer No
sort_by query enum: date_created, -date_created No

Responses

200: OK

application/json

Property Type Required Description
[].automatic boolean Yes
[].created_at string Yes
[].href string Yes
[].id string Yes
[].name string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /livedns/domains/{fqdn}/snapshots/{id}

Operation ID: getLivednsDomainsFqdnSnapshotsId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes
id path string Yes

Responses

200: OK

application/json

Property Type Required Description
automatic boolean Yes
created_at string Yes
href string Yes
id string Yes
name string Yes
zone_data array of object Yes
zone_data[].rrset_name string Yes
zone_data[].rrset_ttl integer No
zone_data[].rrset_type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
zone_data[].rrset_values array of string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

remove

DELETE /livedns/domains/{fqdn}/snapshots/{id}

Operation ID: deleteLivednsDomainsFqdnSnapshotsId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes
id path string Yes

Responses

204: No Content
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

update

PATCH /livedns/domains/{fqdn}/snapshots/{id}

Operation ID: patchLivednsDomainsFqdnSnapshotsId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
fqdn path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
name string Yes

Responses

202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes