getZone

suspend fun getZone(argument: GetZonePlainArgs): GetZoneResult

Use this data source to look up zone info. This is the singular alternative to cloudflare.getZones.

Note Cloudflare zone names are not unique. It is possible for multiple accounts to have the same zone created but in different states. If you are using this setup, it is advised to use the account_id attribute on this resource or swap to cloudflare.getZones to further filter the results. {{% examples %}}

Example Usage

{{tffile "examples/data-sources/cloudflare_zone/data-source.tf"}} {{% /examples %}}

Return

A collection of values returned by getZone.

Parameters

argument

A collection of arguments for invoking getZone.


suspend fun getZone(accountId: String? = null, name: String? = null, zoneId: String? = null): GetZoneResult

Return

A collection of values returned by getZone.

Parameters

accountId

The account identifier to target for the resource.

name

The name of the zone. Must provide only one of zone_id, name.

zoneId

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

See also


suspend fun getZone(argument: suspend GetZonePlainArgsBuilder.() -> Unit): GetZoneResult

Return

A collection of values returned by getZone.

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetZonePlainArgs.

See also