Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 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",
});
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")
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
})
}
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",
});
});
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());
}
}
variables:
exampleR2CustomDomain:
fn::invoke:
function: cloudflare:getR2CustomDomain
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
domain: example-domain/custom-domain.com
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>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]func LookupR2CustomDomain(ctx *Context, args *LookupR2CustomDomainArgs, opts ...InvokeOption) (*LookupR2CustomDomainResult, error)
func LookupR2CustomDomainOutput(ctx *Context, args *LookupR2CustomDomainOutputArgs, opts ...InvokeOption) LookupR2CustomDomainResultOutput> 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)
}public static CompletableFuture<GetR2CustomDomainResult> getR2CustomDomain(GetR2CustomDomainArgs args, InvokeOptions options)
public static Output<GetR2CustomDomainResult> getR2CustomDomain(GetR2CustomDomainArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getR2CustomDomain:getR2CustomDomain
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Domain string
- Name of the custom domain.
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Domain string
- Name of the custom domain.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- domain String
- Name of the custom domain.
- account
Id string - Account ID.
- bucket
Name string - Name of the bucket.
- domain string
- Name of the custom domain.
- account_
id str - Account ID.
- bucket_
name str - Name of the bucket.
- domain str
- Name of the custom domain.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- domain String
- Name of the custom domain.
getR2CustomDomain Result
The following output properties are available:
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Ciphers List<string>
- An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
- 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.
- Min
Tls 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
Get
R2Custom Domain Status - Zone
Id string - Zone ID of the custom domain resides in.
- Zone
Name string - Zone that the custom domain resides in.
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Ciphers []string
- An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
- 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.
- Min
Tls 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
Get
R2Custom Domain Status - Zone
Id string - Zone ID of the custom domain resides in.
- Zone
Name string - Zone that the custom domain resides in.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- ciphers List<String>
- An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
- 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.
- min
Tls 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
Get
R2Custom Domain Status - zone
Id String - Zone ID of the custom domain resides in.
- zone
Name String - Zone that the custom domain resides in.
- account
Id string - Account ID.
- bucket
Name string - Name of the bucket.
- ciphers string[]
- An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
- 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.
- min
Tls 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
Get
R2Custom Domain Status - zone
Id string - Zone ID of the custom domain resides in.
- zone
Name string - Zone that the custom domain resides in.
- account_
id str - Account ID.
- bucket_
name str - Name of the bucket.
- ciphers Sequence[str]
- An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
- 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
Get
R2Custom Domain Status - zone_
id str - Zone ID of the custom domain resides in.
- zone_
name str - Zone that the custom domain resides in.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- ciphers List<String>
- An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
- 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.
- min
Tls 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
- zone
Id String - Zone ID of the custom domain resides in.
- zone
Name String - Zone that the custom domain resides in.
Supporting Types
GetR2CustomDomainStatus
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
