1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getAccountDnsSettings
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getAccountDnsSettings

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleAccountDnsSettings = cloudflare.getAccountDnsSettings({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_account_dns_settings = cloudflare.get_account_dns_settings(account_id="023e105f4ecef8ad9ca31a8372d0c353")
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.LookupAccountDnsSettings(ctx, &cloudflare.LookupAccountDnsSettingsArgs{
			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleAccountDnsSettings = Cloudflare.GetAccountDnsSettings.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetAccountDnsSettingsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var exampleAccountDnsSettings = CloudflareFunctions.getAccountDnsSettings(GetAccountDnsSettingsArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .build());

    }
}
Copy
variables:
  exampleAccountDnsSettings:
    fn::invoke:
      function: cloudflare:getAccountDnsSettings
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
Copy

Using getAccountDnsSettings

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAccountDnsSettings(args: GetAccountDnsSettingsArgs, opts?: InvokeOptions): Promise<GetAccountDnsSettingsResult>
function getAccountDnsSettingsOutput(args: GetAccountDnsSettingsOutputArgs, opts?: InvokeOptions): Output<GetAccountDnsSettingsResult>
Copy
def get_account_dns_settings(account_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAccountDnsSettingsResult
def get_account_dns_settings_output(account_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAccountDnsSettingsResult]
Copy
func LookupAccountDnsSettings(ctx *Context, args *LookupAccountDnsSettingsArgs, opts ...InvokeOption) (*LookupAccountDnsSettingsResult, error)
func LookupAccountDnsSettingsOutput(ctx *Context, args *LookupAccountDnsSettingsOutputArgs, opts ...InvokeOption) LookupAccountDnsSettingsResultOutput
Copy

> Note: This function is named LookupAccountDnsSettings in the Go SDK.

public static class GetAccountDnsSettings 
{
    public static Task<GetAccountDnsSettingsResult> InvokeAsync(GetAccountDnsSettingsArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountDnsSettingsResult> Invoke(GetAccountDnsSettingsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAccountDnsSettingsResult> getAccountDnsSettings(GetAccountDnsSettingsArgs args, InvokeOptions options)
public static Output<GetAccountDnsSettingsResult> getAccountDnsSettings(GetAccountDnsSettingsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getAccountDnsSettings:getAccountDnsSettings
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Identifier
AccountId This property is required. string
Identifier
accountId This property is required. String
Identifier
accountId This property is required. string
Identifier
account_id This property is required. str
Identifier
accountId This property is required. String
Identifier

getAccountDnsSettings Result

The following output properties are available:

AccountId string
Identifier
Id string
The provider-assigned unique ID for this managed resource.
ZoneDefaults GetAccountDnsSettingsZoneDefaults
AccountId string
Identifier
Id string
The provider-assigned unique ID for this managed resource.
ZoneDefaults GetAccountDnsSettingsZoneDefaults
accountId String
Identifier
id String
The provider-assigned unique ID for this managed resource.
zoneDefaults GetAccountDnsSettingsZoneDefaults
accountId string
Identifier
id string
The provider-assigned unique ID for this managed resource.
zoneDefaults GetAccountDnsSettingsZoneDefaults
account_id str
Identifier
id str
The provider-assigned unique ID for this managed resource.
zone_defaults GetAccountDnsSettingsZoneDefaults
accountId String
Identifier
id String
The provider-assigned unique ID for this managed resource.
zoneDefaults Property Map

Supporting Types

GetAccountDnsSettingsZoneDefaults

FlattenAllCnames This property is required. bool
Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.
FoundationDns This property is required. bool
Whether to enable Foundation DNS Advanced Nameservers on the zone.
InternalDns This property is required. GetAccountDnsSettingsZoneDefaultsInternalDns
Settings for this internal zone.
MultiProvider This property is required. bool
Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.
Nameservers This property is required. GetAccountDnsSettingsZoneDefaultsNameservers
Settings determining the nameservers through which the zone should be available.
NsTtl This property is required. double
The time to live (TTL) of the zone's nameserver (NS) records.
SecondaryOverrides This property is required. bool
Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
Soa This property is required. GetAccountDnsSettingsZoneDefaultsSoa
Components of the zone's SOA record.
ZoneMode This property is required. string
Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
FlattenAllCnames This property is required. bool
Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.
FoundationDns This property is required. bool
Whether to enable Foundation DNS Advanced Nameservers on the zone.
InternalDns This property is required. GetAccountDnsSettingsZoneDefaultsInternalDns
Settings for this internal zone.
MultiProvider This property is required. bool
Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.
Nameservers This property is required. GetAccountDnsSettingsZoneDefaultsNameservers
Settings determining the nameservers through which the zone should be available.
NsTtl This property is required. float64
The time to live (TTL) of the zone's nameserver (NS) records.
SecondaryOverrides This property is required. bool
Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
Soa This property is required. GetAccountDnsSettingsZoneDefaultsSoa
Components of the zone's SOA record.
ZoneMode This property is required. string
Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
flattenAllCnames This property is required. Boolean
Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.
foundationDns This property is required. Boolean
Whether to enable Foundation DNS Advanced Nameservers on the zone.
internalDns This property is required. GetAccountDnsSettingsZoneDefaultsInternalDns
Settings for this internal zone.
multiProvider This property is required. Boolean
Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.
nameservers This property is required. GetAccountDnsSettingsZoneDefaultsNameservers
Settings determining the nameservers through which the zone should be available.
nsTtl This property is required. Double
The time to live (TTL) of the zone's nameserver (NS) records.
secondaryOverrides This property is required. Boolean
Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
soa This property is required. GetAccountDnsSettingsZoneDefaultsSoa
Components of the zone's SOA record.
zoneMode This property is required. String
Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
flattenAllCnames This property is required. boolean
Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.
foundationDns This property is required. boolean
Whether to enable Foundation DNS Advanced Nameservers on the zone.
internalDns This property is required. GetAccountDnsSettingsZoneDefaultsInternalDns
Settings for this internal zone.
multiProvider This property is required. boolean
Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.
nameservers This property is required. GetAccountDnsSettingsZoneDefaultsNameservers
Settings determining the nameservers through which the zone should be available.
nsTtl This property is required. number
The time to live (TTL) of the zone's nameserver (NS) records.
secondaryOverrides This property is required. boolean
Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
soa This property is required. GetAccountDnsSettingsZoneDefaultsSoa
Components of the zone's SOA record.
zoneMode This property is required. string
Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
flatten_all_cnames This property is required. bool
Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.
foundation_dns This property is required. bool
Whether to enable Foundation DNS Advanced Nameservers on the zone.
internal_dns This property is required. GetAccountDnsSettingsZoneDefaultsInternalDns
Settings for this internal zone.
multi_provider This property is required. bool
Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.
nameservers This property is required. GetAccountDnsSettingsZoneDefaultsNameservers
Settings determining the nameservers through which the zone should be available.
ns_ttl This property is required. float
The time to live (TTL) of the zone's nameserver (NS) records.
secondary_overrides This property is required. bool
Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
soa This property is required. GetAccountDnsSettingsZoneDefaultsSoa
Components of the zone's SOA record.
zone_mode This property is required. str
Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
flattenAllCnames This property is required. Boolean
Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.
foundationDns This property is required. Boolean
Whether to enable Foundation DNS Advanced Nameservers on the zone.
internalDns This property is required. Property Map
Settings for this internal zone.
multiProvider This property is required. Boolean
Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.
nameservers This property is required. Property Map
Settings determining the nameservers through which the zone should be available.
nsTtl This property is required. Number
The time to live (TTL) of the zone's nameserver (NS) records.
secondaryOverrides This property is required. Boolean
Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
soa This property is required. Property Map
Components of the zone's SOA record.
zoneMode This property is required. String
Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".

GetAccountDnsSettingsZoneDefaultsInternalDns

ReferenceZoneId This property is required. string
The ID of the zone to fallback to.
ReferenceZoneId This property is required. string
The ID of the zone to fallback to.
referenceZoneId This property is required. String
The ID of the zone to fallback to.
referenceZoneId This property is required. string
The ID of the zone to fallback to.
reference_zone_id This property is required. str
The ID of the zone to fallback to.
referenceZoneId This property is required. String
The ID of the zone to fallback to.

GetAccountDnsSettingsZoneDefaultsNameservers

Type This property is required. string
Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
Type This property is required. string
Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
type This property is required. String
Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
type This property is required. string
Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
type This property is required. str
Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
type This property is required. String
Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".

GetAccountDnsSettingsZoneDefaultsSoa

Expire This property is required. double
Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
MinTtl This property is required. double
The time to live (TTL) for negative caching of records within the zone.
Mname This property is required. string
The primary nameserver, which may be used for outbound zone transfers.
Refresh This property is required. double
Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
Retry This property is required. double
Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
Rname This property is required. string
The email address of the zone administrator, with the first label representing the local part of the email address.
Ttl This property is required. double
The time to live (TTL) of the SOA record itself.
Expire This property is required. float64
Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
MinTtl This property is required. float64
The time to live (TTL) for negative caching of records within the zone.
Mname This property is required. string
The primary nameserver, which may be used for outbound zone transfers.
Refresh This property is required. float64
Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
Retry This property is required. float64
Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
Rname This property is required. string
The email address of the zone administrator, with the first label representing the local part of the email address.
Ttl This property is required. float64
The time to live (TTL) of the SOA record itself.
expire This property is required. Double
Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
minTtl This property is required. Double
The time to live (TTL) for negative caching of records within the zone.
mname This property is required. String
The primary nameserver, which may be used for outbound zone transfers.
refresh This property is required. Double
Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
retry This property is required. Double
Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
rname This property is required. String
The email address of the zone administrator, with the first label representing the local part of the email address.
ttl This property is required. Double
The time to live (TTL) of the SOA record itself.
expire This property is required. number
Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
minTtl This property is required. number
The time to live (TTL) for negative caching of records within the zone.
mname This property is required. string
The primary nameserver, which may be used for outbound zone transfers.
refresh This property is required. number
Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
retry This property is required. number
Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
rname This property is required. string
The email address of the zone administrator, with the first label representing the local part of the email address.
ttl This property is required. number
The time to live (TTL) of the SOA record itself.
expire This property is required. float
Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
min_ttl This property is required. float
The time to live (TTL) for negative caching of records within the zone.
mname This property is required. str
The primary nameserver, which may be used for outbound zone transfers.
refresh This property is required. float
Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
retry This property is required. float
Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
rname This property is required. str
The email address of the zone administrator, with the first label representing the local part of the email address.
ttl This property is required. float
The time to live (TTL) of the SOA record itself.
expire This property is required. Number
Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
minTtl This property is required. Number
The time to live (TTL) for negative caching of records within the zone.
mname This property is required. String
The primary nameserver, which may be used for outbound zone transfers.
refresh This property is required. Number
Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
retry This property is required. Number
Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
rname This property is required. String
The email address of the zone administrator, with the first label representing the local part of the email address.
ttl This property is required. Number
The time to live (TTL) of the SOA record itself.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.