API

LinkedZone

A linked zone: list, create, get, update 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 /linkedzone/zones create Created
GET /linkedzone/zones list OK
GET /linkedzone/zones/{zone_id} load OK
DELETE /linkedzone/zones/{zone_id} remove No Content
PATCH /linkedzone/zones/{zone_id} update OK

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:

linked_zones, err := client.LinkedZone(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(linked_zones)
linked_zone, err := client.LinkedZone(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(linked_zone)
created, err := client.LinkedZone(nil).Create(map[string]any{"name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.LinkedZone(nil).Update(map[string]any{"id": "example_id", "default_records": true, "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.LinkedZone(nil).Remove(map[string]any{"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 linked_zones, err = client:LinkedZone():list()
local linked_zone, err = client:LinkedZone():load({ id = "example_id" })
local created, err = client:LinkedZone():create({ name = "example" })
local updated, err = client:LinkedZone():update({ id = "example_id", default_records = true, name = "example" })
local removed, err = client:LinkedZone():remove({ id = "example_id" })

PHP

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

$linked_zones = $client->LinkedZone()->list();
$linked_zone = $client->LinkedZone()->load(["id" => "example_id"]);
$created = $client->LinkedZone()->create(["name" => "example"]);
$updated = $client->LinkedZone()->update(["id" => "example_id", "default_records" => true, "name" => "example"]);
$client->LinkedZone()->remove(["id" => "example_id"]);

Python

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

linked_zones = client.LinkedZone().list()
linked_zone = client.LinkedZone().load({"id": "example_id"})
created = client.LinkedZone().create({ "name": "example" })
updated = client.LinkedZone().update({"id": "example_id", "default_records": True, "name": "example"})
client.LinkedZone().remove({"id": "example_id"})

Ruby

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

linked_zones = client.LinkedZone.list()
linked_zone = client.LinkedZone.load({ "id" => "example_id" })
created = client.LinkedZone.create({ "name" => "example" })
updated = client.LinkedZone.update({ "id" => "example_id", "default_records" => true, "name" => "example" })
client.LinkedZone.remove({ "id" => "example_id" })

TypeScript

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

const linked_zones = await client.LinkedZone().list()
const linked_zone = await client.LinkedZone().load({ id: "example_id" })
const created = await client.LinkedZone().create({ name: "example" })
const updated = await client.LinkedZone().update({ id: "example_id", default_records: true, name: "example" })
await client.LinkedZone().remove({ id: "example_id" })

Fields

Field Type Required Description
created_at string Yes Created At
default_records boolean Yes Default Records
domain_count integer Yes Domain Count
domains array No Domains
id string Yes Id
message string Yes Message
name string Yes Name
record_list array No Record List
record_text string No Record Text
records array No Records
sharing_space object Yes Sharing Space
status string Yes Status
updated_at string No Updated At

create

POST /linkedzone/zones

Operation ID: postLinkedzoneZones.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
default_records boolean No
name string Yes
record_list array of object No
record_list[].name string Yes
record_list[].ttl integer Yes
record_list[].type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
record_list[].values array of string Yes
record_text string No

Responses

201: Created

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

list

GET /linkedzone/zones

Operation ID: getLinkedzoneZones.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
page query integer No
per_page query integer No
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
[].created_at string (date-time) Yes
[].default_records boolean Yes
[].domain_count integer Yes
[].domains array of string No
[].id string Yes
[].name string Yes
[].record_text string No
[].records array of object No
[].records[].name string Yes
[].records[].ttl integer Yes
[].records[].type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
[].records[].values array of string Yes
[].sharing_space object Yes
[].sharing_space.id string Yes
[].sharing_space.name string Yes
[].status enum: BEING_DEACTIVATED, BEING_DEPLOYED, DEPLOYED, NOT_DEPLOYED Yes
[].updated_at string (date-time) No
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 /linkedzone/zones/{zone_id}

Operation ID: getLinkedzoneZonesZoneId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
zone_id path string Yes
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
created_at string (date-time) Yes
default_records boolean Yes
domain_count integer Yes
domains array of string No
id string Yes
name string Yes
record_text string No
records array of object No
records[].name string Yes
records[].ttl integer Yes
records[].type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
records[].values array of string Yes
sharing_space object Yes
sharing_space.id string Yes
sharing_space.name string Yes
status enum: BEING_DEACTIVATED, BEING_DEPLOYED, DEPLOYED, NOT_DEPLOYED Yes
updated_at string (date-time) No
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
404: Not Found

application/json

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

remove

DELETE /linkedzone/zones/{zone_id}

Operation ID: deleteLinkedzoneZonesZoneId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
zone_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
404: Not Found

application/json

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

update

PATCH /linkedzone/zones/{zone_id}

Operation ID: patchLinkedzoneZonesZoneId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
zone_id path string Yes

Request body

application/json

Property Type Required Description
default_records boolean No
name string No
record_list array of object No
record_list[].name string Yes
record_list[].ttl integer Yes
record_list[].type enum: A, AAAA, ALIAS, CAA, CDS, CNAME, ... Yes
record_list[].values array of string Yes
record_text string No

Responses

200: OK

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
404: Not Found

application/json

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