1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. AccessCustomPage
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.AccessCustomPage

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    Deprecated: cloudflare.index/accesscustompage.AccessCustomPage has been deprecated in favor of cloudflare.index/zerotrustaccesscustompage.ZeroTrustAccessCustomPage

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustAccessCustomPage = new cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        customHtml: "<html><body><h1>Access Denied</h1></body></html>",
        name: "name",
        type: "identity_denied",
        appCount: 0,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_access_custom_page = cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        custom_html="<html><body><h1>Access Denied</h1></body></html>",
        name="name",
        type="identity_denied",
        app_count=0)
    
    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.NewZeroTrustAccessCustomPage(ctx, "example_zero_trust_access_custom_page", &cloudflare.ZeroTrustAccessCustomPageArgs{
    			AccountId:  pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			CustomHtml: pulumi.String("<html><body><h1>Access Denied</h1></body></html>"),
    			Name:       pulumi.String("name"),
    			Type:       pulumi.String("identity_denied"),
    			AppCount:   pulumi.Int(0),
    		})
    		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 exampleZeroTrustAccessCustomPage = new Cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            CustomHtml = "<html><body><h1>Access Denied</h1></body></html>",
            Name = "name",
            Type = "identity_denied",
            AppCount = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustAccessCustomPage;
    import com.pulumi.cloudflare.ZeroTrustAccessCustomPageArgs;
    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 exampleZeroTrustAccessCustomPage = new ZeroTrustAccessCustomPage("exampleZeroTrustAccessCustomPage", ZeroTrustAccessCustomPageArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .customHtml("<html><body><h1>Access Denied</h1></body></html>")
                .name("name")
                .type("identity_denied")
                .appCount(0)
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustAccessCustomPage:
        type: cloudflare:ZeroTrustAccessCustomPage
        name: example_zero_trust_access_custom_page
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          customHtml: <html><body><h1>Access Denied</h1></body></html>
          name: name
          type: identity_denied
          appCount: 0
    

    Create AccessCustomPage Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccessCustomPage(name: string, args: AccessCustomPageArgs, opts?: CustomResourceOptions);
    @overload
    def AccessCustomPage(resource_name: str,
                         args: AccessCustomPageArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessCustomPage(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         account_id: Optional[str] = None,
                         app_count: Optional[int] = None,
                         custom_html: Optional[str] = None,
                         name: Optional[str] = None,
                         type: Optional[str] = None)
    func NewAccessCustomPage(ctx *Context, name string, args AccessCustomPageArgs, opts ...ResourceOption) (*AccessCustomPage, error)
    public AccessCustomPage(string name, AccessCustomPageArgs args, CustomResourceOptions? opts = null)
    public AccessCustomPage(String name, AccessCustomPageArgs args)
    public AccessCustomPage(String name, AccessCustomPageArgs args, CustomResourceOptions options)
    
    type: cloudflare:AccessCustomPage
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AccessCustomPageArgs
    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 AccessCustomPageArgs
    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 AccessCustomPageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessCustomPageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessCustomPageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AccessCustomPage 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 AccessCustomPage resource accepts the following input properties:

    AccountId string
    Identifier.
    CustomHtml string
    Custom page HTML.
    Name string
    Custom page name.
    Type string
    Custom page type. Available values: "identity_denied", "forbidden".
    AppCount int
    Number of apps the custom page is assigned to.
    AccountId string
    Identifier.
    CustomHtml string
    Custom page HTML.
    Name string
    Custom page name.
    Type string
    Custom page type. Available values: "identity_denied", "forbidden".
    AppCount int
    Number of apps the custom page is assigned to.
    accountId String
    Identifier.
    customHtml String
    Custom page HTML.
    name String
    Custom page name.
    type String
    Custom page type. Available values: "identity_denied", "forbidden".
    appCount Integer
    Number of apps the custom page is assigned to.
    accountId string
    Identifier.
    customHtml string
    Custom page HTML.
    name string
    Custom page name.
    type string
    Custom page type. Available values: "identity_denied", "forbidden".
    appCount number
    Number of apps the custom page is assigned to.
    account_id str
    Identifier.
    custom_html str
    Custom page HTML.
    name str
    Custom page name.
    type str
    Custom page type. Available values: "identity_denied", "forbidden".
    app_count int
    Number of apps the custom page is assigned to.
    accountId String
    Identifier.
    customHtml String
    Custom page HTML.
    name String
    Custom page name.
    type String
    Custom page type. Available values: "identity_denied", "forbidden".
    appCount Number
    Number of apps the custom page is assigned to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccessCustomPage resource produces the following output properties:

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Uid string
    UUID.
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Uid string
    UUID.
    UpdatedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    uid String
    UUID.
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    uid string
    UUID.
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    uid str
    UUID.
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    uid String
    UUID.
    updatedAt String

    Look up Existing AccessCustomPage Resource

    Get an existing AccessCustomPage 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?: AccessCustomPageState, opts?: CustomResourceOptions): AccessCustomPage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            app_count: Optional[int] = None,
            created_at: Optional[str] = None,
            custom_html: Optional[str] = None,
            name: Optional[str] = None,
            type: Optional[str] = None,
            uid: Optional[str] = None,
            updated_at: Optional[str] = None) -> AccessCustomPage
    func GetAccessCustomPage(ctx *Context, name string, id IDInput, state *AccessCustomPageState, opts ...ResourceOption) (*AccessCustomPage, error)
    public static AccessCustomPage Get(string name, Input<string> id, AccessCustomPageState? state, CustomResourceOptions? opts = null)
    public static AccessCustomPage get(String name, Output<String> id, AccessCustomPageState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:AccessCustomPage    get:      id: ${id}
    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.
    The following state arguments are supported:
    AccountId string
    Identifier.
    AppCount int
    Number of apps the custom page is assigned to.
    CreatedAt string
    CustomHtml string
    Custom page HTML.
    Name string
    Custom page name.
    Type string
    Custom page type. Available values: "identity_denied", "forbidden".
    Uid string
    UUID.
    UpdatedAt string
    AccountId string
    Identifier.
    AppCount int
    Number of apps the custom page is assigned to.
    CreatedAt string
    CustomHtml string
    Custom page HTML.
    Name string
    Custom page name.
    Type string
    Custom page type. Available values: "identity_denied", "forbidden".
    Uid string
    UUID.
    UpdatedAt string
    accountId String
    Identifier.
    appCount Integer
    Number of apps the custom page is assigned to.
    createdAt String
    customHtml String
    Custom page HTML.
    name String
    Custom page name.
    type String
    Custom page type. Available values: "identity_denied", "forbidden".
    uid String
    UUID.
    updatedAt String
    accountId string
    Identifier.
    appCount number
    Number of apps the custom page is assigned to.
    createdAt string
    customHtml string
    Custom page HTML.
    name string
    Custom page name.
    type string
    Custom page type. Available values: "identity_denied", "forbidden".
    uid string
    UUID.
    updatedAt string
    account_id str
    Identifier.
    app_count int
    Number of apps the custom page is assigned to.
    created_at str
    custom_html str
    Custom page HTML.
    name str
    Custom page name.
    type str
    Custom page type. Available values: "identity_denied", "forbidden".
    uid str
    UUID.
    updated_at str
    accountId String
    Identifier.
    appCount Number
    Number of apps the custom page is assigned to.
    createdAt String
    customHtml String
    Custom page HTML.
    name String
    Custom page name.
    type String
    Custom page type. Available values: "identity_denied", "forbidden".
    uid String
    UUID.
    updatedAt String

    Import

    $ pulumi import cloudflare:index/accessCustomPage:AccessCustomPage example '<account_id>/<custom_page_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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi