CloudflareFunctions

Functions

Link copied to clipboard

Use this data source to lookup a single Access Application

suspend fun getAccessApplication(accountId: String? = null, domain: String? = null, name: String? = null, zoneId: String? = null): GetAccessApplicationResult
Link copied to clipboard

Use this data source to lookup Account Roles.

Link copied to clipboard

Data source for looking up Cloudflare Accounts.

suspend fun getAccounts(name: String? = null): GetAccountsResult
suspend fun getAccounts(argument: suspend GetAccountsPlainArgsBuilder.() -> Unit): GetAccountsResult
Link copied to clipboard

Use this data source to look up API Token Permission Groups. Commonly used as references within cloudflare_token resources.

Link copied to clipboard

Use this data source to retrieve the DCV Delegation unique identifier for a zone.

Link copied to clipboard
Link copied to clipboard

Use this data source to lookup Devices.

suspend fun getDevices(accountId: String): GetDevicesResult
suspend fun getDevices(argument: suspend GetDevicesPlainArgsBuilder.() -> Unit): GetDevicesResult
Link copied to clipboard

Use this data source to retrieve all DLP datasets for an account.

suspend fun getDlpDatasets(accountId: String): GetDlpDatasetsResult
Link copied to clipboard

Use this data source to retrieve all Gateway application types for an account.

Link copied to clipboard

Use this data source to retrieve all Gateway categories for an account.

Link copied to clipboard

Use this data source to retrieve all Infrastructure Access Targets.

suspend fun getInfrastructureAccessTargets(accountId: String, createdAfter: String? = null, hostname: String? = null, hostnameContains: String? = null, ipv4: String? = null, ipv6: String? = null, modifiedAfter: String? = null, virtualNetworkId: String? = null): GetInfrastructureAccessTargetsResult
Link copied to clipboard

Use this data source to get the IP ranges of Cloudflare network.

Link copied to clipboard
suspend fun getList(argument: GetListPlainArgs): GetListResult

Use this data source to lookup a List.

suspend fun getList(argument: suspend GetListPlainArgsBuilder.() -> Unit): GetListResult
suspend fun getList(accountId: String, name: String): GetListResult
Link copied to clipboard
suspend fun getLists(argument: GetListsPlainArgs): GetListsResult

Use this data source to lookup Lists.

suspend fun getLists(accountId: String): GetListsResult
suspend fun getLists(argument: suspend GetListsPlainArgsBuilder.() -> Unit): GetListsResult
Link copied to clipboard
Link copied to clipboard

Use this data source to retrieve an existing origin ca certificate.

Link copied to clipboard

Use this data source to lookup a single DNS Record.

suspend fun getRecord(argument: suspend GetRecordPlainArgsBuilder.() -> Unit): GetRecordResult
suspend fun getRecord(content: String? = null, hostname: String, priority: Int? = null, type: String? = null, zoneId: String): GetRecordResult
Link copied to clipboard

Use this datasource to lookup Rulesets in an account or zone.

suspend fun getRulesets(argument: suspend GetRulesetsPlainArgsBuilder.() -> Unit): GetRulesetsResult
suspend fun getRulesets(accountId: String? = null, filter: GetRulesetsFilter? = null, includeRules: Boolean? = null, zoneId: String? = null): GetRulesetsResult
Link copied to clipboard

Use this datasource to lookup a tunnel in an account.

suspend fun getTunnel(argument: suspend GetTunnelPlainArgsBuilder.() -> Unit): GetTunnelResult
suspend fun getTunnel(accountId: String, isDeleted: Boolean? = null, name: String): GetTunnelResult
Link copied to clipboard

Use this datasource to lookup a tunnel virtual network in an account.

Link copied to clipboard
suspend fun getUser(): GetUserResult

Use this data source to retrieve information about the currently authenticated user.

Link copied to clipboard

Use this data source to retrieve all Infrastructure Access Targets.

suspend fun getZeroTrustInfrastructureAccessTargets(accountId: String, createdAfter: String? = null, hostname: String? = null, hostnameContains: String? = null, ipv4: String? = null, ipv6: String? = null, modifiedAfter: String? = null, virtualNetworkId: String? = null): GetZeroTrustInfrastructureAccessTargetsResult
Link copied to clipboard
suspend fun getZone(argument: GetZonePlainArgs): GetZoneResult

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

suspend fun getZone(argument: suspend GetZonePlainArgsBuilder.() -> Unit): GetZoneResult
suspend fun getZone(accountId: String? = null, name: String? = null, zoneId: String? = null): GetZoneResult
Link copied to clipboard

Provides a Cloudflare data source to look up Cache Reserve status for a given zone.

Link copied to clipboard

Use this data source to look up Zone DNSSEC settings.

Link copied to clipboard
suspend fun getZones(filter: GetZonesFilter): GetZonesResult
suspend fun getZones(argument: suspend GetZonesPlainArgsBuilder.() -> Unit): GetZonesResult

suspend fun getZones(argument: GetZonesPlainArgs): GetZonesResult

Use this data source to look up Zone results for use in other resources.