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 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 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 lookup a single DNS Record.

suspend fun getRecord(argument: suspend GetRecordPlainArgsBuilder.() -> Unit): GetRecordResult
suspend fun getRecord(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
suspend fun getUser(): GetUserResult

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

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.