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

cloudflare.getZeroTrustAccessCustomPage

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustAccessCustomPage = cloudflare.getZeroTrustAccessCustomPage({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        customPageId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_access_custom_page = cloudflare.get_zero_trust_access_custom_page(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        custom_page_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
    
    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.LookupZeroTrustAccessCustomPage(ctx, &cloudflare.LookupZeroTrustAccessCustomPageArgs{
    			AccountId:    "023e105f4ecef8ad9ca31a8372d0c353",
    			CustomPageId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
    		}, nil)
    		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 = Cloudflare.GetZeroTrustAccessCustomPage.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            CustomPageId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustAccessCustomPageArgs;
    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) {
            final var exampleZeroTrustAccessCustomPage = CloudflareFunctions.getZeroTrustAccessCustomPage(GetZeroTrustAccessCustomPageArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .customPageId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustAccessCustomPage:
        fn::invoke:
          function: cloudflare:getZeroTrustAccessCustomPage
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            customPageId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
    

    Using getZeroTrustAccessCustomPage

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getZeroTrustAccessCustomPage(args: GetZeroTrustAccessCustomPageArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessCustomPageResult>
    function getZeroTrustAccessCustomPageOutput(args: GetZeroTrustAccessCustomPageOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessCustomPageResult>
    def get_zero_trust_access_custom_page(account_id: Optional[str] = None,
                                          custom_page_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessCustomPageResult
    def get_zero_trust_access_custom_page_output(account_id: Optional[pulumi.Input[str]] = None,
                                          custom_page_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessCustomPageResult]
    func LookupZeroTrustAccessCustomPage(ctx *Context, args *LookupZeroTrustAccessCustomPageArgs, opts ...InvokeOption) (*LookupZeroTrustAccessCustomPageResult, error)
    func LookupZeroTrustAccessCustomPageOutput(ctx *Context, args *LookupZeroTrustAccessCustomPageOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessCustomPageResultOutput

    > Note: This function is named LookupZeroTrustAccessCustomPage in the Go SDK.

    public static class GetZeroTrustAccessCustomPage 
    {
        public static Task<GetZeroTrustAccessCustomPageResult> InvokeAsync(GetZeroTrustAccessCustomPageArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustAccessCustomPageResult> Invoke(GetZeroTrustAccessCustomPageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustAccessCustomPageResult> getZeroTrustAccessCustomPage(GetZeroTrustAccessCustomPageArgs args, InvokeOptions options)
    public static Output<GetZeroTrustAccessCustomPageResult> getZeroTrustAccessCustomPage(GetZeroTrustAccessCustomPageArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustAccessCustomPage:getZeroTrustAccessCustomPage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    CustomPageId string
    UUID.
    AccountId string
    Identifier.
    CustomPageId string
    UUID.
    accountId String
    Identifier.
    customPageId String
    UUID.
    accountId string
    Identifier.
    customPageId string
    UUID.
    account_id str
    Identifier.
    custom_page_id str
    UUID.
    accountId String
    Identifier.
    customPageId String
    UUID.

    getZeroTrustAccessCustomPage Result

    The following output properties are available:

    AccountId string
    Identifier.
    AppCount int
    Number of apps the custom page is assigned to.
    CreatedAt string
    CustomHtml string
    Custom page HTML.
    Id string
    UUID.
    Name string
    Custom page name.
    Type string
    Custom page type. Available values: "identity_denied", "forbidden".
    Uid string
    UUID.
    UpdatedAt string
    CustomPageId string
    UUID.
    AccountId string
    Identifier.
    AppCount int
    Number of apps the custom page is assigned to.
    CreatedAt string
    CustomHtml string
    Custom page HTML.
    Id string
    UUID.
    Name string
    Custom page name.
    Type string
    Custom page type. Available values: "identity_denied", "forbidden".
    Uid string
    UUID.
    UpdatedAt string
    CustomPageId string
    UUID.
    accountId String
    Identifier.
    appCount Integer
    Number of apps the custom page is assigned to.
    createdAt String
    customHtml String
    Custom page HTML.
    id String
    UUID.
    name String
    Custom page name.
    type String
    Custom page type. Available values: "identity_denied", "forbidden".
    uid String
    UUID.
    updatedAt String
    customPageId String
    UUID.
    accountId string
    Identifier.
    appCount number
    Number of apps the custom page is assigned to.
    createdAt string
    customHtml string
    Custom page HTML.
    id string
    UUID.
    name string
    Custom page name.
    type string
    Custom page type. Available values: "identity_denied", "forbidden".
    uid string
    UUID.
    updatedAt string
    customPageId string
    UUID.
    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.
    id str
    UUID.
    name str
    Custom page name.
    type str
    Custom page type. Available values: "identity_denied", "forbidden".
    uid str
    UUID.
    updated_at str
    custom_page_id str
    UUID.
    accountId String
    Identifier.
    appCount Number
    Number of apps the custom page is assigned to.
    createdAt String
    customHtml String
    Custom page HTML.
    id String
    UUID.
    name String
    Custom page name.
    type String
    Custom page type. Available values: "identity_denied", "forbidden".
    uid String
    UUID.
    updatedAt String
    customPageId String
    UUID.

    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