ZeroTrustGatewayCertificate

class ZeroTrustGatewayCertificate : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustGatewayCertificate = new cloudflare.ZeroTrustGatewayCertificate("example_zero_trust_gateway_certificate", {
accountId: "699d98642c564d2e855e9661899b7252",
validityPeriodDays: 1826,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_gateway_certificate = cloudflare.ZeroTrustGatewayCertificate("example_zero_trust_gateway_certificate",
account_id="699d98642c564d2e855e9661899b7252",
validity_period_days=1826)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustGatewayCertificate = new Cloudflare.ZeroTrustGatewayCertificate("example_zero_trust_gateway_certificate", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
ValidityPeriodDays = 1826,
});
});
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.NewZeroTrustGatewayCertificate(ctx, "example_zero_trust_gateway_certificate", &cloudflare.ZeroTrustGatewayCertificateArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
ValidityPeriodDays: pulumi.Int(1826),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustGatewayCertificate;
import com.pulumi.cloudflare.ZeroTrustGatewayCertificateArgs;
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) {
var exampleZeroTrustGatewayCertificate = new ZeroTrustGatewayCertificate("exampleZeroTrustGatewayCertificate", ZeroTrustGatewayCertificateArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.validityPeriodDays(1826)
.build());
}
}
resources:
exampleZeroTrustGatewayCertificate:
type: cloudflare:ZeroTrustGatewayCertificate
name: example_zero_trust_gateway_certificate
properties:
accountId: 699d98642c564d2e855e9661899b7252
validityPeriodDays: 1826

Import

$ pulumi import cloudflare:index/zeroTrustGatewayCertificate:ZeroTrustGatewayCertificate example '<account_id>/<certificate_id>'

Properties

Link copied to clipboard
val accountId: Output<String>
Link copied to clipboard
val bindingStatus: Output<String>

The deployment status of the certificate on Cloudflare's edge. Certificates in the 'available' (previously called 'active') state may be used for Gateway TLS interception. Available values: "pendingdeployment", "available", "pendingdeletion", "inactive".

Link copied to clipboard
val certificate: Output<String>

The CA certificate

Link copied to clipboard
val createdAt: Output<String>
Link copied to clipboard
val expiresOn: Output<String>
Link copied to clipboard
val fingerprint: Output<String>

The SHA256 fingerprint of the certificate.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val inUse: Output<Boolean>

Use this certificate for Gateway TLS interception

Link copied to clipboard
val issuerOrg: Output<String>

The organization that issued the certificate.

Link copied to clipboard
val issuerRaw: Output<String>

The entire issuer field of the certificate.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".

Link copied to clipboard
val updatedAt: Output<String>
Link copied to clipboard
val uploadedOn: Output<String>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val validityPeriodDays: Output<Int>?

Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.