Flagship
FlagshipApps
resource cloudflare_flagship_app
cloudflare_flagship_app
resource "cloudflare_flagship_app" "example_flagship_app" {
account_id = "account_id"
name = "x"
}
data cloudflare_flagship_app
cloudflare_flagship_app
data "cloudflare_flagship_app" "example_flagship_app" {
account_id = "account_id"
app_id = "app_id"
}
FlagshipAppsFlags
resource cloudflare_flagship_flag
required
default_variation: String
Variation the API serves when the flag is off, or when it’s on but no rule matches the context. Must be a key in variations.
optional
cloudflare_flagship_flag
resource "cloudflare_flagship_flag" "example_flagship_flag" {
account_id = "account_id"
app_id = "app_id"
default_variation = "x"
enabled = true
key = "x"
rules = [{
conditions = [{
attribute = "x"
operator = "equals"
value = "string"
}]
priority = 1
serve_variation = "x"
rollout = {
percentage = 0
attribute = "x"
}
}]
variations = {
foo = "string"
}
description = "description"
type = "boolean"
}
data cloudflare_flagship_flag
required
computed
default_variation: String
Variation the API serves when the flag is off, or when it’s on but no rule matches the context. Must be a key in variations.
type: String
Value type of the flag’s variations. The API infers this from the variation values on write, so you can omit it in requests.
cloudflare_flagship_flag
data "cloudflare_flagship_flag" "example_flagship_flag" {
account_id = "account_id"
app_id = "app_id"
flag_key = "flag_key"
}
data cloudflare_flagship_flags
optional
cloudflare_flagship_flags
data "cloudflare_flagship_flags" "example_flagship_flags" {
account_id = "account_id"
app_id = "app_id"
limit = "limit"
}