Cloudflare v6.1.2 published on Monday, Apr 28, 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",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_account_dns_settings = cloudflare.get_account_dns_settings(account_id="023e105f4ecef8ad9ca31a8372d0c353")
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
})
}
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",
});
});
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());
}
}
variables:
exampleAccountDnsSettings:
fn::invoke:
function: cloudflare:getAccountDnsSettings
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
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>
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]
func LookupAccountDnsSettings(ctx *Context, args *LookupAccountDnsSettingsArgs, opts ...InvokeOption) (*LookupAccountDnsSettingsResult, error)
func LookupAccountDnsSettingsOutput(ctx *Context, args *LookupAccountDnsSettingsOutputArgs, opts ...InvokeOption) LookupAccountDnsSettingsResultOutput
> 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)
}
public static CompletableFuture<GetAccountDnsSettingsResult> getAccountDnsSettings(GetAccountDnsSettingsArgs args, InvokeOptions options)
public static Output<GetAccountDnsSettingsResult> getAccountDnsSettings(GetAccountDnsSettingsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getAccountDnsSettings:getAccountDnsSettings
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifier
- Account
Id string - Identifier
- account
Id String - Identifier
- account
Id string - Identifier
- account_
id str - Identifier
- account
Id String - Identifier
getAccountDnsSettings Result
The following output properties are available:
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Zone
Defaults GetAccount Dns Settings Zone Defaults
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Zone
Defaults GetAccount Dns Settings Zone Defaults
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- zone
Defaults GetAccount Dns Settings Zone Defaults
- account
Id string - Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- zone
Defaults GetAccount Dns Settings Zone Defaults
- account_
id str - Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- zone_
defaults GetAccount Dns Settings Zone Defaults
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- zone
Defaults Property Map
Supporting Types
GetAccountDnsSettingsZoneDefaults
- Flatten
All boolCnames - 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 bool - Whether to enable Foundation DNS Advanced Nameservers on the zone.
- Internal
Dns GetAccount Dns Settings Zone Defaults Internal Dns - Settings for this internal zone.
- Multi
Provider 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
Get
Account Dns Settings Zone Defaults Nameservers - Settings determining the nameservers through which the zone should be available.
- Ns
Ttl double - The time to live (TTL) of the zone's nameserver (NS) records.
- Secondary
Overrides bool - Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
- Soa
Get
Account Dns Settings Zone Defaults Soa - Components of the zone's SOA record.
- Zone
Mode string - Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
- Flatten
All boolCnames - 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 bool - Whether to enable Foundation DNS Advanced Nameservers on the zone.
- Internal
Dns GetAccount Dns Settings Zone Defaults Internal Dns - Settings for this internal zone.
- Multi
Provider 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
Get
Account Dns Settings Zone Defaults Nameservers - Settings determining the nameservers through which the zone should be available.
- Ns
Ttl float64 - The time to live (TTL) of the zone's nameserver (NS) records.
- Secondary
Overrides bool - Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
- Soa
Get
Account Dns Settings Zone Defaults Soa - Components of the zone's SOA record.
- Zone
Mode string - Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
- flatten
All BooleanCnames - 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 Boolean - Whether to enable Foundation DNS Advanced Nameservers on the zone.
- internal
Dns GetAccount Dns Settings Zone Defaults Internal Dns - Settings for this internal zone.
- multi
Provider 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
Get
Account Dns Settings Zone Defaults Nameservers - Settings determining the nameservers through which the zone should be available.
- ns
Ttl Double - The time to live (TTL) of the zone's nameserver (NS) records.
- secondary
Overrides Boolean - Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
- soa
Get
Account Dns Settings Zone Defaults Soa - Components of the zone's SOA record.
- zone
Mode String - Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
- flatten
All booleanCnames - 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 boolean - Whether to enable Foundation DNS Advanced Nameservers on the zone.
- internal
Dns GetAccount Dns Settings Zone Defaults Internal Dns - Settings for this internal zone.
- multi
Provider 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
Get
Account Dns Settings Zone Defaults Nameservers - Settings determining the nameservers through which the zone should be available.
- ns
Ttl number - The time to live (TTL) of the zone's nameserver (NS) records.
- secondary
Overrides boolean - Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
- soa
Get
Account Dns Settings Zone Defaults Soa - Components of the zone's SOA record.
- zone
Mode string - Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
- flatten_
all_ boolcnames - 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 bool - Whether to enable Foundation DNS Advanced Nameservers on the zone.
- internal_
dns GetAccount Dns Settings Zone Defaults Internal Dns - Settings for this internal zone.
- multi_
provider 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
Get
Account Dns Settings Zone Defaults Nameservers - Settings determining the nameservers through which the zone should be available.
- ns_
ttl float - The time to live (TTL) of the zone's nameserver (NS) records.
- secondary_
overrides bool - Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
- soa
Get
Account Dns Settings Zone Defaults Soa - Components of the zone's SOA record.
- zone_
mode str - Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
- flatten
All BooleanCnames - 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 Boolean - Whether to enable Foundation DNS Advanced Nameservers on the zone.
- internal
Dns Property Map - Settings for this internal zone.
- multi
Provider 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 Property Map
- Settings determining the nameservers through which the zone should be available.
- ns
Ttl Number - The time to live (TTL) of the zone's nameserver (NS) records.
- secondary
Overrides Boolean - Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.
- soa Property Map
- Components of the zone's SOA record.
- zone
Mode String - Whether the zone mode is a regular or CDN/DNS only zone. Available values: "standard", "cdnonly", "dnsonly".
GetAccountDnsSettingsZoneDefaultsInternalDns
- Reference
Zone stringId - The ID of the zone to fallback to.
- Reference
Zone stringId - The ID of the zone to fallback to.
- reference
Zone StringId - The ID of the zone to fallback to.
- reference
Zone stringId - The ID of the zone to fallback to.
- reference_
zone_ strid - The ID of the zone to fallback to.
- reference
Zone StringId - The ID of the zone to fallback to.
GetAccountDnsSettingsZoneDefaultsNameservers
- Type string
- Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
- Type string
- Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
- type String
- Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
- type string
- Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
- type str
- Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
- type String
- Nameserver type Available values: "cloudflare.standard", "cloudflare.standard.random", "custom.account", "custom.tenant".
GetAccountDnsSettingsZoneDefaultsSoa
- Expire double
- Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
- Min
Ttl double - The time to live (TTL) for negative caching of records within the zone.
- Mname string
- The primary nameserver, which may be used for outbound zone transfers.
- Refresh double
- Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
- Retry double
- Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
- Rname string
- The email address of the zone administrator, with the first label representing the local part of the email address.
- Ttl double
- The time to live (TTL) of the SOA record itself.
- Expire float64
- Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
- Min
Ttl float64 - The time to live (TTL) for negative caching of records within the zone.
- Mname string
- The primary nameserver, which may be used for outbound zone transfers.
- Refresh float64
- Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
- Retry float64
- Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
- Rname string
- The email address of the zone administrator, with the first label representing the local part of the email address.
- Ttl float64
- The time to live (TTL) of the SOA record itself.
- expire Double
- Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
- min
Ttl Double - The time to live (TTL) for negative caching of records within the zone.
- mname String
- The primary nameserver, which may be used for outbound zone transfers.
- refresh Double
- Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
- retry Double
- Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
- rname String
- The email address of the zone administrator, with the first label representing the local part of the email address.
- ttl Double
- The time to live (TTL) of the SOA record itself.
- expire number
- Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
- min
Ttl number - The time to live (TTL) for negative caching of records within the zone.
- mname string
- The primary nameserver, which may be used for outbound zone transfers.
- refresh number
- Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
- retry number
- Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
- rname string
- The email address of the zone administrator, with the first label representing the local part of the email address.
- ttl number
- The time to live (TTL) of the SOA record itself.
- expire float
- Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
- min_
ttl float - The time to live (TTL) for negative caching of records within the zone.
- mname str
- The primary nameserver, which may be used for outbound zone transfers.
- refresh float
- Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
- retry float
- Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
- rname str
- The email address of the zone administrator, with the first label representing the local part of the email address.
- ttl float
- The time to live (TTL) of the SOA record itself.
- expire Number
- Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.
- min
Ttl Number - The time to live (TTL) for negative caching of records within the zone.
- mname String
- The primary nameserver, which may be used for outbound zone transfers.
- refresh Number
- Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.
- retry Number
- Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.
- rname String
- The email address of the zone administrator, with the first label representing the local part of the email address.
- ttl 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.