Use this data source to lookup a single Access Application
# For account level applications
resource "cloudflare_access_application" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
name = "example"
domain = "example.com"
}
# You can use either `name` or `domain` to identify the application
data "cloudflare_access_application" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
name = "example"
}
data "cloudflare_access_application" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
domain = "example.com"
}
# For zone level applications
resource "cloudflare_access_application" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "example"
domain = "example.com"
}
# You can use either `name` or `domain` to identify the application
data "cloudflare_access_application" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "example"
}
data "cloudflare_access_application" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
domain = "example.com"
}
account_id
(String) The account identifier to target for the resource. Must provide only one of zone_id
, account_id
.domain
(String) The primary hostname and path that Access will secure. Must provide only one of name
, domain
.name
(String) Friendly name of the Access Application. Must provide only one of name
, domain
.zone_id
(String) The zone identifier to target for the resource. Must provide only one of zone_id
, account_id
.aud
(String) Application Audience (AUD) Tag of the application.id
(String) The ID of this resource.