Use this data source to lookup a single Access Identity Provider by name.
data "cloudflare_access_identity_provider" "example" {
name = "Google SSO"
account_id = "f037e56e89293a057740de681ac9abbe"
}
resource "cloudflare_access_application" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "name"
domain = "name.example.com"
type = "self_hosted"
session_duration = "24h"
allowed_idps = [data.cloudflare_access_identity_provider.example.id]
auto_redirect_to_identity = true
}
name
(String) Access Identity Provider name to search for.account_id
(String) The account identifier to target for the resource. Must provide only one of zone_id
, account_id
.zone_id
(String) The zone identifier to target for the resource. Must provide only one of zone_id
, account_id
.id
(String) The ID of this resource.type
(String) Access Identity Provider Type.