API

DomainNameserver

A domain's nameservers: list them or replace them.

Operations

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

Method Route SDK operation Returns
GET /domain/domains/{domain}/nameservers list OK
PUT /domain/domains/{domain}/nameservers 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:

domain_nameservers, err := client.DomainNameserver(nil).List(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_nameservers)
updated, err := client.DomainNameserver(nil).Update(map[string]any{"domain": "example", "nameservers": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

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

local domain_nameservers, err = client:DomainNameserver():list({ domain = "example" })
local updated, err = client:DomainNameserver():update({ domain = "example", nameservers = {} })

PHP

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

$domain_nameservers = $client->DomainNameserver()->list(["domain" => "example"]);
$updated = $client->DomainNameserver()->update(["domain" => "example", "nameservers" => []]);

Python

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

domain_nameservers = client.DomainNameserver().list({"domain": "example"})
updated = client.DomainNameserver().update({"domain": "example", "nameservers": []})

Ruby

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

domain_nameservers = client.DomainNameserver.list({ "domain" => "example" })
updated = client.DomainNameserver.update({ "domain" => "example", "nameservers" => [] })

TypeScript

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

const domain_nameservers = await client.DomainNameserver().list({ domain: "example" })
const updated = await client.DomainNameserver().update({ domain: "example", nameservers: [] })

Fields

Field Type Required Description
message string Yes Message
nameservers array Yes Nameservers

list

GET /domain/domains/{domain}/nameservers

Operation ID: getDomainDomainsDomainNameservers.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

The response is array of string.

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

PUT /domain/domains/{domain}/nameservers

Operation ID: putDomainDomainsDomainNameservers.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
nameservers array of 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