Access Organization Args
A Zero Trust organization defines the user login experience.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.AccessOrganization("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "example.cloudflareaccess.com",
authDomain: "example.cloudflareaccess.com",
isUiReadOnly: false,
userSeatExpirationInactiveTime: "720h",
autoRedirectToIdentity: false,
loginDesigns: [{
backgroundColor: "#ffffff",
textColor: "#000000",
logoPath: "https://example.com/logo.png",
headerText: "My header text",
footerText: "My footer text",
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.AccessOrganization("example",
account_id="f037e56e89293a057740de681ac9abbe",
name="example.cloudflareaccess.com",
auth_domain="example.cloudflareaccess.com",
is_ui_read_only=False,
user_seat_expiration_inactive_time="720h",
auto_redirect_to_identity=False,
login_designs=[{
"background_color": "#ffffff",
"text_color": "#000000",
"logo_path": "https://example.com/logo.png",
"header_text": "My header text",
"footer_text": "My footer text",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.AccessOrganization("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "example.cloudflareaccess.com",
AuthDomain = "example.cloudflareaccess.com",
IsUiReadOnly = false,
UserSeatExpirationInactiveTime = "720h",
AutoRedirectToIdentity = false,
LoginDesigns = new[]
{
new Cloudflare.Inputs.AccessOrganizationLoginDesignArgs
{
BackgroundColor = "#ffffff",
TextColor = "#000000",
LogoPath = "https://example.com/logo.png",
HeaderText = "My header text",
FooterText = "My footer text",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewAccessOrganization(ctx, "example", &cloudflare.AccessOrganizationArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("example.cloudflareaccess.com"),
AuthDomain: pulumi.String("example.cloudflareaccess.com"),
IsUiReadOnly: pulumi.Bool(false),
UserSeatExpirationInactiveTime: pulumi.String("720h"),
AutoRedirectToIdentity: pulumi.Bool(false),
LoginDesigns: cloudflare.AccessOrganizationLoginDesignArray{
&cloudflare.AccessOrganizationLoginDesignArgs{
BackgroundColor: pulumi.String("#ffffff"),
TextColor: pulumi.String("#000000"),
LogoPath: pulumi.String("https://example.com/logo.png"),
HeaderText: pulumi.String("My header text"),
FooterText: pulumi.String("My footer text"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessOrganization;
import com.pulumi.cloudflare.AccessOrganizationArgs;
import com.pulumi.cloudflare.inputs.AccessOrganizationLoginDesignArgs;
import java.util.List;
import java.util.ArrayList;
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 example = new AccessOrganization("example", AccessOrganizationArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("example.cloudflareaccess.com")
.authDomain("example.cloudflareaccess.com")
.isUiReadOnly(false)
.userSeatExpirationInactiveTime("720h")
.autoRedirectToIdentity(false)
.loginDesigns(AccessOrganizationLoginDesignArgs.builder()
.backgroundColor("#ffffff")
.textColor("#000000")
.logoPath("https://example.com/logo.png")
.headerText("My header text")
.footerText("My footer text")
.build())
.build());
}
}
resources:
example:
type: cloudflare:AccessOrganization
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: example.cloudflareaccess.com
authDomain: example.cloudflareaccess.com
isUiReadOnly: false
userSeatExpirationInactiveTime: 720h
autoRedirectToIdentity: false
loginDesigns:
- backgroundColor: '#ffffff'
textColor: '#000000'
logoPath: https://example.com/logo.png
headerText: My header text
footerText: My footer text
Import
$ pulumi import cloudflare:index/accessOrganization:AccessOrganization example <account_id>
Constructors
Properties
When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
The unique subdomain assigned to your Zero Trust organization.
When set to true, users skip the identity provider selection step during login.
Custom pages for your Zero Trust organization.
When set to true, this will disable all editing of Access resources via the Zero Trust Dashboard.
How often a user will be forced to re-authorise. Must be in the format 48h
or 2h45m
.
A description of the reason why the UI read only field is being toggled.
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. Must be in the format 300ms
or 2h45m
.
The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.