Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
Viewing docs for Cloudflare v6.14.0
published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleClientCertificate = cloudflare.getClientCertificate({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
clientCertificateId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_client_certificate = cloudflare.get_client_certificate(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
client_certificate_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.LookupClientCertificate(ctx, &cloudflare.LookupClientCertificateArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
ClientCertificateId: pulumi.StringRef("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 exampleClientCertificate = Cloudflare.GetClientCertificate.Invoke(new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
ClientCertificateId = "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.GetClientCertificateArgs;
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 exampleClientCertificate = CloudflareFunctions.getClientCertificate(GetClientCertificateArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.clientCertificateId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleClientCertificate:
fn::invoke:
function: cloudflare:getClientCertificate
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
clientCertificateId: 023e105f4ecef8ad9ca31a8372d0c353
Using getClientCertificate
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 getClientCertificate(args: GetClientCertificateArgs, opts?: InvokeOptions): Promise<GetClientCertificateResult>
function getClientCertificateOutput(args: GetClientCertificateOutputArgs, opts?: InvokeOptions): Output<GetClientCertificateResult>def get_client_certificate(client_certificate_id: Optional[str] = None,
filter: Optional[GetClientCertificateFilter] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClientCertificateResult
def get_client_certificate_output(client_certificate_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetClientCertificateFilterArgs]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClientCertificateResult]func LookupClientCertificate(ctx *Context, args *LookupClientCertificateArgs, opts ...InvokeOption) (*LookupClientCertificateResult, error)
func LookupClientCertificateOutput(ctx *Context, args *LookupClientCertificateOutputArgs, opts ...InvokeOption) LookupClientCertificateResultOutput> Note: This function is named LookupClientCertificate in the Go SDK.
public static class GetClientCertificate
{
public static Task<GetClientCertificateResult> InvokeAsync(GetClientCertificateArgs args, InvokeOptions? opts = null)
public static Output<GetClientCertificateResult> Invoke(GetClientCertificateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClientCertificateResult> getClientCertificate(GetClientCertificateArgs args, InvokeOptions options)
public static Output<GetClientCertificateResult> getClientCertificate(GetClientCertificateArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getClientCertificate:getClientCertificate
arguments:
# arguments dictionaryThe following arguments are supported:
- Zone
Id string - Identifier.
- Client
Certificate stringId - Identifier.
- Filter
Get
Client Certificate Filter
- Zone
Id string - Identifier.
- Client
Certificate stringId - Identifier.
- Filter
Get
Client Certificate Filter
- zone
Id String - Identifier.
- client
Certificate StringId - Identifier.
- filter
Get
Client Certificate Filter
- zone
Id string - Identifier.
- client
Certificate stringId - Identifier.
- filter
Get
Client Certificate Filter
- zone_
id str - Identifier.
- client_
certificate_ strid - Identifier.
- filter
Get
Client Certificate Filter
- zone
Id String - Identifier.
- client
Certificate StringId - Identifier.
- filter Property Map
getClientCertificate Result
The following output properties are available:
- Certificate string
- The Client Certificate PEM
-
Get
Client Certificate Certificate Authority - Certificate Authority used to issue the Client Certificate
- Common
Name string - Common Name of the Client Certificate
- Country string
- Country, provided by the CSR
- Csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- Expires
On string - Date that the Client Certificate expires
- Fingerprint
Sha256 string - Unique identifier of the Client Certificate
- Id string
- Identifier.
- Issued
On string - Date that the Client Certificate was issued by the Certificate Authority
- Location string
- Location, provided by the CSR
- Organization string
- Organization, provided by the CSR
- Organizational
Unit string - Organizational Unit, provided by the CSR
- Serial
Number string - The serial number on the created Client Certificate.
- Signature string
- The type of hash used for the Client Certificate..
- Ski string
- Subject Key Identifier
- State string
- State, provided by the CSR
- Status string
- Client Certificates may be active or revoked, and the pendingreactivation or pendingrevocation represent in-progress asynchronous transitions Available values: "active", "pendingreactivation", "pendingrevocation", "revoked".
- Validity
Days int - The number of days the Client Certificate will be valid after the issuedOn date
- Zone
Id string - Identifier.
- Client
Certificate stringId - Identifier.
- Filter
Get
Client Certificate Filter
- Certificate string
- The Client Certificate PEM
-
Get
Client Certificate Certificate Authority - Certificate Authority used to issue the Client Certificate
- Common
Name string - Common Name of the Client Certificate
- Country string
- Country, provided by the CSR
- Csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- Expires
On string - Date that the Client Certificate expires
- Fingerprint
Sha256 string - Unique identifier of the Client Certificate
- Id string
- Identifier.
- Issued
On string - Date that the Client Certificate was issued by the Certificate Authority
- Location string
- Location, provided by the CSR
- Organization string
- Organization, provided by the CSR
- Organizational
Unit string - Organizational Unit, provided by the CSR
- Serial
Number string - The serial number on the created Client Certificate.
- Signature string
- The type of hash used for the Client Certificate..
- Ski string
- Subject Key Identifier
- State string
- State, provided by the CSR
- Status string
- Client Certificates may be active or revoked, and the pendingreactivation or pendingrevocation represent in-progress asynchronous transitions Available values: "active", "pendingreactivation", "pendingrevocation", "revoked".
- Validity
Days int - The number of days the Client Certificate will be valid after the issuedOn date
- Zone
Id string - Identifier.
- Client
Certificate stringId - Identifier.
- Filter
Get
Client Certificate Filter
- certificate String
- The Client Certificate PEM
-
Get
Client Certificate Certificate Authority - Certificate Authority used to issue the Client Certificate
- common
Name String - Common Name of the Client Certificate
- country String
- Country, provided by the CSR
- csr String
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires
On String - Date that the Client Certificate expires
- fingerprint
Sha256 String - Unique identifier of the Client Certificate
- id String
- Identifier.
- issued
On String - Date that the Client Certificate was issued by the Certificate Authority
- location String
- Location, provided by the CSR
- organization String
- Organization, provided by the CSR
- organizational
Unit String - Organizational Unit, provided by the CSR
- serial
Number String - The serial number on the created Client Certificate.
- signature String
- The type of hash used for the Client Certificate..
- ski String
- Subject Key Identifier
- state String
- State, provided by the CSR
- status String
- Client Certificates may be active or revoked, and the pendingreactivation or pendingrevocation represent in-progress asynchronous transitions Available values: "active", "pendingreactivation", "pendingrevocation", "revoked".
- validity
Days Integer - The number of days the Client Certificate will be valid after the issuedOn date
- zone
Id String - Identifier.
- client
Certificate StringId - Identifier.
- filter
Get
Client Certificate Filter
- certificate string
- The Client Certificate PEM
-
Get
Client Certificate Certificate Authority - Certificate Authority used to issue the Client Certificate
- common
Name string - Common Name of the Client Certificate
- country string
- Country, provided by the CSR
- csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires
On string - Date that the Client Certificate expires
- fingerprint
Sha256 string - Unique identifier of the Client Certificate
- id string
- Identifier.
- issued
On string - Date that the Client Certificate was issued by the Certificate Authority
- location string
- Location, provided by the CSR
- organization string
- Organization, provided by the CSR
- organizational
Unit string - Organizational Unit, provided by the CSR
- serial
Number string - The serial number on the created Client Certificate.
- signature string
- The type of hash used for the Client Certificate..
- ski string
- Subject Key Identifier
- state string
- State, provided by the CSR
- status string
- Client Certificates may be active or revoked, and the pendingreactivation or pendingrevocation represent in-progress asynchronous transitions Available values: "active", "pendingreactivation", "pendingrevocation", "revoked".
- validity
Days number - The number of days the Client Certificate will be valid after the issuedOn date
- zone
Id string - Identifier.
- client
Certificate stringId - Identifier.
- filter
Get
Client Certificate Filter
- certificate str
- The Client Certificate PEM
-
Get
Client Certificate Certificate Authority - Certificate Authority used to issue the Client Certificate
- common_
name str - Common Name of the Client Certificate
- country str
- Country, provided by the CSR
- csr str
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires_
on str - Date that the Client Certificate expires
- fingerprint_
sha256 str - Unique identifier of the Client Certificate
- id str
- Identifier.
- issued_
on str - Date that the Client Certificate was issued by the Certificate Authority
- location str
- Location, provided by the CSR
- organization str
- Organization, provided by the CSR
- organizational_
unit str - Organizational Unit, provided by the CSR
- serial_
number str - The serial number on the created Client Certificate.
- signature str
- The type of hash used for the Client Certificate..
- ski str
- Subject Key Identifier
- state str
- State, provided by the CSR
- status str
- Client Certificates may be active or revoked, and the pendingreactivation or pendingrevocation represent in-progress asynchronous transitions Available values: "active", "pendingreactivation", "pendingrevocation", "revoked".
- validity_
days int - The number of days the Client Certificate will be valid after the issuedOn date
- zone_
id str - Identifier.
- client_
certificate_ strid - Identifier.
- filter
Get
Client Certificate Filter
- certificate String
- The Client Certificate PEM
- Property Map
- Certificate Authority used to issue the Client Certificate
- common
Name String - Common Name of the Client Certificate
- country String
- Country, provided by the CSR
- csr String
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires
On String - Date that the Client Certificate expires
- fingerprint
Sha256 String - Unique identifier of the Client Certificate
- id String
- Identifier.
- issued
On String - Date that the Client Certificate was issued by the Certificate Authority
- location String
- Location, provided by the CSR
- organization String
- Organization, provided by the CSR
- organizational
Unit String - Organizational Unit, provided by the CSR
- serial
Number String - The serial number on the created Client Certificate.
- signature String
- The type of hash used for the Client Certificate..
- ski String
- Subject Key Identifier
- state String
- State, provided by the CSR
- status String
- Client Certificates may be active or revoked, and the pendingreactivation or pendingrevocation represent in-progress asynchronous transitions Available values: "active", "pendingreactivation", "pendingrevocation", "revoked".
- validity
Days Number - The number of days the Client Certificate will be valid after the issuedOn date
- zone
Id String - Identifier.
- client
Certificate StringId - Identifier.
- filter Property Map
Supporting Types
GetClientCertificateCertificateAuthority
GetClientCertificateFilter
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.14.0
published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
