1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getCustomCsrs
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Accepted Permissions

    • Account: SSL and Certificates Read
    • Account: SSL and Certificates Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleCustomCsrs = cloudflare.getCustomCsrs({
        accountId: "account_id",
        zoneId: "zone_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_custom_csrs = cloudflare.get_custom_csrs(account_id="account_id",
        zone_id="zone_id")
    
    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.GetCustomCsrs(ctx, &cloudflare.LookupCustomCsrsArgs{
    			AccountId: pulumi.StringRef("account_id"),
    			ZoneId:    pulumi.StringRef("zone_id"),
    		}, 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 exampleCustomCsrs = Cloudflare.GetCustomCsrs.Invoke(new()
        {
            AccountId = "account_id",
            ZoneId = "zone_id",
        });
    
    });
    
    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.GetCustomCsrsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleCustomCsrs = CloudflareFunctions.getCustomCsrs(GetCustomCsrsArgs.builder()
                .accountId("account_id")
                .zoneId("zone_id")
                .build());
    
        }
    }
    
    variables:
      exampleCustomCsrs:
        fn::invoke:
          function: cloudflare:getCustomCsrs
          arguments:
            accountId: account_id
            zoneId: zone_id
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getcustomcsrs" "exampleCustomCsrs" {
      account_id = "account_id"
      zone_id    = "zone_id"
    }
    

    Using getCustomCsrs

    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 getCustomCsrs(args: GetCustomCsrsArgs, opts?: InvokeOptions): Promise<GetCustomCsrsResult>
    function getCustomCsrsOutput(args: GetCustomCsrsOutputArgs, opts?: InvokeOptions): Output<GetCustomCsrsResult>
    def get_custom_csrs(account_id: Optional[str] = None,
                        max_items: Optional[int] = None,
                        zone_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCustomCsrsResult
    def get_custom_csrs_output(account_id: pulumi.Input[Optional[str]] = None,
                        max_items: pulumi.Input[Optional[int]] = None,
                        zone_id: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCustomCsrsResult]
    func LookupCustomCsrs(ctx *Context, args *LookupCustomCsrsArgs, opts ...InvokeOption) (*LookupCustomCsrsResult, error)
    func LookupCustomCsrsOutput(ctx *Context, args *LookupCustomCsrsOutputArgs, opts ...InvokeOption) LookupCustomCsrsResultOutput

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

    public static class GetCustomCsrs 
    {
        public static Task<GetCustomCsrsResult> InvokeAsync(GetCustomCsrsArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomCsrsResult> Invoke(GetCustomCsrsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomCsrsResult> getCustomCsrs(GetCustomCsrsArgs args, InvokeOptions options)
    public static Output<GetCustomCsrsResult> getCustomCsrs(GetCustomCsrsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getCustomCsrs:getCustomCsrs
      arguments:
        # arguments dictionary
    data "cloudflare_get_custom_csrs" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    account_id string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    max_items number
    Max items to fetch, default: 1000
    zone_id string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    maxItems Integer
    Max items to fetch, default: 1000
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    maxItems number
    Max items to fetch, default: 1000
    zoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    account_id str
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    max_items int
    Max items to fetch, default: 1000
    zone_id str
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    maxItems Number
    Max items to fetch, default: 1000
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

    getCustomCsrs Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetCustomCsrsResult>
    The items returned by the data source
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetCustomCsrsResult
    The items returned by the data source
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    id string
    The provider-assigned unique ID for this managed resource.
    results list(object)
    The items returned by the data source
    account_id string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    max_items number
    Max items to fetch, default: 1000
    zone_id string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetCustomCsrsResult>
    The items returned by the data source
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    maxItems Integer
    Max items to fetch, default: 1000
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetCustomCsrsResult[]
    The items returned by the data source
    accountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    maxItems number
    Max items to fetch, default: 1000
    zoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetCustomCsrsResult]
    The items returned by the data source
    account_id str
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    max_items int
    Max items to fetch, default: 1000
    zone_id str
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    maxItems Number
    Max items to fetch, default: 1000
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

    Supporting Types

    GetCustomCsrsResult

    AccountTag string
    Account identifier associated with this CSR.
    CommonName string
    The common name (domain) for the CSR.
    Country string
    Two-letter ISO 3166-1 alpha-2 country code.
    CreatedAt string
    When the CSR was created.
    Csr string
    The PEM-encoded Certificate Signing Request.
    Description string
    Optional description for the CSR.
    Id string
    Custom CSR identifier tag.
    KeyType string
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    Locality string
    City or locality name.
    Name string
    Human-readable name for the CSR.
    Organization string
    Organization name.
    OrganizationalUnit string
    Organizational unit name.
    Sans List<string>
    Subject Alternative Names included in the CSR.
    State string
    State or province name.
    AccountTag string
    Account identifier associated with this CSR.
    CommonName string
    The common name (domain) for the CSR.
    Country string
    Two-letter ISO 3166-1 alpha-2 country code.
    CreatedAt string
    When the CSR was created.
    Csr string
    The PEM-encoded Certificate Signing Request.
    Description string
    Optional description for the CSR.
    Id string
    Custom CSR identifier tag.
    KeyType string
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    Locality string
    City or locality name.
    Name string
    Human-readable name for the CSR.
    Organization string
    Organization name.
    OrganizationalUnit string
    Organizational unit name.
    Sans []string
    Subject Alternative Names included in the CSR.
    State string
    State or province name.
    account_tag string
    Account identifier associated with this CSR.
    common_name string
    The common name (domain) for the CSR.
    country string
    Two-letter ISO 3166-1 alpha-2 country code.
    created_at string
    When the CSR was created.
    csr string
    The PEM-encoded Certificate Signing Request.
    description string
    Optional description for the CSR.
    id string
    Custom CSR identifier tag.
    key_type string
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    locality string
    City or locality name.
    name string
    Human-readable name for the CSR.
    organization string
    Organization name.
    organizational_unit string
    Organizational unit name.
    sans list(string)
    Subject Alternative Names included in the CSR.
    state string
    State or province name.
    accountTag String
    Account identifier associated with this CSR.
    commonName String
    The common name (domain) for the CSR.
    country String
    Two-letter ISO 3166-1 alpha-2 country code.
    createdAt String
    When the CSR was created.
    csr String
    The PEM-encoded Certificate Signing Request.
    description String
    Optional description for the CSR.
    id String
    Custom CSR identifier tag.
    keyType String
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    locality String
    City or locality name.
    name String
    Human-readable name for the CSR.
    organization String
    Organization name.
    organizationalUnit String
    Organizational unit name.
    sans List<String>
    Subject Alternative Names included in the CSR.
    state String
    State or province name.
    accountTag string
    Account identifier associated with this CSR.
    commonName string
    The common name (domain) for the CSR.
    country string
    Two-letter ISO 3166-1 alpha-2 country code.
    createdAt string
    When the CSR was created.
    csr string
    The PEM-encoded Certificate Signing Request.
    description string
    Optional description for the CSR.
    id string
    Custom CSR identifier tag.
    keyType string
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    locality string
    City or locality name.
    name string
    Human-readable name for the CSR.
    organization string
    Organization name.
    organizationalUnit string
    Organizational unit name.
    sans string[]
    Subject Alternative Names included in the CSR.
    state string
    State or province name.
    account_tag str
    Account identifier associated with this CSR.
    common_name str
    The common name (domain) for the CSR.
    country str
    Two-letter ISO 3166-1 alpha-2 country code.
    created_at str
    When the CSR was created.
    csr str
    The PEM-encoded Certificate Signing Request.
    description str
    Optional description for the CSR.
    id str
    Custom CSR identifier tag.
    key_type str
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    locality str
    City or locality name.
    name str
    Human-readable name for the CSR.
    organization str
    Organization name.
    organizational_unit str
    Organizational unit name.
    sans Sequence[str]
    Subject Alternative Names included in the CSR.
    state str
    State or province name.
    accountTag String
    Account identifier associated with this CSR.
    commonName String
    The common name (domain) for the CSR.
    country String
    Two-letter ISO 3166-1 alpha-2 country code.
    createdAt String
    When the CSR was created.
    csr String
    The PEM-encoded Certificate Signing Request.
    description String
    Optional description for the CSR.
    id String
    Custom CSR identifier tag.
    keyType String
    The key algorithm used to generate the CSR. Available values: "rsa2048", "p256v1".
    locality String
    City or locality name.
    name String
    Human-readable name for the CSR.
    organization String
    Organization name.
    organizationalUnit String
    Organizational unit name.
    sans List<String>
    Subject Alternative Names included in the CSR.
    state String
    State or province name.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial