cloudflare.AccessApplication
Explore with Pulumi AI
Provides a Cloudflare Access Application resource. Access Applications are used to restrict access to a whole application using an authorisation gateway managed by Cloudflare.
It’s required that an
account_id
orzone_id
is provided and in most cases using either is fine. However, if you’re using a scoped access token, you must provide the argument that matches the token’s scope. For example, an access token that is scoped to the “example.com” zone needs to use thezone_id
argument.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
// With CORS configuration
var stagingApp = new Cloudflare.AccessApplication("stagingApp", new()
{
CorsHeaders = new[]
{
new Cloudflare.Inputs.AccessApplicationCorsHeaderArgs
{
AllowCredentials = true,
AllowedMethods = new[]
{
"GET",
"POST",
"OPTIONS",
},
AllowedOrigins = new[]
{
"https://example.com",
},
MaxAge = 10,
},
},
Domain = "staging.example.com",
Name = "staging application",
SessionDuration = "24h",
Type = "self_hosted",
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
});
});
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.NewAccessApplication(ctx, "stagingApp", &cloudflare.AccessApplicationArgs{
CorsHeaders: cloudflare.AccessApplicationCorsHeaderArray{
&cloudflare.AccessApplicationCorsHeaderArgs{
AllowCredentials: pulumi.Bool(true),
AllowedMethods: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("POST"),
pulumi.String("OPTIONS"),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("https://example.com"),
},
MaxAge: pulumi.Int(10),
},
},
Domain: pulumi.String("staging.example.com"),
Name: pulumi.String("staging application"),
SessionDuration: pulumi.String("24h"),
Type: pulumi.String("self_hosted"),
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
})
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.AccessApplication;
import com.pulumi.cloudflare.AccessApplicationArgs;
import com.pulumi.cloudflare.inputs.AccessApplicationCorsHeaderArgs;
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 stagingApp = new AccessApplication("stagingApp", AccessApplicationArgs.builder()
.corsHeaders(AccessApplicationCorsHeaderArgs.builder()
.allowCredentials(true)
.allowedMethods(
"GET",
"POST",
"OPTIONS")
.allowedOrigins("https://example.com")
.maxAge(10)
.build())
.domain("staging.example.com")
.name("staging application")
.sessionDuration("24h")
.type("self_hosted")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}
import pulumi
import pulumi_cloudflare as cloudflare
# With CORS configuration
staging_app = cloudflare.AccessApplication("stagingApp",
cors_headers=[cloudflare.AccessApplicationCorsHeaderArgs(
allow_credentials=True,
allowed_methods=[
"GET",
"POST",
"OPTIONS",
],
allowed_origins=["https://example.com"],
max_age=10,
)],
domain="staging.example.com",
name="staging application",
session_duration="24h",
type="self_hosted",
zone_id="0da42c8d2132a9ddaf714f9e7c920711")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
// With CORS configuration
const stagingApp = new cloudflare.AccessApplication("stagingApp", {
corsHeaders: [{
allowCredentials: true,
allowedMethods: [
"GET",
"POST",
"OPTIONS",
],
allowedOrigins: ["https://example.com"],
maxAge: 10,
}],
domain: "staging.example.com",
name: "staging application",
sessionDuration: "24h",
type: "self_hosted",
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
});
resources:
# With CORS configuration
stagingApp:
type: cloudflare:AccessApplication
properties:
corsHeaders:
- allowCredentials: true
allowedMethods:
- GET
- POST
- OPTIONS
allowedOrigins:
- https://example.com
maxAge: 10
domain: staging.example.com
name: staging application
sessionDuration: 24h
type: self_hosted
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
Create AccessApplication Resource
new AccessApplication(name: string, args: AccessApplicationArgs, opts?: CustomResourceOptions);
@overload
def AccessApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
allowed_idps: Optional[Sequence[str]] = None,
app_launcher_visible: Optional[bool] = None,
auto_redirect_to_identity: Optional[bool] = None,
cors_headers: Optional[Sequence[AccessApplicationCorsHeaderArgs]] = None,
custom_deny_message: Optional[str] = None,
custom_deny_url: Optional[str] = None,
domain: Optional[str] = None,
enable_binding_cookie: Optional[bool] = None,
http_only_cookie_attribute: Optional[bool] = None,
logo_url: Optional[str] = None,
name: Optional[str] = None,
saas_app: Optional[AccessApplicationSaasAppArgs] = None,
same_site_cookie_attribute: Optional[str] = None,
service_auth401_redirect: Optional[bool] = None,
session_duration: Optional[str] = None,
skip_interstitial: Optional[bool] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None)
@overload
def AccessApplication(resource_name: str,
args: AccessApplicationArgs,
opts: Optional[ResourceOptions] = None)
func NewAccessApplication(ctx *Context, name string, args AccessApplicationArgs, opts ...ResourceOption) (*AccessApplication, error)
public AccessApplication(string name, AccessApplicationArgs args, CustomResourceOptions? opts = null)
public AccessApplication(String name, AccessApplicationArgs args)
public AccessApplication(String name, AccessApplicationArgs args, CustomResourceOptions options)
type: cloudflare:AccessApplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessApplicationArgs
- 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 AccessApplicationArgs
- 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 AccessApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AccessApplication Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccessApplication resource accepts the following input properties:
- Name string
Friendly name of the Access Application.
- Account
Id string The account identifier to target for the resource. Conflicts with
zone_id
.- Allowed
Idps List<string> The identity providers selected for the application.
- App
Launcher boolVisible Option to show/hide applications in App Launcher. Defaults to
true
.- Auto
Redirect boolTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- Cors
Headers List<AccessApplication Cors Header Args> CORS configuration for the Access Application. See below for reference structure.
- Custom
Deny stringMessage Option that returns a custom error message when a user is denied access to the application.
- Custom
Deny stringUrl Option that redirects to a custom URL when a user is denied access to the application.
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- bool
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- bool
Option to add the
HttpOnly
cookie flag to access tokens.- Logo
Url string Image URL for the logo shown in the app launcher dashboard.
- Saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- string
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- Service
Auth401Redirect bool Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- Session
Duration string How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- Skip
Interstitial bool Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- Type string
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- Zone
Id string The zone identifier to target for the resource. Conflicts with
account_id
.
- Name string
Friendly name of the Access Application.
- Account
Id string The account identifier to target for the resource. Conflicts with
zone_id
.- Allowed
Idps []string The identity providers selected for the application.
- App
Launcher boolVisible Option to show/hide applications in App Launcher. Defaults to
true
.- Auto
Redirect boolTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- Cors
Headers []AccessApplication Cors Header Args CORS configuration for the Access Application. See below for reference structure.
- Custom
Deny stringMessage Option that returns a custom error message when a user is denied access to the application.
- Custom
Deny stringUrl Option that redirects to a custom URL when a user is denied access to the application.
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- bool
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- bool
Option to add the
HttpOnly
cookie flag to access tokens.- Logo
Url string Image URL for the logo shown in the app launcher dashboard.
- Saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- string
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- Service
Auth401Redirect bool Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- Session
Duration string How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- Skip
Interstitial bool Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- Type string
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- Zone
Id string The zone identifier to target for the resource. Conflicts with
account_id
.
- name String
Friendly name of the Access Application.
- account
Id String The account identifier to target for the resource. Conflicts with
zone_id
.- allowed
Idps List<String> The identity providers selected for the application.
- app
Launcher BooleanVisible Option to show/hide applications in App Launcher. Defaults to
true
.- auto
Redirect BooleanTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors
Headers List<AccessApplication Cors Header Args> CORS configuration for the Access Application. See below for reference structure.
- custom
Deny StringMessage Option that returns a custom error message when a user is denied access to the application.
- custom
Deny StringUrl Option that redirects to a custom URL when a user is denied access to the application.
- domain String
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Boolean
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- Boolean
Option to add the
HttpOnly
cookie flag to access tokens.- logo
Url String Image URL for the logo shown in the app launcher dashboard.
- saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- String
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service
Auth401Redirect Boolean Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session
Duration String How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip
Interstitial Boolean Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type String
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone
Id String The zone identifier to target for the resource. Conflicts with
account_id
.
- name string
Friendly name of the Access Application.
- account
Id string The account identifier to target for the resource. Conflicts with
zone_id
.- allowed
Idps string[] The identity providers selected for the application.
- app
Launcher booleanVisible Option to show/hide applications in App Launcher. Defaults to
true
.- auto
Redirect booleanTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors
Headers AccessApplication Cors Header Args[] CORS configuration for the Access Application. See below for reference structure.
- custom
Deny stringMessage Option that returns a custom error message when a user is denied access to the application.
- custom
Deny stringUrl Option that redirects to a custom URL when a user is denied access to the application.
- domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- boolean
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- boolean
Option to add the
HttpOnly
cookie flag to access tokens.- logo
Url string Image URL for the logo shown in the app launcher dashboard.
- saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- string
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service
Auth401Redirect boolean Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session
Duration string How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip
Interstitial boolean Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type string
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone
Id string The zone identifier to target for the resource. Conflicts with
account_id
.
- name str
Friendly name of the Access Application.
- account_
id str The account identifier to target for the resource. Conflicts with
zone_id
.- allowed_
idps Sequence[str] The identity providers selected for the application.
- app_
launcher_ boolvisible Option to show/hide applications in App Launcher. Defaults to
true
.- auto_
redirect_ boolto_ identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors_
headers Sequence[AccessApplication Cors Header Args] CORS configuration for the Access Application. See below for reference structure.
- custom_
deny_ strmessage Option that returns a custom error message when a user is denied access to the application.
- custom_
deny_ strurl Option that redirects to a custom URL when a user is denied access to the application.
- domain str
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- bool
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- bool
Option to add the
HttpOnly
cookie flag to access tokens.- logo_
url str Image URL for the logo shown in the app launcher dashboard.
- saas_
app AccessApplication Saas App Args SaaS configuration for the Access Application.
- str
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service_
auth401_ boolredirect Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session_
duration str How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip_
interstitial bool Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type str
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone_
id str The zone identifier to target for the resource. Conflicts with
account_id
.
- name String
Friendly name of the Access Application.
- account
Id String The account identifier to target for the resource. Conflicts with
zone_id
.- allowed
Idps List<String> The identity providers selected for the application.
- app
Launcher BooleanVisible Option to show/hide applications in App Launcher. Defaults to
true
.- auto
Redirect BooleanTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors
Headers List<Property Map> CORS configuration for the Access Application. See below for reference structure.
- custom
Deny StringMessage Option that returns a custom error message when a user is denied access to the application.
- custom
Deny StringUrl Option that redirects to a custom URL when a user is denied access to the application.
- domain String
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Boolean
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- Boolean
Option to add the
HttpOnly
cookie flag to access tokens.- logo
Url String Image URL for the logo shown in the app launcher dashboard.
- saas
App Property Map SaaS configuration for the Access Application.
- String
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service
Auth401Redirect Boolean Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session
Duration String How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip
Interstitial Boolean Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type String
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone
Id String The zone identifier to target for the resource. Conflicts with
account_id
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessApplication resource produces the following output properties:
Look up Existing AccessApplication Resource
Get an existing AccessApplication 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?: AccessApplicationState, opts?: CustomResourceOptions): AccessApplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
allowed_idps: Optional[Sequence[str]] = None,
app_launcher_visible: Optional[bool] = None,
aud: Optional[str] = None,
auto_redirect_to_identity: Optional[bool] = None,
cors_headers: Optional[Sequence[AccessApplicationCorsHeaderArgs]] = None,
custom_deny_message: Optional[str] = None,
custom_deny_url: Optional[str] = None,
domain: Optional[str] = None,
enable_binding_cookie: Optional[bool] = None,
http_only_cookie_attribute: Optional[bool] = None,
logo_url: Optional[str] = None,
name: Optional[str] = None,
saas_app: Optional[AccessApplicationSaasAppArgs] = None,
same_site_cookie_attribute: Optional[str] = None,
service_auth401_redirect: Optional[bool] = None,
session_duration: Optional[str] = None,
skip_interstitial: Optional[bool] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None) -> AccessApplication
func GetAccessApplication(ctx *Context, name string, id IDInput, state *AccessApplicationState, opts ...ResourceOption) (*AccessApplication, error)
public static AccessApplication Get(string name, Input<string> id, AccessApplicationState? state, CustomResourceOptions? opts = null)
public static AccessApplication get(String name, Output<String> id, AccessApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string The account identifier to target for the resource. Conflicts with
zone_id
.- Allowed
Idps List<string> The identity providers selected for the application.
- App
Launcher boolVisible Option to show/hide applications in App Launcher. Defaults to
true
.- Aud string
Application Audience (AUD) Tag of the application.
- Auto
Redirect boolTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- Cors
Headers List<AccessApplication Cors Header Args> CORS configuration for the Access Application. See below for reference structure.
- Custom
Deny stringMessage Option that returns a custom error message when a user is denied access to the application.
- Custom
Deny stringUrl Option that redirects to a custom URL when a user is denied access to the application.
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- bool
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- bool
Option to add the
HttpOnly
cookie flag to access tokens.- Logo
Url string Image URL for the logo shown in the app launcher dashboard.
- Name string
Friendly name of the Access Application.
- Saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- string
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- Service
Auth401Redirect bool Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- Session
Duration string How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- Skip
Interstitial bool Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- Type string
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- Zone
Id string The zone identifier to target for the resource. Conflicts with
account_id
.
- Account
Id string The account identifier to target for the resource. Conflicts with
zone_id
.- Allowed
Idps []string The identity providers selected for the application.
- App
Launcher boolVisible Option to show/hide applications in App Launcher. Defaults to
true
.- Aud string
Application Audience (AUD) Tag of the application.
- Auto
Redirect boolTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- Cors
Headers []AccessApplication Cors Header Args CORS configuration for the Access Application. See below for reference structure.
- Custom
Deny stringMessage Option that returns a custom error message when a user is denied access to the application.
- Custom
Deny stringUrl Option that redirects to a custom URL when a user is denied access to the application.
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- bool
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- bool
Option to add the
HttpOnly
cookie flag to access tokens.- Logo
Url string Image URL for the logo shown in the app launcher dashboard.
- Name string
Friendly name of the Access Application.
- Saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- string
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- Service
Auth401Redirect bool Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- Session
Duration string How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- Skip
Interstitial bool Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- Type string
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- Zone
Id string The zone identifier to target for the resource. Conflicts with
account_id
.
- account
Id String The account identifier to target for the resource. Conflicts with
zone_id
.- allowed
Idps List<String> The identity providers selected for the application.
- app
Launcher BooleanVisible Option to show/hide applications in App Launcher. Defaults to
true
.- aud String
Application Audience (AUD) Tag of the application.
- auto
Redirect BooleanTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors
Headers List<AccessApplication Cors Header Args> CORS configuration for the Access Application. See below for reference structure.
- custom
Deny StringMessage Option that returns a custom error message when a user is denied access to the application.
- custom
Deny StringUrl Option that redirects to a custom URL when a user is denied access to the application.
- domain String
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Boolean
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- Boolean
Option to add the
HttpOnly
cookie flag to access tokens.- logo
Url String Image URL for the logo shown in the app launcher dashboard.
- name String
Friendly name of the Access Application.
- saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- String
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service
Auth401Redirect Boolean Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session
Duration String How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip
Interstitial Boolean Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type String
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone
Id String The zone identifier to target for the resource. Conflicts with
account_id
.
- account
Id string The account identifier to target for the resource. Conflicts with
zone_id
.- allowed
Idps string[] The identity providers selected for the application.
- app
Launcher booleanVisible Option to show/hide applications in App Launcher. Defaults to
true
.- aud string
Application Audience (AUD) Tag of the application.
- auto
Redirect booleanTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors
Headers AccessApplication Cors Header Args[] CORS configuration for the Access Application. See below for reference structure.
- custom
Deny stringMessage Option that returns a custom error message when a user is denied access to the application.
- custom
Deny stringUrl Option that redirects to a custom URL when a user is denied access to the application.
- domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- boolean
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- boolean
Option to add the
HttpOnly
cookie flag to access tokens.- logo
Url string Image URL for the logo shown in the app launcher dashboard.
- name string
Friendly name of the Access Application.
- saas
App AccessApplication Saas App Args SaaS configuration for the Access Application.
- string
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service
Auth401Redirect boolean Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session
Duration string How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip
Interstitial boolean Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type string
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone
Id string The zone identifier to target for the resource. Conflicts with
account_id
.
- account_
id str The account identifier to target for the resource. Conflicts with
zone_id
.- allowed_
idps Sequence[str] The identity providers selected for the application.
- app_
launcher_ boolvisible Option to show/hide applications in App Launcher. Defaults to
true
.- aud str
Application Audience (AUD) Tag of the application.
- auto_
redirect_ boolto_ identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors_
headers Sequence[AccessApplication Cors Header Args] CORS configuration for the Access Application. See below for reference structure.
- custom_
deny_ strmessage Option that returns a custom error message when a user is denied access to the application.
- custom_
deny_ strurl Option that redirects to a custom URL when a user is denied access to the application.
- domain str
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- bool
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- bool
Option to add the
HttpOnly
cookie flag to access tokens.- logo_
url str Image URL for the logo shown in the app launcher dashboard.
- name str
Friendly name of the Access Application.
- saas_
app AccessApplication Saas App Args SaaS configuration for the Access Application.
- str
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service_
auth401_ boolredirect Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session_
duration str How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip_
interstitial bool Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type str
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone_
id str The zone identifier to target for the resource. Conflicts with
account_id
.
- account
Id String The account identifier to target for the resource. Conflicts with
zone_id
.- allowed
Idps List<String> The identity providers selected for the application.
- app
Launcher BooleanVisible Option to show/hide applications in App Launcher. Defaults to
true
.- aud String
Application Audience (AUD) Tag of the application.
- auto
Redirect BooleanTo Identity Option to skip identity provider selection if only one is configured in
allowed_idps
. Defaults tofalse
.- cors
Headers List<Property Map> CORS configuration for the Access Application. See below for reference structure.
- custom
Deny StringMessage Option that returns a custom error message when a user is denied access to the application.
- custom
Deny StringUrl Option that redirects to a custom URL when a user is denied access to the application.
- domain String
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Boolean
Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to
false
.- Boolean
Option to add the
HttpOnly
cookie flag to access tokens.- logo
Url String Image URL for the logo shown in the app launcher dashboard.
- name String
Friendly name of the Access Application.
- saas
App Property Map SaaS configuration for the Access Application.
- String
Defines the same-site cookie setting for access tokens. Available values:
none
,lax
,strict
.- service
Auth401Redirect Boolean Option to return a 401 status code in service authentication rules on failed requests. Defaults to
false
.- session
Duration String How often a user will be forced to re-authorise. Must be in the format
48h
or2h45m
. Defaults to24h
.- skip
Interstitial Boolean Option to skip the authorization interstitial when using the CLI. Defaults to
false
.- type String
The application type. Available values:
app_launcher
,bookmark
,biso
,dash_sso
,saas
,self_hosted
,ssh
,vnc
,warp
. Defaults toself_hosted
.- zone
Id String The zone identifier to target for the resource. Conflicts with
account_id
.
Supporting Types
AccessApplicationCorsHeader
- Allow
All boolHeaders Value to determine whether all HTTP headers are exposed.
- Allow
All boolMethods Value to determine whether all methods are exposed.
- Allow
All boolOrigins Value to determine whether all origins are permitted to make CORS requests.
- Allow
Credentials bool Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.
- Allowed
Headers List<string> List of HTTP headers to expose via CORS.
- Allowed
Methods List<string> List of methods to expose via CORS.
- Allowed
Origins List<string> List of origins permitted to make CORS requests.
- Max
Age int The maximum time a preflight request will be cached.
- Allow
All boolHeaders Value to determine whether all HTTP headers are exposed.
- Allow
All boolMethods Value to determine whether all methods are exposed.
- Allow
All boolOrigins Value to determine whether all origins are permitted to make CORS requests.
- Allow
Credentials bool Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.
- Allowed
Headers []string List of HTTP headers to expose via CORS.
- Allowed
Methods []string List of methods to expose via CORS.
- Allowed
Origins []string List of origins permitted to make CORS requests.
- Max
Age int The maximum time a preflight request will be cached.
- allow
All BooleanHeaders Value to determine whether all HTTP headers are exposed.
- allow
All BooleanMethods Value to determine whether all methods are exposed.
- allow
All BooleanOrigins Value to determine whether all origins are permitted to make CORS requests.
- allow
Credentials Boolean Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.
- allowed
Headers List<String> List of HTTP headers to expose via CORS.
- allowed
Methods List<String> List of methods to expose via CORS.
- allowed
Origins List<String> List of origins permitted to make CORS requests.
- max
Age Integer The maximum time a preflight request will be cached.
- allow
All booleanHeaders Value to determine whether all HTTP headers are exposed.
- allow
All booleanMethods Value to determine whether all methods are exposed.
- allow
All booleanOrigins Value to determine whether all origins are permitted to make CORS requests.
- allow
Credentials boolean Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.
- allowed
Headers string[] List of HTTP headers to expose via CORS.
- allowed
Methods string[] List of methods to expose via CORS.
- allowed
Origins string[] List of origins permitted to make CORS requests.
- max
Age number The maximum time a preflight request will be cached.
- allow_
all_ boolheaders Value to determine whether all HTTP headers are exposed.
- allow_
all_ boolmethods Value to determine whether all methods are exposed.
- allow_
all_ boolorigins Value to determine whether all origins are permitted to make CORS requests.
- allow_
credentials bool Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.
- allowed_
headers Sequence[str] List of HTTP headers to expose via CORS.
- allowed_
methods Sequence[str] List of methods to expose via CORS.
- allowed_
origins Sequence[str] List of origins permitted to make CORS requests.
- max_
age int The maximum time a preflight request will be cached.
- allow
All BooleanHeaders Value to determine whether all HTTP headers are exposed.
- allow
All BooleanMethods Value to determine whether all methods are exposed.
- allow
All BooleanOrigins Value to determine whether all origins are permitted to make CORS requests.
- allow
Credentials Boolean Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.
- allowed
Headers List<String> List of HTTP headers to expose via CORS.
- allowed
Methods List<String> List of methods to expose via CORS.
- allowed
Origins List<String> List of origins permitted to make CORS requests.
- max
Age Number The maximum time a preflight request will be cached.
AccessApplicationSaasApp
- Consumer
Service stringUrl The service provider's endpoint that is responsible for receiving and parsing a SAML assertion.
- Sp
Entity stringId A globally unique name for an identity or service provider.
- Name
Id stringFormat The format of the name identifier sent to the SaaS application. Defaults to
email
.
- Consumer
Service stringUrl The service provider's endpoint that is responsible for receiving and parsing a SAML assertion.
- Sp
Entity stringId A globally unique name for an identity or service provider.
- Name
Id stringFormat The format of the name identifier sent to the SaaS application. Defaults to
email
.
- consumer
Service StringUrl The service provider's endpoint that is responsible for receiving and parsing a SAML assertion.
- sp
Entity StringId A globally unique name for an identity or service provider.
- name
Id StringFormat The format of the name identifier sent to the SaaS application. Defaults to
email
.
- consumer
Service stringUrl The service provider's endpoint that is responsible for receiving and parsing a SAML assertion.
- sp
Entity stringId A globally unique name for an identity or service provider.
- name
Id stringFormat The format of the name identifier sent to the SaaS application. Defaults to
email
.
- consumer_
service_ strurl The service provider's endpoint that is responsible for receiving and parsing a SAML assertion.
- sp_
entity_ strid A globally unique name for an identity or service provider.
- name_
id_ strformat The format of the name identifier sent to the SaaS application. Defaults to
email
.
- consumer
Service StringUrl The service provider's endpoint that is responsible for receiving and parsing a SAML assertion.
- sp
Entity StringId A globally unique name for an identity or service provider.
- name
Id StringFormat The format of the name identifier sent to the SaaS application. Defaults to
email
.
Import
$ pulumi import cloudflare:index/accessApplication:AccessApplication example <account_id>/<application_id>
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.