API

LinkedZoneDomain

The domains using linked zones: list them, get one, link domains to a zone (link) or unlink them (unlink).

Operations

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

Method Route SDK operation Returns
GET /linkedzone/domains list OK
GET /linkedzone/domains/{domain} load OK
PATCH /linkedzone/zones/{zone_id}/link/domains update OK
PATCH /linkedzone/unlink/domains 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_zone_domains, err := client.LinkedZoneDomain(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(linked_zone_domains)
linked_zone_domain, err := client.LinkedZoneDomain(nil).Load(map[string]any{"name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(linked_zone_domain)

Lua

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

local linked_zone_domains, err = client:LinkedZoneDomain():list()
local linked_zone_domain, err = client:LinkedZoneDomain():load({ name = "example" })

PHP

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

$linked_zone_domains = $client->LinkedZoneDomain()->list();
$linked_zone_domain = $client->LinkedZoneDomain()->load(["name" => "example"]);

Python

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

linked_zone_domains = client.LinkedZoneDomain().list()
linked_zone_domain = client.LinkedZoneDomain().load({"name": "example"})

Ruby

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

linked_zone_domains = client.LinkedZoneDomain.list()
linked_zone_domain = client.LinkedZoneDomain.load({ "name" => "example" })

TypeScript

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

const linked_zone_domains = await client.LinkedZoneDomain().list()
const linked_zone_domain = await client.LinkedZoneDomain().load({ name: "example" })

Fields

Field Type Required Description
deployed boolean Yes Deployed
id string Yes Id
name string Yes Name
owner string Yes Owner
zone object Yes Zone

list

GET /linkedzone/domains

Operation ID: getLinkedzoneDomains.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: OK

application/json

Property Type Required Description
[].deployed boolean Yes
[].id string Yes
[].name string Yes
[].owner string Yes
[].zone object Yes
[].zone.id string Yes
[].zone.name string Yes
[].zone.status enum: BEING_DEACTIVATED, BEING_DEPLOYED, DEPLOYED, NOT_DEPLOYED 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 /linkedzone/domains/{domain}

Operation ID: getLinkedzoneDomainsDomain.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

Property Type Required Description
deployed boolean Yes
id string Yes
name string Yes
owner string Yes
zone object Yes
zone.id string Yes
zone.name string Yes
zone.status enum: BEING_DEACTIVATED, BEING_DEPLOYED, DEPLOYED, NOT_DEPLOYED 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

update

PATCH /linkedzone/zones/{zone_id}/link/domains

Operation ID: patchLinkedzoneZonesZoneIdLinkDomains.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
zone_id path string Yes

Request body

application/json

Property Type Required Description
domains array of string Yes

Responses

200: OK

application/json

Property Type Required Description
errored array of object Yes
errored[].domain string Yes
errored[].message string Yes
errored[].type enum: DATABASE_ERROR, DNS_PERMISSION, DOMAIN_EXISTS, DOMAIN_NOT_EXIST, DOMAIN_PERMISSION, DOMAIN_STATUS_ERROR, ... Yes
succeeded 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
404: Not Found

application/json

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

PATCH /linkedzone/unlink/domains

Operation ID: patchLinkedzoneUnlinkDomains.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
domains array of string Yes

Responses

200: OK

application/json

Property Type Required Description
errored array of object Yes
errored[].domain string Yes
errored[].message string Yes
errored[].type enum: DATABASE_ERROR, DOMAIN_NOT_EXIST, DOMAIN_PERMISSION, DOMAIN_STATUS_ERROR, DNS_PERMISSION, ZONE_BEING_DEPLOYED Yes
succeeded 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