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

cloudflare.getCustomHostnameFallbackOrigin

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 exampleCustomHostnameFallbackOrigin = cloudflare.getCustomHostnameFallbackOrigin({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_custom_hostname_fallback_origin = cloudflare.get_custom_hostname_fallback_origin(zone_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.LookupCustomHostnameFallbackOrigin(ctx, &cloudflare.LookupCustomHostnameFallbackOriginArgs{
    			ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleCustomHostnameFallbackOrigin = Cloudflare.GetCustomHostnameFallbackOrigin.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetCustomHostnameFallbackOriginArgs;
    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 exampleCustomHostnameFallbackOrigin = CloudflareFunctions.getCustomHostnameFallbackOrigin(GetCustomHostnameFallbackOriginArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleCustomHostnameFallbackOrigin:
        fn::invoke:
          function: cloudflare:getCustomHostnameFallbackOrigin
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getCustomHostnameFallbackOrigin

    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 getCustomHostnameFallbackOrigin(args: GetCustomHostnameFallbackOriginArgs, opts?: InvokeOptions): Promise<GetCustomHostnameFallbackOriginResult>
    function getCustomHostnameFallbackOriginOutput(args: GetCustomHostnameFallbackOriginOutputArgs, opts?: InvokeOptions): Output<GetCustomHostnameFallbackOriginResult>
    def get_custom_hostname_fallback_origin(zone_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetCustomHostnameFallbackOriginResult
    def get_custom_hostname_fallback_origin_output(zone_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetCustomHostnameFallbackOriginResult]
    func LookupCustomHostnameFallbackOrigin(ctx *Context, args *LookupCustomHostnameFallbackOriginArgs, opts ...InvokeOption) (*LookupCustomHostnameFallbackOriginResult, error)
    func LookupCustomHostnameFallbackOriginOutput(ctx *Context, args *LookupCustomHostnameFallbackOriginOutputArgs, opts ...InvokeOption) LookupCustomHostnameFallbackOriginResultOutput

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

    public static class GetCustomHostnameFallbackOrigin 
    {
        public static Task<GetCustomHostnameFallbackOriginResult> InvokeAsync(GetCustomHostnameFallbackOriginArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomHostnameFallbackOriginResult> Invoke(GetCustomHostnameFallbackOriginInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomHostnameFallbackOriginResult> getCustomHostnameFallbackOrigin(GetCustomHostnameFallbackOriginArgs args, InvokeOptions options)
    public static Output<GetCustomHostnameFallbackOriginResult> getCustomHostnameFallbackOrigin(GetCustomHostnameFallbackOriginArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getCustomHostnameFallbackOrigin:getCustomHostnameFallbackOrigin
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneId string
    Identifier
    ZoneId string
    Identifier
    zoneId String
    Identifier
    zoneId string
    Identifier
    zone_id str
    Identifier
    zoneId String
    Identifier

    getCustomHostnameFallbackOrigin Result

    The following output properties are available:

    CreatedAt string
    This is the time the fallback origin was created.
    Errors List<string>
    These are errors that were encountered while trying to activate a fallback origin.
    Id string
    The provider-assigned unique ID for this managed resource.
    Origin string
    Your origin hostname that requests to your custom hostnames will be sent to.
    Status string
    Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".
    UpdatedAt string
    This is the time the fallback origin was updated.
    ZoneId string
    Identifier
    CreatedAt string
    This is the time the fallback origin was created.
    Errors []string
    These are errors that were encountered while trying to activate a fallback origin.
    Id string
    The provider-assigned unique ID for this managed resource.
    Origin string
    Your origin hostname that requests to your custom hostnames will be sent to.
    Status string
    Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".
    UpdatedAt string
    This is the time the fallback origin was updated.
    ZoneId string
    Identifier
    createdAt String
    This is the time the fallback origin was created.
    errors List<String>
    These are errors that were encountered while trying to activate a fallback origin.
    id String
    The provider-assigned unique ID for this managed resource.
    origin String
    Your origin hostname that requests to your custom hostnames will be sent to.
    status String
    Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".
    updatedAt String
    This is the time the fallback origin was updated.
    zoneId String
    Identifier
    createdAt string
    This is the time the fallback origin was created.
    errors string[]
    These are errors that were encountered while trying to activate a fallback origin.
    id string
    The provider-assigned unique ID for this managed resource.
    origin string
    Your origin hostname that requests to your custom hostnames will be sent to.
    status string
    Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".
    updatedAt string
    This is the time the fallback origin was updated.
    zoneId string
    Identifier
    created_at str
    This is the time the fallback origin was created.
    errors Sequence[str]
    These are errors that were encountered while trying to activate a fallback origin.
    id str
    The provider-assigned unique ID for this managed resource.
    origin str
    Your origin hostname that requests to your custom hostnames will be sent to.
    status str
    Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".
    updated_at str
    This is the time the fallback origin was updated.
    zone_id str
    Identifier
    createdAt String
    This is the time the fallback origin was created.
    errors List<String>
    These are errors that were encountered while trying to activate a fallback origin.
    id String
    The provider-assigned unique ID for this managed resource.
    origin String
    Your origin hostname that requests to your custom hostnames will be sent to.
    status String
    Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".
    updatedAt String
    This is the time the fallback origin was updated.
    zoneId String
    Identifier

    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