published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi
Accepted Permissions
Access: Organizations, Identity Providers, and Groups ReadAccess: Organizations, Identity Providers, and Groups RevokeAccess: Organizations, Identity Providers, and Groups Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustOrganization = new cloudflare.ZeroTrustOrganization("example_zero_trust_organization", {
zoneId: "zone_id",
allowAuthenticateViaWarp: true,
authDomain: "test.cloudflareaccess.com",
autoRedirectToIdentity: true,
customPages: {
forbidden: "699d98642c564d2e855e9661899b7252",
identityDenied: "699d98642c564d2e855e9661899b7252",
},
denyUnmatchedRequests: true,
denyUnmatchedRequestsExemptedZoneNames: ["example.com"],
disableEndUserAppCreation: false,
isUiReadOnly: true,
loginDesign: {
backgroundColor: "#c5ed1b",
footerText: "This is an example description.",
headerText: "This is an example description.",
logoPath: "https://example.com/logo.png",
textColor: "#c5ed1b",
},
mfaConfig: {
allowedAuthenticators: [
"totp",
"biometrics",
"security_key",
],
amrMatchingSessionDuration: "12h",
requiredAaguids: "2fc0579f-8113-47ea-b116-bb5a8db9202a",
sessionDuration: "24h",
},
mfaPivKeyRequirements: {
pinPolicy: "always",
requireFipsDevice: true,
sshKeySizes: [
256,
2048,
],
sshKeyTypes: [
"ecdsa",
"rsa",
],
touchPolicy: "always",
},
mfaRequiredForAllApps: false,
name: "Widget Corps Internal Applications",
serviceTokenInactivity: {
action: "disable",
enabled: true,
inactivityThresholdDays: 30,
},
sessionDuration: "24h",
strictServiceTokenAuth: true,
uiReadOnlyToggleReason: "Temporarily turn off the UI read only lock to make a change via the UI",
userSeatExpirationInactiveTime: "730h",
warpAuthNonBrowser401: false,
warpAuthSessionDuration: "24h",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_organization = cloudflare.ZeroTrustOrganization("example_zero_trust_organization",
zone_id="zone_id",
allow_authenticate_via_warp=True,
auth_domain="test.cloudflareaccess.com",
auto_redirect_to_identity=True,
custom_pages={
"forbidden": "699d98642c564d2e855e9661899b7252",
"identity_denied": "699d98642c564d2e855e9661899b7252",
},
deny_unmatched_requests=True,
deny_unmatched_requests_exempted_zone_names=["example.com"],
disable_end_user_app_creation=False,
is_ui_read_only=True,
login_design={
"background_color": "#c5ed1b",
"footer_text": "This is an example description.",
"header_text": "This is an example description.",
"logo_path": "https://example.com/logo.png",
"text_color": "#c5ed1b",
},
mfa_config={
"allowed_authenticators": [
"totp",
"biometrics",
"security_key",
],
"amr_matching_session_duration": "12h",
"required_aaguids": "2fc0579f-8113-47ea-b116-bb5a8db9202a",
"session_duration": "24h",
},
mfa_piv_key_requirements={
"pin_policy": "always",
"require_fips_device": True,
"ssh_key_sizes": [
256,
2048,
],
"ssh_key_types": [
"ecdsa",
"rsa",
],
"touch_policy": "always",
},
mfa_required_for_all_apps=False,
name="Widget Corps Internal Applications",
service_token_inactivity={
"action": "disable",
"enabled": True,
"inactivity_threshold_days": 30,
},
session_duration="24h",
strict_service_token_auth=True,
ui_read_only_toggle_reason="Temporarily turn off the UI read only lock to make a change via the UI",
user_seat_expiration_inactive_time="730h",
warp_auth_non_browser401=False,
warp_auth_session_duration="24h")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewZeroTrustOrganization(ctx, "example_zero_trust_organization", &cloudflare.ZeroTrustOrganizationArgs{
ZoneId: pulumi.String("zone_id"),
AllowAuthenticateViaWarp: pulumi.Bool(true),
AuthDomain: pulumi.String("test.cloudflareaccess.com"),
AutoRedirectToIdentity: pulumi.Bool(true),
CustomPages: &cloudflare.ZeroTrustOrganizationCustomPagesArgs{
Forbidden: pulumi.String("699d98642c564d2e855e9661899b7252"),
IdentityDenied: pulumi.String("699d98642c564d2e855e9661899b7252"),
},
DenyUnmatchedRequests: pulumi.Bool(true),
DenyUnmatchedRequestsExemptedZoneNames: pulumi.StringArray{
pulumi.String("example.com"),
},
DisableEndUserAppCreation: pulumi.Bool(false),
IsUiReadOnly: pulumi.Bool(true),
LoginDesign: &cloudflare.ZeroTrustOrganizationLoginDesignArgs{
BackgroundColor: pulumi.String("#c5ed1b"),
FooterText: pulumi.String("This is an example description."),
HeaderText: pulumi.String("This is an example description."),
LogoPath: pulumi.String("https://example.com/logo.png"),
TextColor: pulumi.String("#c5ed1b"),
},
MfaConfig: &cloudflare.ZeroTrustOrganizationMfaConfigArgs{
AllowedAuthenticators: pulumi.StringArray{
pulumi.String("totp"),
pulumi.String("biometrics"),
pulumi.String("security_key"),
},
AmrMatchingSessionDuration: pulumi.String("12h"),
RequiredAaguids: pulumi.String("2fc0579f-8113-47ea-b116-bb5a8db9202a"),
SessionDuration: pulumi.String("24h"),
},
MfaPivKeyRequirements: &cloudflare.ZeroTrustOrganizationMfaPivKeyRequirementsArgs{
PinPolicy: pulumi.String("always"),
RequireFipsDevice: pulumi.Bool(true),
SshKeySizes: pulumi.IntArray{
pulumi.Int(256),
pulumi.Int(2048),
},
SshKeyTypes: pulumi.StringArray{
pulumi.String("ecdsa"),
pulumi.String("rsa"),
},
TouchPolicy: pulumi.String("always"),
},
MfaRequiredForAllApps: pulumi.Bool(false),
Name: pulumi.String("Widget Corps Internal Applications"),
ServiceTokenInactivity: &cloudflare.ZeroTrustOrganizationServiceTokenInactivityArgs{
Action: pulumi.String("disable"),
Enabled: pulumi.Bool(true),
InactivityThresholdDays: pulumi.Int(30),
},
SessionDuration: pulumi.String("24h"),
StrictServiceTokenAuth: pulumi.Bool(true),
UiReadOnlyToggleReason: pulumi.String("Temporarily turn off the UI read only lock to make a change via the UI"),
UserSeatExpirationInactiveTime: pulumi.String("730h"),
WarpAuthNonBrowser401: pulumi.Bool(false),
WarpAuthSessionDuration: pulumi.String("24h"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustOrganization = new Cloudflare.ZeroTrustOrganization("example_zero_trust_organization", new()
{
ZoneId = "zone_id",
AllowAuthenticateViaWarp = true,
AuthDomain = "test.cloudflareaccess.com",
AutoRedirectToIdentity = true,
CustomPages = new Cloudflare.Inputs.ZeroTrustOrganizationCustomPagesArgs
{
Forbidden = "699d98642c564d2e855e9661899b7252",
IdentityDenied = "699d98642c564d2e855e9661899b7252",
},
DenyUnmatchedRequests = true,
DenyUnmatchedRequestsExemptedZoneNames = new[]
{
"example.com",
},
DisableEndUserAppCreation = false,
IsUiReadOnly = true,
LoginDesign = new Cloudflare.Inputs.ZeroTrustOrganizationLoginDesignArgs
{
BackgroundColor = "#c5ed1b",
FooterText = "This is an example description.",
HeaderText = "This is an example description.",
LogoPath = "https://example.com/logo.png",
TextColor = "#c5ed1b",
},
MfaConfig = new Cloudflare.Inputs.ZeroTrustOrganizationMfaConfigArgs
{
AllowedAuthenticators = new[]
{
"totp",
"biometrics",
"security_key",
},
AmrMatchingSessionDuration = "12h",
RequiredAaguids = "2fc0579f-8113-47ea-b116-bb5a8db9202a",
SessionDuration = "24h",
},
MfaPivKeyRequirements = new Cloudflare.Inputs.ZeroTrustOrganizationMfaPivKeyRequirementsArgs
{
PinPolicy = "always",
RequireFipsDevice = true,
SshKeySizes = new[]
{
256,
2048,
},
SshKeyTypes = new[]
{
"ecdsa",
"rsa",
},
TouchPolicy = "always",
},
MfaRequiredForAllApps = false,
Name = "Widget Corps Internal Applications",
ServiceTokenInactivity = new Cloudflare.Inputs.ZeroTrustOrganizationServiceTokenInactivityArgs
{
Action = "disable",
Enabled = true,
InactivityThresholdDays = 30,
},
SessionDuration = "24h",
StrictServiceTokenAuth = true,
UiReadOnlyToggleReason = "Temporarily turn off the UI read only lock to make a change via the UI",
UserSeatExpirationInactiveTime = "730h",
WarpAuthNonBrowser401 = false,
WarpAuthSessionDuration = "24h",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustOrganization;
import com.pulumi.cloudflare.ZeroTrustOrganizationArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustOrganizationCustomPagesArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustOrganizationLoginDesignArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustOrganizationMfaConfigArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustOrganizationMfaPivKeyRequirementsArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustOrganizationServiceTokenInactivityArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleZeroTrustOrganization = new ZeroTrustOrganization("exampleZeroTrustOrganization", ZeroTrustOrganizationArgs.builder()
.zoneId("zone_id")
.allowAuthenticateViaWarp(true)
.authDomain("test.cloudflareaccess.com")
.autoRedirectToIdentity(true)
.customPages(ZeroTrustOrganizationCustomPagesArgs.builder()
.forbidden("699d98642c564d2e855e9661899b7252")
.identityDenied("699d98642c564d2e855e9661899b7252")
.build())
.denyUnmatchedRequests(true)
.denyUnmatchedRequestsExemptedZoneNames("example.com")
.disableEndUserAppCreation(false)
.isUiReadOnly(true)
.loginDesign(ZeroTrustOrganizationLoginDesignArgs.builder()
.backgroundColor("#c5ed1b")
.footerText("This is an example description.")
.headerText("This is an example description.")
.logoPath("https://example.com/logo.png")
.textColor("#c5ed1b")
.build())
.mfaConfig(ZeroTrustOrganizationMfaConfigArgs.builder()
.allowedAuthenticators(
"totp",
"biometrics",
"security_key")
.amrMatchingSessionDuration("12h")
.requiredAaguids("2fc0579f-8113-47ea-b116-bb5a8db9202a")
.sessionDuration("24h")
.build())
.mfaPivKeyRequirements(ZeroTrustOrganizationMfaPivKeyRequirementsArgs.builder()
.pinPolicy("always")
.requireFipsDevice(true)
.sshKeySizes(
256,
2048)
.sshKeyTypes(
"ecdsa",
"rsa")
.touchPolicy("always")
.build())
.mfaRequiredForAllApps(false)
.name("Widget Corps Internal Applications")
.serviceTokenInactivity(ZeroTrustOrganizationServiceTokenInactivityArgs.builder()
.action("disable")
.enabled(true)
.inactivityThresholdDays(30)
.build())
.sessionDuration("24h")
.strictServiceTokenAuth(true)
.uiReadOnlyToggleReason("Temporarily turn off the UI read only lock to make a change via the UI")
.userSeatExpirationInactiveTime("730h")
.warpAuthNonBrowser401(false)
.warpAuthSessionDuration("24h")
.build());
}
}
resources:
exampleZeroTrustOrganization:
type: cloudflare:ZeroTrustOrganization
name: example_zero_trust_organization
properties:
zoneId: zone_id
allowAuthenticateViaWarp: true
authDomain: test.cloudflareaccess.com
autoRedirectToIdentity: true
customPages:
forbidden: 699d98642c564d2e855e9661899b7252
identityDenied: 699d98642c564d2e855e9661899b7252
denyUnmatchedRequests: true
denyUnmatchedRequestsExemptedZoneNames:
- example.com
disableEndUserAppCreation: false
isUiReadOnly: true
loginDesign:
backgroundColor: '#c5ed1b'
footerText: This is an example description.
headerText: This is an example description.
logoPath: https://example.com/logo.png
textColor: '#c5ed1b'
mfaConfig:
allowedAuthenticators:
- totp
- biometrics
- security_key
amrMatchingSessionDuration: 12h
requiredAaguids: 2fc0579f-8113-47ea-b116-bb5a8db9202a
sessionDuration: 24h
mfaPivKeyRequirements:
pinPolicy: always
requireFipsDevice: true
sshKeySizes:
- 256
- 2048
sshKeyTypes:
- ecdsa
- rsa
touchPolicy: always
mfaRequiredForAllApps: false
name: Widget Corps Internal Applications
serviceTokenInactivity:
action: disable
enabled: true
inactivityThresholdDays: 30
sessionDuration: 24h
strictServiceTokenAuth: true
uiReadOnlyToggleReason: Temporarily turn off the UI read only lock to make a change via the UI
userSeatExpirationInactiveTime: 730h
warpAuthNonBrowser401: false
warpAuthSessionDuration: 24h
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_zero_trust_organization" "example_zero_trust_organization" {
lifecycle {
create_before_destroy = true
}
zone_id = "zone_id"
allow_authenticate_via_warp = true
auth_domain = "test.cloudflareaccess.com"
auto_redirect_to_identity = true
custom_pages = {
forbidden = "699d98642c564d2e855e9661899b7252"
identity_denied = "699d98642c564d2e855e9661899b7252"
}
deny_unmatched_requests = true
deny_unmatched_requests_exempted_zone_names = ["example.com"]
disable_end_user_app_creation = false
is_ui_read_only = true
login_design = {
background_color = "#c5ed1b"
footer_text = "This is an example description."
header_text = "This is an example description."
logo_path = "https://example.com/logo.png"
text_color = "#c5ed1b"
}
mfa_config = {
allowed_authenticators = ["totp", "biometrics", "security_key"]
amr_matching_session_duration = "12h"
required_aaguids = "2fc0579f-8113-47ea-b116-bb5a8db9202a"
session_duration = "24h"
}
mfa_piv_key_requirements = {
pin_policy = "always"
require_fips_device = true
ssh_key_sizes = [256, 2048]
ssh_key_types = ["ecdsa", "rsa"]
touch_policy = "always"
}
mfa_required_for_all_apps = false
name = "Widget Corps Internal Applications"
service_token_inactivity = {
action = "disable"
enabled = true
inactivity_threshold_days = 30
}
session_duration = "24h"
strict_service_token_auth = true
ui_read_only_toggle_reason = "Temporarily turn off the UI read only lock to make a change via the UI"
user_seat_expiration_inactive_time = "730h"
warp_auth_non_browser_401 = false
warp_auth_session_duration = "24h"
}
Create ZeroTrustOrganization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustOrganization(name: string, args?: ZeroTrustOrganizationArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustOrganization(resource_name: str,
args: Optional[ZeroTrustOrganizationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustOrganization(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
allow_authenticate_via_warp: Optional[bool] = None,
auth_domain: Optional[str] = None,
auto_redirect_to_identity: Optional[bool] = None,
custom_pages: Optional[ZeroTrustOrganizationCustomPagesArgs] = None,
deny_unmatched_requests: Optional[bool] = None,
deny_unmatched_requests_exempted_zone_names: Optional[Sequence[str]] = None,
disable_end_user_app_creation: Optional[bool] = None,
is_ui_read_only: Optional[bool] = None,
login_design: Optional[ZeroTrustOrganizationLoginDesignArgs] = None,
mfa_config: Optional[ZeroTrustOrganizationMfaConfigArgs] = None,
mfa_configuration_allowed: Optional[bool] = None,
mfa_piv_key_requirements: Optional[ZeroTrustOrganizationMfaPivKeyRequirementsArgs] = None,
mfa_required_for_all_apps: Optional[bool] = None,
name: Optional[str] = None,
service_token_inactivity: Optional[ZeroTrustOrganizationServiceTokenInactivityArgs] = None,
session_duration: Optional[str] = None,
strict_service_token_auth: Optional[bool] = None,
ui_read_only_toggle_reason: Optional[str] = None,
user_seat_expiration_inactive_time: Optional[str] = None,
warp_auth_non_browser401: Optional[bool] = None,
warp_auth_session_duration: Optional[str] = None,
zone_id: Optional[str] = None)func NewZeroTrustOrganization(ctx *Context, name string, args *ZeroTrustOrganizationArgs, opts ...ResourceOption) (*ZeroTrustOrganization, error)public ZeroTrustOrganization(string name, ZeroTrustOrganizationArgs? args = null, CustomResourceOptions? opts = null)
public ZeroTrustOrganization(String name, ZeroTrustOrganizationArgs args)
public ZeroTrustOrganization(String name, ZeroTrustOrganizationArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustOrganization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_zero_trust_organization" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ZeroTrustOrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZeroTrustOrganizationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZeroTrustOrganizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustOrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustOrganizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustOrganizationResource = new Cloudflare.ZeroTrustOrganization("zeroTrustOrganizationResource", new()
{
AccountId = "string",
AllowAuthenticateViaWarp = false,
AuthDomain = "string",
AutoRedirectToIdentity = false,
CustomPages = new Cloudflare.Inputs.ZeroTrustOrganizationCustomPagesArgs
{
Forbidden = "string",
IdentityDenied = "string",
},
DenyUnmatchedRequests = false,
DenyUnmatchedRequestsExemptedZoneNames = new[]
{
"string",
},
DisableEndUserAppCreation = false,
IsUiReadOnly = false,
LoginDesign = new Cloudflare.Inputs.ZeroTrustOrganizationLoginDesignArgs
{
BackgroundColor = "string",
FooterText = "string",
HeaderText = "string",
LogoPath = "string",
TextColor = "string",
},
MfaConfig = new Cloudflare.Inputs.ZeroTrustOrganizationMfaConfigArgs
{
AllowedAuthenticators = new[]
{
"string",
},
AmrMatchingSessionDuration = "string",
RequiredAaguids = "string",
SessionDuration = "string",
},
MfaConfigurationAllowed = false,
MfaPivKeyRequirements = new Cloudflare.Inputs.ZeroTrustOrganizationMfaPivKeyRequirementsArgs
{
PinPolicy = "string",
RequireFipsDevice = false,
SshKeySizes = new[]
{
0,
},
SshKeyTypes = new[]
{
"string",
},
TouchPolicy = "string",
},
MfaRequiredForAllApps = false,
Name = "string",
ServiceTokenInactivity = new Cloudflare.Inputs.ZeroTrustOrganizationServiceTokenInactivityArgs
{
Action = "string",
Enabled = false,
InactivityThresholdDays = 0,
},
SessionDuration = "string",
StrictServiceTokenAuth = false,
UiReadOnlyToggleReason = "string",
UserSeatExpirationInactiveTime = "string",
WarpAuthNonBrowser401 = false,
WarpAuthSessionDuration = "string",
ZoneId = "string",
});
example, err := cloudflare.NewZeroTrustOrganization(ctx, "zeroTrustOrganizationResource", &cloudflare.ZeroTrustOrganizationArgs{
AccountId: pulumi.String("string"),
AllowAuthenticateViaWarp: pulumi.Bool(false),
AuthDomain: pulumi.String("string"),
AutoRedirectToIdentity: pulumi.Bool(false),
CustomPages: &cloudflare.ZeroTrustOrganizationCustomPagesArgs{
Forbidden: pulumi.String("string"),
IdentityDenied: pulumi.String("string"),
},
DenyUnmatchedRequests: pulumi.Bool(false),
DenyUnmatchedRequestsExemptedZoneNames: pulumi.StringArray{
pulumi.String("string"),
},
DisableEndUserAppCreation: pulumi.Bool(false),
IsUiReadOnly: pulumi.Bool(false),
LoginDesign: &cloudflare.ZeroTrustOrganizationLoginDesignArgs{
BackgroundColor: pulumi.String("string"),
FooterText: pulumi.String("string"),
HeaderText: pulumi.String("string"),
LogoPath: pulumi.String("string"),
TextColor: pulumi.String("string"),
},
MfaConfig: &cloudflare.ZeroTrustOrganizationMfaConfigArgs{
AllowedAuthenticators: pulumi.StringArray{
pulumi.String("string"),
},
AmrMatchingSessionDuration: pulumi.String("string"),
RequiredAaguids: pulumi.String("string"),
SessionDuration: pulumi.String("string"),
},
MfaConfigurationAllowed: pulumi.Bool(false),
MfaPivKeyRequirements: &cloudflare.ZeroTrustOrganizationMfaPivKeyRequirementsArgs{
PinPolicy: pulumi.String("string"),
RequireFipsDevice: pulumi.Bool(false),
SshKeySizes: pulumi.IntArray{
pulumi.Int(0),
},
SshKeyTypes: pulumi.StringArray{
pulumi.String("string"),
},
TouchPolicy: pulumi.String("string"),
},
MfaRequiredForAllApps: pulumi.Bool(false),
Name: pulumi.String("string"),
ServiceTokenInactivity: &cloudflare.ZeroTrustOrganizationServiceTokenInactivityArgs{
Action: pulumi.String("string"),
Enabled: pulumi.Bool(false),
InactivityThresholdDays: pulumi.Int(0),
},
SessionDuration: pulumi.String("string"),
StrictServiceTokenAuth: pulumi.Bool(false),
UiReadOnlyToggleReason: pulumi.String("string"),
UserSeatExpirationInactiveTime: pulumi.String("string"),
WarpAuthNonBrowser401: pulumi.Bool(false),
WarpAuthSessionDuration: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
resource "cloudflare_zero_trust_organization" "zeroTrustOrganizationResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
allow_authenticate_via_warp = false
auth_domain = "string"
auto_redirect_to_identity = false
custom_pages = {
forbidden = "string"
identity_denied = "string"
}
deny_unmatched_requests = false
deny_unmatched_requests_exempted_zone_names = ["string"]
disable_end_user_app_creation = false
is_ui_read_only = false
login_design = {
background_color = "string"
footer_text = "string"
header_text = "string"
logo_path = "string"
text_color = "string"
}
mfa_config = {
allowed_authenticators = ["string"]
amr_matching_session_duration = "string"
required_aaguids = "string"
session_duration = "string"
}
mfa_configuration_allowed = false
mfa_piv_key_requirements = {
pin_policy = "string"
require_fips_device = false
ssh_key_sizes = [0]
ssh_key_types = ["string"]
touch_policy = "string"
}
mfa_required_for_all_apps = false
name = "string"
service_token_inactivity = {
action = "string"
enabled = false
inactivity_threshold_days = 0
}
session_duration = "string"
strict_service_token_auth = false
ui_read_only_toggle_reason = "string"
user_seat_expiration_inactive_time = "string"
warp_auth_non_browser401 = false
warp_auth_session_duration = "string"
zone_id = "string"
}
var zeroTrustOrganizationResource = new ZeroTrustOrganization("zeroTrustOrganizationResource", ZeroTrustOrganizationArgs.builder()
.accountId("string")
.allowAuthenticateViaWarp(false)
.authDomain("string")
.autoRedirectToIdentity(false)
.customPages(ZeroTrustOrganizationCustomPagesArgs.builder()
.forbidden("string")
.identityDenied("string")
.build())
.denyUnmatchedRequests(false)
.denyUnmatchedRequestsExemptedZoneNames("string")
.disableEndUserAppCreation(false)
.isUiReadOnly(false)
.loginDesign(ZeroTrustOrganizationLoginDesignArgs.builder()
.backgroundColor("string")
.footerText("string")
.headerText("string")
.logoPath("string")
.textColor("string")
.build())
.mfaConfig(ZeroTrustOrganizationMfaConfigArgs.builder()
.allowedAuthenticators("string")
.amrMatchingSessionDuration("string")
.requiredAaguids("string")
.sessionDuration("string")
.build())
.mfaConfigurationAllowed(false)
.mfaPivKeyRequirements(ZeroTrustOrganizationMfaPivKeyRequirementsArgs.builder()
.pinPolicy("string")
.requireFipsDevice(false)
.sshKeySizes(0)
.sshKeyTypes("string")
.touchPolicy("string")
.build())
.mfaRequiredForAllApps(false)
.name("string")
.serviceTokenInactivity(ZeroTrustOrganizationServiceTokenInactivityArgs.builder()
.action("string")
.enabled(false)
.inactivityThresholdDays(0)
.build())
.sessionDuration("string")
.strictServiceTokenAuth(false)
.uiReadOnlyToggleReason("string")
.userSeatExpirationInactiveTime("string")
.warpAuthNonBrowser401(false)
.warpAuthSessionDuration("string")
.zoneId("string")
.build());
zero_trust_organization_resource = cloudflare.ZeroTrustOrganization("zeroTrustOrganizationResource",
account_id="string",
allow_authenticate_via_warp=False,
auth_domain="string",
auto_redirect_to_identity=False,
custom_pages={
"forbidden": "string",
"identity_denied": "string",
},
deny_unmatched_requests=False,
deny_unmatched_requests_exempted_zone_names=["string"],
disable_end_user_app_creation=False,
is_ui_read_only=False,
login_design={
"background_color": "string",
"footer_text": "string",
"header_text": "string",
"logo_path": "string",
"text_color": "string",
},
mfa_config={
"allowed_authenticators": ["string"],
"amr_matching_session_duration": "string",
"required_aaguids": "string",
"session_duration": "string",
},
mfa_configuration_allowed=False,
mfa_piv_key_requirements={
"pin_policy": "string",
"require_fips_device": False,
"ssh_key_sizes": [0],
"ssh_key_types": ["string"],
"touch_policy": "string",
},
mfa_required_for_all_apps=False,
name="string",
service_token_inactivity={
"action": "string",
"enabled": False,
"inactivity_threshold_days": 0,
},
session_duration="string",
strict_service_token_auth=False,
ui_read_only_toggle_reason="string",
user_seat_expiration_inactive_time="string",
warp_auth_non_browser401=False,
warp_auth_session_duration="string",
zone_id="string")
const zeroTrustOrganizationResource = new cloudflare.ZeroTrustOrganization("zeroTrustOrganizationResource", {
accountId: "string",
allowAuthenticateViaWarp: false,
authDomain: "string",
autoRedirectToIdentity: false,
customPages: {
forbidden: "string",
identityDenied: "string",
},
denyUnmatchedRequests: false,
denyUnmatchedRequestsExemptedZoneNames: ["string"],
disableEndUserAppCreation: false,
isUiReadOnly: false,
loginDesign: {
backgroundColor: "string",
footerText: "string",
headerText: "string",
logoPath: "string",
textColor: "string",
},
mfaConfig: {
allowedAuthenticators: ["string"],
amrMatchingSessionDuration: "string",
requiredAaguids: "string",
sessionDuration: "string",
},
mfaConfigurationAllowed: false,
mfaPivKeyRequirements: {
pinPolicy: "string",
requireFipsDevice: false,
sshKeySizes: [0],
sshKeyTypes: ["string"],
touchPolicy: "string",
},
mfaRequiredForAllApps: false,
name: "string",
serviceTokenInactivity: {
action: "string",
enabled: false,
inactivityThresholdDays: 0,
},
sessionDuration: "string",
strictServiceTokenAuth: false,
uiReadOnlyToggleReason: "string",
userSeatExpirationInactiveTime: "string",
warpAuthNonBrowser401: false,
warpAuthSessionDuration: "string",
zoneId: "string",
});
type: cloudflare:ZeroTrustOrganization
properties:
accountId: string
allowAuthenticateViaWarp: false
authDomain: string
autoRedirectToIdentity: false
customPages:
forbidden: string
identityDenied: string
denyUnmatchedRequests: false
denyUnmatchedRequestsExemptedZoneNames:
- string
disableEndUserAppCreation: false
isUiReadOnly: false
loginDesign:
backgroundColor: string
footerText: string
headerText: string
logoPath: string
textColor: string
mfaConfig:
allowedAuthenticators:
- string
amrMatchingSessionDuration: string
requiredAaguids: string
sessionDuration: string
mfaConfigurationAllowed: false
mfaPivKeyRequirements:
pinPolicy: string
requireFipsDevice: false
sshKeySizes:
- 0
sshKeyTypes:
- string
touchPolicy: string
mfaRequiredForAllApps: false
name: string
serviceTokenInactivity:
action: string
enabled: false
inactivityThresholdDays: 0
sessionDuration: string
strictServiceTokenAuth: false
uiReadOnlyToggleReason: string
userSeatExpirationInactiveTime: string
warpAuthNonBrowser401: false
warpAuthSessionDuration: string
zoneId: string
ZeroTrustOrganization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZeroTrustOrganization resource accepts the following input properties:
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Allow
Authenticate boolVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- Auth
Domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - Auto
Redirect boolTo Identity - When set to
true, users skip the identity provider selection step during login. - Custom
Pages ZeroTrust Organization Custom Pages - Deny
Unmatched boolRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - Deny
Unmatched List<string>Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - Disable
End boolUser App Creation - Whether creation of end user applications is disabled for this organization.
- Is
Ui boolRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- Login
Design ZeroTrust Organization Login Design - Mfa
Config ZeroTrust Organization Mfa Config - Configures multi-factor authentication (MFA) settings for an organization.
- Mfa
Configuration boolAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- Mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements - Configures PIV key requirements for MFA using hardware security keys.
- Mfa
Required boolFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- Name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- Service
Token ZeroInactivity Trust Organization Service Token Inactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- Session
Duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - Strict
Service boolToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- Ui
Read stringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- User
Seat stringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - Warp
Auth boolNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- Warp
Auth stringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Allow
Authenticate boolVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- Auth
Domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - Auto
Redirect boolTo Identity - When set to
true, users skip the identity provider selection step during login. - Custom
Pages ZeroTrust Organization Custom Pages Args - Deny
Unmatched boolRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - Deny
Unmatched []stringRequests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - Disable
End boolUser App Creation - Whether creation of end user applications is disabled for this organization.
- Is
Ui boolRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- Login
Design ZeroTrust Organization Login Design Args - Mfa
Config ZeroTrust Organization Mfa Config Args - Configures multi-factor authentication (MFA) settings for an organization.
- Mfa
Configuration boolAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- Mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements Args - Configures PIV key requirements for MFA using hardware security keys.
- Mfa
Required boolFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- Name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- Service
Token ZeroInactivity Trust Organization Service Token Inactivity Args - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- Session
Duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - Strict
Service boolToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- Ui
Read stringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- User
Seat stringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - Warp
Auth boolNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- Warp
Auth stringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account_
id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow_
authenticate_ boolvia_ warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth_
domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto_
redirect_ boolto_ identity - When set to
true, users skip the identity provider selection step during login. - custom_
pages object - deny_
unmatched_ boolrequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny_
unmatched_ list(string)requests_ exempted_ zone_ names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable_
end_ booluser_ app_ creation - Whether creation of end user applications is disabled for this organization.
- is_
ui_ boolread_ only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login_
design object - mfa_
config object - Configures multi-factor authentication (MFA) settings for an organization.
- mfa_
configuration_ boolallowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa_
piv_ objectkey_ requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa_
required_ boolfor_ all_ apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service_
token_ objectinactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session_
duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict_
service_ booltoken_ auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- ui_
read_ stringonly_ toggle_ reason - A description of the reason why the UI read only field is being toggled.
- user_
seat_ stringexpiration_ inactive_ time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp_
auth_ boolnon_ browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp_
auth_ stringsession_ duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone_
id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow
Authenticate BooleanVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth
Domain String - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto
Redirect BooleanTo Identity - When set to
true, users skip the identity provider selection step during login. - custom
Pages ZeroTrust Organization Custom Pages - deny
Unmatched BooleanRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny
Unmatched List<String>Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable
End BooleanUser App Creation - Whether creation of end user applications is disabled for this organization.
- is
Ui BooleanRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login
Design ZeroTrust Organization Login Design - mfa
Config ZeroTrust Organization Mfa Config - Configures multi-factor authentication (MFA) settings for an organization.
- mfa
Configuration BooleanAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa
Required BooleanFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name String
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service
Token ZeroInactivity Trust Organization Service Token Inactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session
Duration String - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict
Service BooleanToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- ui
Read StringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- user
Seat StringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp
Auth BooleanNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp
Auth StringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow
Authenticate booleanVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth
Domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto
Redirect booleanTo Identity - When set to
true, users skip the identity provider selection step during login. - custom
Pages ZeroTrust Organization Custom Pages - deny
Unmatched booleanRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny
Unmatched string[]Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable
End booleanUser App Creation - Whether creation of end user applications is disabled for this organization.
- is
Ui booleanRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login
Design ZeroTrust Organization Login Design - mfa
Config ZeroTrust Organization Mfa Config - Configures multi-factor authentication (MFA) settings for an organization.
- mfa
Configuration booleanAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa
Required booleanFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service
Token ZeroInactivity Trust Organization Service Token Inactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session
Duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict
Service booleanToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- ui
Read stringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- user
Seat stringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp
Auth booleanNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp
Auth stringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow_
authenticate_ boolvia_ warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth_
domain str - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto_
redirect_ boolto_ identity - When set to
true, users skip the identity provider selection step during login. - custom_
pages ZeroTrust Organization Custom Pages Args - deny_
unmatched_ boolrequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny_
unmatched_ Sequence[str]requests_ exempted_ zone_ names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable_
end_ booluser_ app_ creation - Whether creation of end user applications is disabled for this organization.
- is_
ui_ boolread_ only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login_
design ZeroTrust Organization Login Design Args - mfa_
config ZeroTrust Organization Mfa Config Args - Configures multi-factor authentication (MFA) settings for an organization.
- mfa_
configuration_ boolallowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa_
piv_ Zerokey_ requirements Trust Organization Mfa Piv Key Requirements Args - Configures PIV key requirements for MFA using hardware security keys.
- mfa_
required_ boolfor_ all_ apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name str
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service_
token_ Zeroinactivity Trust Organization Service Token Inactivity Args - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session_
duration str - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict_
service_ booltoken_ auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- ui_
read_ stronly_ toggle_ reason - A description of the reason why the UI read only field is being toggled.
- user_
seat_ strexpiration_ inactive_ time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp_
auth_ boolnon_ browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp_
auth_ strsession_ duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow
Authenticate BooleanVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth
Domain String - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto
Redirect BooleanTo Identity - When set to
true, users skip the identity provider selection step during login. - custom
Pages Property Map - deny
Unmatched BooleanRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny
Unmatched List<String>Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable
End BooleanUser App Creation - Whether creation of end user applications is disabled for this organization.
- is
Ui BooleanRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login
Design Property Map - mfa
Config Property Map - Configures multi-factor authentication (MFA) settings for an organization.
- mfa
Configuration BooleanAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa
Piv Property MapKey Requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa
Required BooleanFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name String
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service
Token Property MapInactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session
Duration String - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict
Service BooleanToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- ui
Read StringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- user
Seat StringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp
Auth BooleanNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp
Auth StringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustOrganization resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Trusted
Accounts List<string> - The account tags of organizations trusted by this organization for policy and device posture sharing.
- Id string
- The provider-assigned unique ID for this managed resource.
- Trusted
Accounts []string - The account tags of organizations trusted by this organization for policy and device posture sharing.
- id string
- The provider-assigned unique ID for this managed resource.
- trusted_
accounts list(string) - The account tags of organizations trusted by this organization for policy and device posture sharing.
- id String
- The provider-assigned unique ID for this managed resource.
- trusted
Accounts List<String> - The account tags of organizations trusted by this organization for policy and device posture sharing.
- id string
- The provider-assigned unique ID for this managed resource.
- trusted
Accounts string[] - The account tags of organizations trusted by this organization for policy and device posture sharing.
- id str
- The provider-assigned unique ID for this managed resource.
- trusted_
accounts Sequence[str] - The account tags of organizations trusted by this organization for policy and device posture sharing.
- id String
- The provider-assigned unique ID for this managed resource.
- trusted
Accounts List<String> - The account tags of organizations trusted by this organization for policy and device posture sharing.
Look up Existing ZeroTrustOrganization Resource
Get an existing ZeroTrustOrganization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZeroTrustOrganizationState, opts?: CustomResourceOptions): ZeroTrustOrganization@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
allow_authenticate_via_warp: Optional[bool] = None,
auth_domain: Optional[str] = None,
auto_redirect_to_identity: Optional[bool] = None,
custom_pages: Optional[ZeroTrustOrganizationCustomPagesArgs] = None,
deny_unmatched_requests: Optional[bool] = None,
deny_unmatched_requests_exempted_zone_names: Optional[Sequence[str]] = None,
disable_end_user_app_creation: Optional[bool] = None,
is_ui_read_only: Optional[bool] = None,
login_design: Optional[ZeroTrustOrganizationLoginDesignArgs] = None,
mfa_config: Optional[ZeroTrustOrganizationMfaConfigArgs] = None,
mfa_configuration_allowed: Optional[bool] = None,
mfa_piv_key_requirements: Optional[ZeroTrustOrganizationMfaPivKeyRequirementsArgs] = None,
mfa_required_for_all_apps: Optional[bool] = None,
name: Optional[str] = None,
service_token_inactivity: Optional[ZeroTrustOrganizationServiceTokenInactivityArgs] = None,
session_duration: Optional[str] = None,
strict_service_token_auth: Optional[bool] = None,
trusted_accounts: Optional[Sequence[str]] = None,
ui_read_only_toggle_reason: Optional[str] = None,
user_seat_expiration_inactive_time: Optional[str] = None,
warp_auth_non_browser401: Optional[bool] = None,
warp_auth_session_duration: Optional[str] = None,
zone_id: Optional[str] = None) -> ZeroTrustOrganizationfunc GetZeroTrustOrganization(ctx *Context, name string, id IDInput, state *ZeroTrustOrganizationState, opts ...ResourceOption) (*ZeroTrustOrganization, error)public static ZeroTrustOrganization Get(string name, Input<string> id, ZeroTrustOrganizationState? state, CustomResourceOptions? opts = null)public static ZeroTrustOrganization get(String name, Output<String> id, ZeroTrustOrganizationState state, CustomResourceOptions options)resources: existingZeroTrustOrganization: type: cloudflare:ZeroTrustOrganization get: id: ${id}import {
to = cloudflare_zero_trust_organization.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state ZeroTrustOrganizationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ZeroTrustOrganizationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state ZeroTrustOrganizationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state ZeroTrustOrganizationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Allow
Authenticate boolVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- Auth
Domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - Auto
Redirect boolTo Identity - When set to
true, users skip the identity provider selection step during login. - Custom
Pages ZeroTrust Organization Custom Pages - Deny
Unmatched boolRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - Deny
Unmatched List<string>Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - Disable
End boolUser App Creation - Whether creation of end user applications is disabled for this organization.
- Is
Ui boolRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- Login
Design ZeroTrust Organization Login Design - Mfa
Config ZeroTrust Organization Mfa Config - Configures multi-factor authentication (MFA) settings for an organization.
- Mfa
Configuration boolAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- Mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements - Configures PIV key requirements for MFA using hardware security keys.
- Mfa
Required boolFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- Name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- Service
Token ZeroInactivity Trust Organization Service Token Inactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- Session
Duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - Strict
Service boolToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- Trusted
Accounts List<string> - The account tags of organizations trusted by this organization for policy and device posture sharing.
- Ui
Read stringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- User
Seat stringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - Warp
Auth boolNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- Warp
Auth stringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Allow
Authenticate boolVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- Auth
Domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - Auto
Redirect boolTo Identity - When set to
true, users skip the identity provider selection step during login. - Custom
Pages ZeroTrust Organization Custom Pages Args - Deny
Unmatched boolRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - Deny
Unmatched []stringRequests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - Disable
End boolUser App Creation - Whether creation of end user applications is disabled for this organization.
- Is
Ui boolRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- Login
Design ZeroTrust Organization Login Design Args - Mfa
Config ZeroTrust Organization Mfa Config Args - Configures multi-factor authentication (MFA) settings for an organization.
- Mfa
Configuration boolAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- Mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements Args - Configures PIV key requirements for MFA using hardware security keys.
- Mfa
Required boolFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- Name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- Service
Token ZeroInactivity Trust Organization Service Token Inactivity Args - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- Session
Duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - Strict
Service boolToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- Trusted
Accounts []string - The account tags of organizations trusted by this organization for policy and device posture sharing.
- Ui
Read stringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- User
Seat stringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - Warp
Auth boolNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- Warp
Auth stringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account_
id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow_
authenticate_ boolvia_ warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth_
domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto_
redirect_ boolto_ identity - When set to
true, users skip the identity provider selection step during login. - custom_
pages object - deny_
unmatched_ boolrequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny_
unmatched_ list(string)requests_ exempted_ zone_ names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable_
end_ booluser_ app_ creation - Whether creation of end user applications is disabled for this organization.
- is_
ui_ boolread_ only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login_
design object - mfa_
config object - Configures multi-factor authentication (MFA) settings for an organization.
- mfa_
configuration_ boolallowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa_
piv_ objectkey_ requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa_
required_ boolfor_ all_ apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service_
token_ objectinactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session_
duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict_
service_ booltoken_ auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- trusted_
accounts list(string) - The account tags of organizations trusted by this organization for policy and device posture sharing.
- ui_
read_ stringonly_ toggle_ reason - A description of the reason why the UI read only field is being toggled.
- user_
seat_ stringexpiration_ inactive_ time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp_
auth_ boolnon_ browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp_
auth_ stringsession_ duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone_
id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow
Authenticate BooleanVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth
Domain String - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto
Redirect BooleanTo Identity - When set to
true, users skip the identity provider selection step during login. - custom
Pages ZeroTrust Organization Custom Pages - deny
Unmatched BooleanRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny
Unmatched List<String>Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable
End BooleanUser App Creation - Whether creation of end user applications is disabled for this organization.
- is
Ui BooleanRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login
Design ZeroTrust Organization Login Design - mfa
Config ZeroTrust Organization Mfa Config - Configures multi-factor authentication (MFA) settings for an organization.
- mfa
Configuration BooleanAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa
Required BooleanFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name String
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service
Token ZeroInactivity Trust Organization Service Token Inactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session
Duration String - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict
Service BooleanToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- trusted
Accounts List<String> - The account tags of organizations trusted by this organization for policy and device posture sharing.
- ui
Read StringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- user
Seat StringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp
Auth BooleanNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp
Auth StringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow
Authenticate booleanVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth
Domain string - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto
Redirect booleanTo Identity - When set to
true, users skip the identity provider selection step during login. - custom
Pages ZeroTrust Organization Custom Pages - deny
Unmatched booleanRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny
Unmatched string[]Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable
End booleanUser App Creation - Whether creation of end user applications is disabled for this organization.
- is
Ui booleanRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login
Design ZeroTrust Organization Login Design - mfa
Config ZeroTrust Organization Mfa Config - Configures multi-factor authentication (MFA) settings for an organization.
- mfa
Configuration booleanAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa
Piv ZeroKey Requirements Trust Organization Mfa Piv Key Requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa
Required booleanFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name string
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service
Token ZeroInactivity Trust Organization Service Token Inactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session
Duration string - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict
Service booleanToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- trusted
Accounts string[] - The account tags of organizations trusted by this organization for policy and device posture sharing.
- ui
Read stringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- user
Seat stringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp
Auth booleanNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp
Auth stringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow_
authenticate_ boolvia_ warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth_
domain str - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto_
redirect_ boolto_ identity - When set to
true, users skip the identity provider selection step during login. - custom_
pages ZeroTrust Organization Custom Pages Args - deny_
unmatched_ boolrequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny_
unmatched_ Sequence[str]requests_ exempted_ zone_ names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable_
end_ booluser_ app_ creation - Whether creation of end user applications is disabled for this organization.
- is_
ui_ boolread_ only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login_
design ZeroTrust Organization Login Design Args - mfa_
config ZeroTrust Organization Mfa Config Args - Configures multi-factor authentication (MFA) settings for an organization.
- mfa_
configuration_ boolallowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa_
piv_ Zerokey_ requirements Trust Organization Mfa Piv Key Requirements Args - Configures PIV key requirements for MFA using hardware security keys.
- mfa_
required_ boolfor_ all_ apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name str
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service_
token_ Zeroinactivity Trust Organization Service Token Inactivity Args - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session_
duration str - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict_
service_ booltoken_ auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- trusted_
accounts Sequence[str] - The account tags of organizations trusted by this organization for policy and device posture sharing.
- ui_
read_ stronly_ toggle_ reason - A description of the reason why the UI read only field is being toggled.
- user_
seat_ strexpiration_ inactive_ time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp_
auth_ boolnon_ browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp_
auth_ strsession_ duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- allow
Authenticate BooleanVia Warp - When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
- auth
Domain String - The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format
adjective-noun-hex4(e.g.frosty-moon-7a3b.cloudflareaccess.com). - auto
Redirect BooleanTo Identity - When set to
true, users skip the identity provider selection step during login. - custom
Pages Property Map - deny
Unmatched BooleanRequests - Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the
denyUnmatchedRequestsExemptedZoneNamesarray. - deny
Unmatched List<String>Requests Exempted Zone Names - Contains zone names to exempt from the
denyUnmatchedRequestsfeature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request. - disable
End BooleanUser App Creation - Whether creation of end user applications is disabled for this organization.
- is
Ui BooleanRead Only - Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.
- login
Design Property Map - mfa
Config Property Map - Configures multi-factor authentication (MFA) settings for an organization.
- mfa
Configuration BooleanAllowed - Indicates if this organization can enforce multi-factor authentication (MFA) requirements at the application and policy level.
- mfa
Piv Property MapKey Requirements - Configures PIV key requirements for MFA using hardware security keys.
- mfa
Required BooleanFor All Apps - Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowedauthenticators' cannot contain only the infrastructure SSH authenticators ('pivkey' and 'sshfido2key') if the organization has any non-infrastructure applications.
- name String
- The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).
- service
Token Property MapInactivity - Configures automatic enforcement for inactive service tokens. A service token is inactive if no policy references it, and it has not successfully authenticated with an Access application during the selected inactivity period. This setting applies to every service token in your Zero Trust account.
- session
Duration String - The amount of time that tokens issued for applications will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. - strict
Service BooleanToken Auth - Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.
- trusted
Accounts List<String> - The account tags of organizations trusted by this organization for policy and device posture sharing.
- ui
Read StringOnly Toggle Reason - A description of the reason why the UI read only field is being toggled.
- user
Seat StringExpiration Inactive Time - The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format
300msor2h45m. Valid time units are:ns,us(orµs),ms,s,m,h. - warp
Auth BooleanNon Browser401 - When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.
- warp
Auth StringSession Duration - The amount of time that tokens issued for applications will be valid. Must be in the format
30mor2h45m. Valid time units are: m, h. - zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Supporting Types
ZeroTrustOrganizationCustomPages, ZeroTrustOrganizationCustomPagesArgs
- Forbidden string
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- Identity
Denied string - The uid of the custom page to use when a user is denied access.
- Forbidden string
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- Identity
Denied string - The uid of the custom page to use when a user is denied access.
- forbidden string
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- identity_
denied string - The uid of the custom page to use when a user is denied access.
- forbidden String
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- identity
Denied String - The uid of the custom page to use when a user is denied access.
- forbidden string
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- identity
Denied string - The uid of the custom page to use when a user is denied access.
- forbidden str
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- identity_
denied str - The uid of the custom page to use when a user is denied access.
- forbidden String
- The uid of the custom page to use when a user is denied access after failing a non-identity rule.
- identity
Denied String - The uid of the custom page to use when a user is denied access.
ZeroTrustOrganizationLoginDesign, ZeroTrustOrganizationLoginDesignArgs
- Background
Color string - The background color on your login page.
- string
- The text at the bottom of your login page.
- Header
Text string - The text at the top of your login page.
- Logo
Path string - The URL of the logo on your login page.
- Text
Color string - The text color on your login page.
- Background
Color string - The background color on your login page.
- string
- The text at the bottom of your login page.
- Header
Text string - The text at the top of your login page.
- Logo
Path string - The URL of the logo on your login page.
- Text
Color string - The text color on your login page.
- background_
color string - The background color on your login page.
- string
- The text at the bottom of your login page.
- header_
text string - The text at the top of your login page.
- logo_
path string - The URL of the logo on your login page.
- text_
color string - The text color on your login page.
- background
Color String - The background color on your login page.
- String
- The text at the bottom of your login page.
- header
Text String - The text at the top of your login page.
- logo
Path String - The URL of the logo on your login page.
- text
Color String - The text color on your login page.
- background
Color string - The background color on your login page.
- string
- The text at the bottom of your login page.
- header
Text string - The text at the top of your login page.
- logo
Path string - The URL of the logo on your login page.
- text
Color string - The text color on your login page.
- background_
color str - The background color on your login page.
- str
- The text at the bottom of your login page.
- header_
text str - The text at the top of your login page.
- logo_
path str - The URL of the logo on your login page.
- text_
color str - The text color on your login page.
- background
Color String - The background color on your login page.
- String
- The text at the bottom of your login page.
- header
Text String - The text at the top of your login page.
- logo
Path String - The URL of the logo on your login page.
- text
Color String - The text color on your login page.
ZeroTrustOrganizationMfaConfig, ZeroTrustOrganizationMfaConfigArgs
- Allowed
Authenticators List<string> - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - Amr
Matching stringSession Duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- Required
Aaguids string - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- Session
Duration string - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
- Allowed
Authenticators []string - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - Amr
Matching stringSession Duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- Required
Aaguids string - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- Session
Duration string - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
- allowed_
authenticators list(string) - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - amr_
matching_ stringsession_ duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- required_
aaguids string - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- session_
duration string - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
- allowed
Authenticators List<String> - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - amr
Matching StringSession Duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- required
Aaguids String - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- session
Duration String - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
- allowed
Authenticators string[] - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - amr
Matching stringSession Duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- required
Aaguids string - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- session
Duration string - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
- allowed_
authenticators Sequence[str] - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - amr_
matching_ strsession_ duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- required_
aaguids str - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- session_
duration str - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
- allowed
Authenticators List<String> - Lists the MFA methods that users can authenticate with. The
pivKeyandsshFido2Keyvalues are supported only for infrastructure applications. - amr
Matching StringSession Duration - Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).
- required
Aaguids String - Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.
- session
Duration String - Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:
5mor24h.
ZeroTrustOrganizationMfaPivKeyRequirements, ZeroTrustOrganizationMfaPivKeyRequirementsArgs
- Pin
Policy string - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - Require
Fips boolDevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- Ssh
Key List<int>Sizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- Ssh
Key List<string>Types - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - Touch
Policy string - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
- Pin
Policy string - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - Require
Fips boolDevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- Ssh
Key []intSizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- Ssh
Key []stringTypes - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - Touch
Policy string - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
- pin_
policy string - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - require_
fips_ booldevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- ssh_
key_ list(number)sizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- ssh_
key_ list(string)types - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - touch_
policy string - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
- pin
Policy String - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - require
Fips BooleanDevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- ssh
Key List<Integer>Sizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- ssh
Key List<String>Types - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - touch
Policy String - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
- pin
Policy string - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - require
Fips booleanDevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- ssh
Key number[]Sizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- ssh
Key string[]Types - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - touch
Policy string - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
- pin_
policy str - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - require_
fips_ booldevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- ssh_
key_ Sequence[int]sizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- ssh_
key_ Sequence[str]types - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - touch_
policy str - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
- pin
Policy String - Defines when a PIN is required to use the SSH key. Valid values:
never(no PIN required),once(PIN required once per session),always(PIN required for each use). Available values: "never", "once", "always". - require
Fips BooleanDevice - Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.
- ssh
Key List<Number>Sizes - Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.
- ssh
Key List<String>Types - Specifies the allowed SSH key types. Valid values are
ecdsa,ed25519, andrsa. - touch
Policy String - Defines when physical touch is required to use the SSH key. Valid values:
never(no touch required),always(touch required for each use),cached(touch cached for 15 seconds). Available values: "never", "always", "cached".
ZeroTrustOrganizationServiceTokenInactivity, ZeroTrustOrganizationServiceTokenInactivityArgs
- Action string
- The action applied to an inactive service token. Available values: "disable", "delete".
- Enabled bool
- Whether automatic enforcement for inactive service tokens is enabled.
- Inactivity
Threshold intDays - The number of days a service token must be inactive before the configured action is applied.
- Action string
- The action applied to an inactive service token. Available values: "disable", "delete".
- Enabled bool
- Whether automatic enforcement for inactive service tokens is enabled.
- Inactivity
Threshold intDays - The number of days a service token must be inactive before the configured action is applied.
- action string
- The action applied to an inactive service token. Available values: "disable", "delete".
- enabled bool
- Whether automatic enforcement for inactive service tokens is enabled.
- inactivity_
threshold_ numberdays - The number of days a service token must be inactive before the configured action is applied.
- action String
- The action applied to an inactive service token. Available values: "disable", "delete".
- enabled Boolean
- Whether automatic enforcement for inactive service tokens is enabled.
- inactivity
Threshold IntegerDays - The number of days a service token must be inactive before the configured action is applied.
- action string
- The action applied to an inactive service token. Available values: "disable", "delete".
- enabled boolean
- Whether automatic enforcement for inactive service tokens is enabled.
- inactivity
Threshold numberDays - The number of days a service token must be inactive before the configured action is applied.
- action str
- The action applied to an inactive service token. Available values: "disable", "delete".
- enabled bool
- Whether automatic enforcement for inactive service tokens is enabled.
- inactivity_
threshold_ intdays - The number of days a service token must be inactive before the configured action is applied.
- action String
- The action applied to an inactive service token. Available values: "disable", "delete".
- enabled Boolean
- Whether automatic enforcement for inactive service tokens is enabled.
- inactivity
Threshold NumberDays - The number of days a service token must be inactive before the configured action is applied.
Import
$ pulumi import cloudflare:index/zeroTrustOrganization:ZeroTrustOrganization example '<account_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Nov 12, 2026 by Pulumi