Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
Account: SSL and Certificates ReadAccount: 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 dictionarydata "cloudflare_get_custom_csrs" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
getCustomCsrs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Custom Csrs Result> - 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 int - 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
[]Get
Custom Csrs Result - 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 int - 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(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<Get
Custom Csrs Result> - 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 Integer - 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
Get
Custom Csrs Result[] - 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 str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Custom Csrs Result] - 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
- 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.
Supporting Types
GetCustomCsrsResult
- 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.
- 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 []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.
- 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.
- 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 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.
- 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.
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.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi