Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi
cloudflare.getZones
Explore with Pulumi AI
Use this data source to look up Zone results for use in other resources.
Using getZones
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 getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function getZonesOutput(args: GetZonesOutputArgs, opts?: InvokeOptions): Output<GetZonesResult>
def get_zones(filter: Optional[GetZonesFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(filter: Optional[pulumi.Input[GetZonesFilterArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput
> Note: This function is named GetZones
in the Go SDK.
public static class GetZones
{
public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
public static Output<GetZonesResult> Invoke(GetZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: cloudflare:index/getZones:getZones
arguments:
# arguments dictionary
The following arguments are supported:
- Filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- Filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- filter Property Map
- One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
getZones Result
The following output properties are available:
- Filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- Id string
- The provider-assigned unique ID for this managed resource.
- Zones
List<Get
Zones Zone> - A list of zone objects.
- Filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- Id string
- The provider-assigned unique ID for this managed resource.
- Zones
[]Get
Zones Zone - A list of zone objects.
- filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- id String
- The provider-assigned unique ID for this managed resource.
- zones
List<Get
Zones Zone> - A list of zone objects.
- filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- id string
- The provider-assigned unique ID for this managed resource.
- zones
Get
Zones Zone[] - A list of zone objects.
- filter
Get
Zones Filter - One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- id str
- The provider-assigned unique ID for this managed resource.
- zones
Sequence[Get
Zones Zone] - A list of zone objects.
- filter Property Map
- One or more values used to look up zone records. If more than one value is given all values must match in order to be included.
- id String
- The provider-assigned unique ID for this managed resource.
- zones List<Property Map>
- A list of zone objects.
Supporting Types
GetZonesFilter
- Account
Id string - The account identifier to target for the resource.
- Lookup
Type string - The type of search to perform for the
name
value when querying the zone API. Available values:contains
,exact
. Defaults toexact
. - Match string
- A RE2 compatible regular expression to filter the results. This is performed client side whereas the
name
andlookup_type
are performed on the Cloudflare server side. - Name string
- A string value to search for.
- Paused bool
- Paused status of the zone to lookup. Defaults to
false
. - Status string
- Status of the zone to lookup.
- Account
Id string - The account identifier to target for the resource.
- Lookup
Type string - The type of search to perform for the
name
value when querying the zone API. Available values:contains
,exact
. Defaults toexact
. - Match string
- A RE2 compatible regular expression to filter the results. This is performed client side whereas the
name
andlookup_type
are performed on the Cloudflare server side. - Name string
- A string value to search for.
- Paused bool
- Paused status of the zone to lookup. Defaults to
false
. - Status string
- Status of the zone to lookup.
- account
Id String - The account identifier to target for the resource.
- lookup
Type String - The type of search to perform for the
name
value when querying the zone API. Available values:contains
,exact
. Defaults toexact
. - match String
- A RE2 compatible regular expression to filter the results. This is performed client side whereas the
name
andlookup_type
are performed on the Cloudflare server side. - name String
- A string value to search for.
- paused Boolean
- Paused status of the zone to lookup. Defaults to
false
. - status String
- Status of the zone to lookup.
- account
Id string - The account identifier to target for the resource.
- lookup
Type string - The type of search to perform for the
name
value when querying the zone API. Available values:contains
,exact
. Defaults toexact
. - match string
- A RE2 compatible regular expression to filter the results. This is performed client side whereas the
name
andlookup_type
are performed on the Cloudflare server side. - name string
- A string value to search for.
- paused boolean
- Paused status of the zone to lookup. Defaults to
false
. - status string
- Status of the zone to lookup.
- account_
id str - The account identifier to target for the resource.
- lookup_
type str - The type of search to perform for the
name
value when querying the zone API. Available values:contains
,exact
. Defaults toexact
. - match str
- A RE2 compatible regular expression to filter the results. This is performed client side whereas the
name
andlookup_type
are performed on the Cloudflare server side. - name str
- A string value to search for.
- paused bool
- Paused status of the zone to lookup. Defaults to
false
. - status str
- Status of the zone to lookup.
- account
Id String - The account identifier to target for the resource.
- lookup
Type String - The type of search to perform for the
name
value when querying the zone API. Available values:contains
,exact
. Defaults toexact
. - match String
- A RE2 compatible regular expression to filter the results. This is performed client side whereas the
name
andlookup_type
are performed on the Cloudflare server side. - name String
- A string value to search for.
- paused Boolean
- Paused status of the zone to lookup. Defaults to
false
. - status String
- Status of the zone to lookup.
GetZonesZone
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.