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

cloudflare.getR2CustomDomain

Explore with Pulumi AI

Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleR2CustomDomain = cloudflare.getR2CustomDomain({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    bucketName: "example-bucket",
    domain: "example-domain/custom-domain.com",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_r2_custom_domain = cloudflare.get_r2_custom_domain(account_id="023e105f4ecef8ad9ca31a8372d0c353",
    bucket_name="example-bucket",
    domain="example-domain/custom-domain.com")
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.LookupR2CustomDomain(ctx, &cloudflare.LookupR2CustomDomainArgs{
			AccountId:  "023e105f4ecef8ad9ca31a8372d0c353",
			BucketName: "example-bucket",
			Domain:     "example-domain/custom-domain.com",
		}, 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 exampleR2CustomDomain = Cloudflare.GetR2CustomDomain.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        BucketName = "example-bucket",
        Domain = "example-domain/custom-domain.com",
    });

});
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.GetR2CustomDomainArgs;
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 exampleR2CustomDomain = CloudflareFunctions.getR2CustomDomain(GetR2CustomDomainArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .bucketName("example-bucket")
            .domain("example-domain/custom-domain.com")
            .build());

    }
}
Copy
variables:
  exampleR2CustomDomain:
    fn::invoke:
      function: cloudflare:getR2CustomDomain
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        bucketName: example-bucket
        domain: example-domain/custom-domain.com
Copy

Using getR2CustomDomain

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 getR2CustomDomain(args: GetR2CustomDomainArgs, opts?: InvokeOptions): Promise<GetR2CustomDomainResult>
function getR2CustomDomainOutput(args: GetR2CustomDomainOutputArgs, opts?: InvokeOptions): Output<GetR2CustomDomainResult>
Copy
def get_r2_custom_domain(account_id: Optional[str] = None,
                         bucket_name: Optional[str] = None,
                         domain: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetR2CustomDomainResult
def get_r2_custom_domain_output(account_id: Optional[pulumi.Input[str]] = None,
                         bucket_name: Optional[pulumi.Input[str]] = None,
                         domain: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetR2CustomDomainResult]
Copy
func LookupR2CustomDomain(ctx *Context, args *LookupR2CustomDomainArgs, opts ...InvokeOption) (*LookupR2CustomDomainResult, error)
func LookupR2CustomDomainOutput(ctx *Context, args *LookupR2CustomDomainOutputArgs, opts ...InvokeOption) LookupR2CustomDomainResultOutput
Copy

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

public static class GetR2CustomDomain 
{
    public static Task<GetR2CustomDomainResult> InvokeAsync(GetR2CustomDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetR2CustomDomainResult> Invoke(GetR2CustomDomainInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetR2CustomDomainResult> getR2CustomDomain(GetR2CustomDomainArgs args, InvokeOptions options)
public static Output<GetR2CustomDomainResult> getR2CustomDomain(GetR2CustomDomainArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getR2CustomDomain:getR2CustomDomain
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Account ID
BucketName This property is required. string
Name of the bucket
Domain This property is required. string
Name of the custom domain
AccountId This property is required. string
Account ID
BucketName This property is required. string
Name of the bucket
Domain This property is required. string
Name of the custom domain
accountId This property is required. String
Account ID
bucketName This property is required. String
Name of the bucket
domain This property is required. String
Name of the custom domain
accountId This property is required. string
Account ID
bucketName This property is required. string
Name of the bucket
domain This property is required. string
Name of the custom domain
account_id This property is required. str
Account ID
bucket_name This property is required. str
Name of the bucket
domain This property is required. str
Name of the custom domain
accountId This property is required. String
Account ID
bucketName This property is required. String
Name of the bucket
domain This property is required. String
Name of the custom domain

getR2CustomDomain Result

The following output properties are available:

AccountId string
Account ID
BucketName string
Name of the bucket
Domain string
Name of the custom domain
Enabled bool
Whether this bucket is publicly accessible at the specified custom domain
Id string
The provider-assigned unique ID for this managed resource.
MinTls string
Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".
Status GetR2CustomDomainStatus
ZoneId string
Zone ID of the custom domain resides in
ZoneName string
Zone that the custom domain resides in
AccountId string
Account ID
BucketName string
Name of the bucket
Domain string
Name of the custom domain
Enabled bool
Whether this bucket is publicly accessible at the specified custom domain
Id string
The provider-assigned unique ID for this managed resource.
MinTls string
Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".
Status GetR2CustomDomainStatus
ZoneId string
Zone ID of the custom domain resides in
ZoneName string
Zone that the custom domain resides in
accountId String
Account ID
bucketName String
Name of the bucket
domain String
Name of the custom domain
enabled Boolean
Whether this bucket is publicly accessible at the specified custom domain
id String
The provider-assigned unique ID for this managed resource.
minTls String
Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".
status GetR2CustomDomainStatus
zoneId String
Zone ID of the custom domain resides in
zoneName String
Zone that the custom domain resides in
accountId string
Account ID
bucketName string
Name of the bucket
domain string
Name of the custom domain
enabled boolean
Whether this bucket is publicly accessible at the specified custom domain
id string
The provider-assigned unique ID for this managed resource.
minTls string
Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".
status GetR2CustomDomainStatus
zoneId string
Zone ID of the custom domain resides in
zoneName string
Zone that the custom domain resides in
account_id str
Account ID
bucket_name str
Name of the bucket
domain str
Name of the custom domain
enabled bool
Whether this bucket is publicly accessible at the specified custom domain
id str
The provider-assigned unique ID for this managed resource.
min_tls str
Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".
status GetR2CustomDomainStatus
zone_id str
Zone ID of the custom domain resides in
zone_name str
Zone that the custom domain resides in
accountId String
Account ID
bucketName String
Name of the bucket
domain String
Name of the custom domain
enabled Boolean
Whether this bucket is publicly accessible at the specified custom domain
id String
The provider-assigned unique ID for this managed resource.
minTls String
Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".
status Property Map
zoneId String
Zone ID of the custom domain resides in
zoneName String
Zone that the custom domain resides in

Supporting Types

GetR2CustomDomainStatus

Ownership This property is required. string
Ownership status of the domain Available values: "pending", "active", "deactivated", "blocked", "error", "unknown".
Ssl This property is required. string
SSL certificate status Available values: "initializing", "pending", "active", "deactivated", "error", "unknown".
Ownership This property is required. string
Ownership status of the domain Available values: "pending", "active", "deactivated", "blocked", "error", "unknown".
Ssl This property is required. string
SSL certificate status Available values: "initializing", "pending", "active", "deactivated", "error", "unknown".
ownership This property is required. String
Ownership status of the domain Available values: "pending", "active", "deactivated", "blocked", "error", "unknown".
ssl This property is required. String
SSL certificate status Available values: "initializing", "pending", "active", "deactivated", "error", "unknown".
ownership This property is required. string
Ownership status of the domain Available values: "pending", "active", "deactivated", "blocked", "error", "unknown".
ssl This property is required. string
SSL certificate status Available values: "initializing", "pending", "active", "deactivated", "error", "unknown".
ownership This property is required. str
Ownership status of the domain Available values: "pending", "active", "deactivated", "blocked", "error", "unknown".
ssl This property is required. str
SSL certificate status Available values: "initializing", "pending", "active", "deactivated", "error", "unknown".
ownership This property is required. String
Ownership status of the domain Available values: "pending", "active", "deactivated", "blocked", "error", "unknown".
ssl This property is required. String
SSL certificate status Available values: "initializing", "pending", "active", "deactivated", "error", "unknown".

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi