DomainDnsIntegration
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/domain_dns_integrations |
create |
Connected Cloudflare DNS integration |
GET |
/api/v1/organizations/{organization_id}/domain_dns_integrations |
list |
DNS integrations in the organization |
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_dns_integrations, err := client.DomainDnsIntegration(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(domain_dns_integrations)
created, err := client.DomainDnsIntegration(nil).Create(map[string]any{"organization_id": "example", "api_token": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local domain_dns_integrations, err = client:DomainDnsIntegration():list({ organization_id = "example" })
local created, err = client:DomainDnsIntegration():create({ organization_id = "example", api_token = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$domain_dns_integrations = $client->DomainDnsIntegration()->list(["organization_id" => "example"]);
$created = $client->DomainDnsIntegration()->create(["organization_id" => "example", "api_token" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
domain_dns_integrations = client.DomainDnsIntegration().list({"organization_id": "example"})
created = client.DomainDnsIntegration().create({ "organization_id": "example", "api_token": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
domain_dns_integrations = client.DomainDnsIntegration.list({ "organization_id" => "example" })
created = client.DomainDnsIntegration.create({ "organization_id" => "example", "api_token" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const domain_dns_integrations = await client.DomainDnsIntegration().list({ organization_id: "example" })
const created = await client.DomainDnsIntegration().create({ organization_id: "example", api_token: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
account_label |
one,string,null |
Yes | Account Label |
api_token |
string |
Yes | Api Token |
created_at |
string |
Yes | Created At |
failure_message |
one,string,null |
Yes | Failure Message |
has_token |
boolean |
Yes | Has Token |
id |
string |
Yes | Id |
last_verified_at |
one,string,null |
Yes | Last Verified At |
organization_id |
string |
Yes | Organization Id |
provider |
string |
Yes | Provider |
status |
string |
Yes | Status |
updated_at |
string |
Yes | Updated At |
create
POST /api/v1/organizations/{organization_id}/domain_dns_integrations
Operation ID: post_api_v1_organizations_organization_id_domain_dns_integrations.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_label |
string |
No | |
api_token |
string |
Yes |
Responses
200: Connected Cloudflare DNS integration
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_label |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
failure_message |
string |
Yes | |
has_token |
boolean |
Yes | |
id |
string |
Yes | |
last_verified_at |
string (date-time) |
Yes | |
organization_id |
string |
Yes | |
provider |
enum: cloudflare |
Yes | |
status |
enum: active, failed, disabled |
Yes | |
updated_at |
string (date-time) |
Yes |
201: Connected Cloudflare DNS integration
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_label |
string |
Yes | |
created_at |
string (date-time) |
Yes | |
failure_message |
string |
Yes | |
has_token |
boolean |
Yes | |
id |
string |
Yes | |
last_verified_at |
string (date-time) |
Yes | |
organization_id |
string |
Yes | |
provider |
enum: cloudflare |
Yes | |
status |
enum: active, failed, disabled |
Yes | |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Static site request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
failure_message |
string |
No | |
status |
string |
No |
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/domain_dns_integrations
Operation ID: api_v1_organization_domain_dns_integrations.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Responses
200: DNS integrations in the organization
application/json
| Property | Type | Required | Description |
|---|---|---|---|
integrations |
array of object |
Yes | |
integrations[].account_label |
string |
Yes | |
integrations[].created_at |
string (date-time) |
Yes | |
integrations[].failure_message |
string |
Yes | |
integrations[].has_token |
boolean |
Yes | |
integrations[].id |
string |
Yes | |
integrations[].last_verified_at |
string (date-time) |
Yes | |
integrations[].organization_id |
string |
Yes | |
integrations[].provider |
enum: cloudflare |
Yes | |
integrations[].status |
enum: active, failed, disabled |
Yes | |
integrations[].updated_at |
string (date-time) |
Yes |