API

LinkedZoneTask

Linked zone tasks: list them or get one.

Operations

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

Method Route SDK operation Returns
GET /linkedzone/tasks list OK
GET /linkedzone/tasks/{task_id} load 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_tasks, err := client.LinkedZoneTask(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(linked_zone_tasks)
linked_zone_task, err := client.LinkedZoneTask(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(linked_zone_task)

Lua

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

local linked_zone_tasks, err = client:LinkedZoneTask():list()
local linked_zone_task, err = client:LinkedZoneTask():load({ id = "example_id" })

PHP

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

$linked_zone_tasks = $client->LinkedZoneTask()->list();
$linked_zone_task = $client->LinkedZoneTask()->load(["id" => "example_id"]);

Python

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

linked_zone_tasks = client.LinkedZoneTask().list()
linked_zone_task = client.LinkedZoneTask().load({"id": "example_id"})

Ruby

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

linked_zone_tasks = client.LinkedZoneTask.list()
linked_zone_task = client.LinkedZoneTask.load({ "id" => "example_id" })

TypeScript

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

const linked_zone_tasks = await client.LinkedZoneTask().list()
const linked_zone_task = await client.LinkedZoneTask().load({ id: "example_id" })

Fields

Field Type Required Description
created_at string Yes Created At
ending_at string No Ending At
id string Yes Id
result object Yes Result
status string Yes Status
type string Yes Type
updated_at string No Updated At
zone_id string Yes Zone Id

list

GET /linkedzone/tasks

Operation ID: getLinkedzoneTasks.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: OK

application/json

Property Type Required Description
[].created_at string (date-time) Yes
[].ending_at string (date-time) No
[].id string Yes
[].result object Yes
[].result.errored array of object Yes
[].result.errored[].domain string Yes
[].result.errored[].message string Yes
[].result.errored[].type enum: DATABASE_ERROR, DOMAIN_EXISTS, DOMAIN_NOT_EXIST, DOMAIN_PERMISSION, DOMAIN_STATUS_ERROR, DNS_PERMISSION, ... Yes
[].result.succeeded array of string Yes
[].status enum: FINISHED, PENDING Yes
[].type enum: DEACTIVATE_ZONE, DEPLOY_ZONE Yes
[].updated_at string (date-time) No
[].zone_id 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 /linkedzone/tasks/{task_id}

Operation ID: getLinkedzoneTasksTaskId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
task_id path string Yes

Responses

200: OK

application/json

Property Type Required Description
created_at string (date-time) Yes
ending_at string (date-time) No
id string Yes
result object Yes
result.errored array of object Yes
result.errored[].domain string Yes
result.errored[].message string Yes
result.errored[].type enum: DATABASE_ERROR, DOMAIN_EXISTS, DOMAIN_NOT_EXIST, DOMAIN_PERMISSION, DOMAIN_STATUS_ERROR, DNS_PERMISSION, ... Yes
result.succeeded array of string Yes
status enum: FINISHED, PENDING Yes
type enum: DEACTIVATE_ZONE, DEPLOY_ZONE Yes
updated_at string (date-time) No
zone_id 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