1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustAccessCustomPage
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getZeroTrustAccessCustomPage

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  exampleZeroTrustAccessCustomPage:
    fn::invoke:
      function: cloudflare:getZeroTrustAccessCustomPage
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        customPageId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
Copy

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>
Copy
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]
Copy
func LookupZeroTrustAccessCustomPage(ctx *Context, args *LookupZeroTrustAccessCustomPageArgs, opts ...InvokeOption) (*LookupZeroTrustAccessCustomPageResult, error)
func LookupZeroTrustAccessCustomPageOutput(ctx *Context, args *LookupZeroTrustAccessCustomPageOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessCustomPageResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetZeroTrustAccessCustomPageResult> getZeroTrustAccessCustomPage(GetZeroTrustAccessCustomPageArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessCustomPageResult> getZeroTrustAccessCustomPage(GetZeroTrustAccessCustomPageArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustAccessCustomPage:getZeroTrustAccessCustomPage
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Identifier
CustomPageId string
UUID
AccountId This property is required. string
Identifier
CustomPageId string
UUID
accountId This property is required. String
Identifier
customPageId String
UUID
accountId This property is required. string
Identifier
customPageId string
UUID
account_id This property is required. str
Identifier
custom_page_id str
UUID
accountId This property is required. 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.