Cloudflare

v4.12.1 published on Thursday, Sep 22, 2022 by Pulumi

getZone

Using getZone

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 getZone(args: GetZoneArgs, opts?: InvokeOptions): Promise<GetZoneResult>
function getZoneOutput(args: GetZoneOutputArgs, opts?: InvokeOptions): Output<GetZoneResult>
def get_zone(account_id: Optional[str] = None,
             name: Optional[str] = None,
             zone_id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetZoneResult
def get_zone_output(account_id: Optional[pulumi.Input[str]] = None,
             name: Optional[pulumi.Input[str]] = None,
             zone_id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetZoneResult]
func LookupZone(ctx *Context, args *LookupZoneArgs, opts ...InvokeOption) (*LookupZoneResult, error)
func LookupZoneOutput(ctx *Context, args *LookupZoneOutputArgs, opts ...InvokeOption) LookupZoneResultOutput

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

public static class GetZone 
{
    public static Task<GetZoneResult> InvokeAsync(GetZoneArgs args, InvokeOptions? opts = null)
    public static Output<GetZoneResult> Invoke(GetZoneInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: cloudflare:index/getZone:getZone
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AccountId string

The account identifier to target for the resource.

Name string

Must provide only one of zone_id, name.

ZoneId string

The zone identifier to target for the resource. Must provide only one of zone_id, name.

AccountId string

The account identifier to target for the resource.

Name string

Must provide only one of zone_id, name.

ZoneId string

The zone identifier to target for the resource. Must provide only one of zone_id, name.

accountId String

The account identifier to target for the resource.

name String

Must provide only one of zone_id, name.

zoneId String

The zone identifier to target for the resource. Must provide only one of zone_id, name.

accountId string

The account identifier to target for the resource.

name string

Must provide only one of zone_id, name.

zoneId string

The zone identifier to target for the resource. Must provide only one of zone_id, name.

account_id str

The account identifier to target for the resource.

name str

Must provide only one of zone_id, name.

zone_id str

The zone identifier to target for the resource. Must provide only one of zone_id, name.

accountId String

The account identifier to target for the resource.

name String

Must provide only one of zone_id, name.

zoneId String

The zone identifier to target for the resource. Must provide only one of zone_id, name.

getZone Result

The following output properties are available:

AccountId string

The account identifier to target for the resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Must provide only one of zone_id, name.

NameServers List<string>
Paused bool
Plan string
Status string
VanityNameServers List<string>
ZoneId string

The zone identifier to target for the resource. Must provide only one of zone_id, name.

AccountId string

The account identifier to target for the resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Must provide only one of zone_id, name.

NameServers []string
Paused bool
Plan string
Status string
VanityNameServers []string
ZoneId string

The zone identifier to target for the resource. Must provide only one of zone_id, name.

accountId String

The account identifier to target for the resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Must provide only one of zone_id, name.

nameServers List<String>
paused Boolean
plan String
status String
vanityNameServers List<String>
zoneId String

The zone identifier to target for the resource. Must provide only one of zone_id, name.

accountId string

The account identifier to target for the resource.

id string

The provider-assigned unique ID for this managed resource.

name string

Must provide only one of zone_id, name.

nameServers string[]
paused boolean
plan string
status string
vanityNameServers string[]
zoneId string

The zone identifier to target for the resource. Must provide only one of zone_id, name.

account_id str

The account identifier to target for the resource.

id str

The provider-assigned unique ID for this managed resource.

name str

Must provide only one of zone_id, name.

name_servers Sequence[str]
paused bool
plan str
status str
vanity_name_servers Sequence[str]
zone_id str

The zone identifier to target for the resource. Must provide only one of zone_id, name.

accountId String

The account identifier to target for the resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Must provide only one of zone_id, name.

nameServers List<String>
paused Boolean
plan String
status String
vanityNameServers List<String>
zoneId String

The zone identifier to target for the resource. Must provide only one of zone_id, name.

Package Details

Repository
https://github.com/pulumi/pulumi-cloudflare
License
Apache-2.0
Notes

This Pulumi package is based on the cloudflare Terraform Provider.