1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustGatewayCertificate
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.ZeroTrustGatewayCertificate

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    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)
    
    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
    	})
    }
    
    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 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
    

    Create ZeroTrustGatewayCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ZeroTrustGatewayCertificate(name: string, args: ZeroTrustGatewayCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustGatewayCertificate(resource_name: str,
                                    args: ZeroTrustGatewayCertificateArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustGatewayCertificate(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    account_id: Optional[str] = None,
                                    validity_period_days: Optional[int] = None)
    func NewZeroTrustGatewayCertificate(ctx *Context, name string, args ZeroTrustGatewayCertificateArgs, opts ...ResourceOption) (*ZeroTrustGatewayCertificate, error)
    public ZeroTrustGatewayCertificate(string name, ZeroTrustGatewayCertificateArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustGatewayCertificate(String name, ZeroTrustGatewayCertificateArgs args)
    public ZeroTrustGatewayCertificate(String name, ZeroTrustGatewayCertificateArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustGatewayCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ZeroTrustGatewayCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ZeroTrustGatewayCertificateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ZeroTrustGatewayCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustGatewayCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustGatewayCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var zeroTrustGatewayCertificateResource = new Cloudflare.ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource", new()
    {
        AccountId = "string",
        ValidityPeriodDays = 0,
    });
    
    example, err := cloudflare.NewZeroTrustGatewayCertificate(ctx, "zeroTrustGatewayCertificateResource", &cloudflare.ZeroTrustGatewayCertificateArgs{
    	AccountId:          pulumi.String("string"),
    	ValidityPeriodDays: pulumi.Int(0),
    })
    
    var zeroTrustGatewayCertificateResource = new ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource", ZeroTrustGatewayCertificateArgs.builder()
        .accountId("string")
        .validityPeriodDays(0)
        .build());
    
    zero_trust_gateway_certificate_resource = cloudflare.ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource",
        account_id="string",
        validity_period_days=0)
    
    const zeroTrustGatewayCertificateResource = new cloudflare.ZeroTrustGatewayCertificate("zeroTrustGatewayCertificateResource", {
        accountId: "string",
        validityPeriodDays: 0,
    });
    
    type: cloudflare:ZeroTrustGatewayCertificate
    properties:
        accountId: string
        validityPeriodDays: 0
    

    ZeroTrustGatewayCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ZeroTrustGatewayCertificate resource accepts the following input properties:

    AccountId string
    ValidityPeriodDays int
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    AccountId string
    ValidityPeriodDays int
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    accountId String
    validityPeriodDays Integer
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    accountId string
    validityPeriodDays number
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    account_id str
    validity_period_days int
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    accountId String
    validityPeriodDays Number
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ZeroTrustGatewayCertificate resource produces the following output properties:

    BindingStatus 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".
    Certificate string
    The CA certificate
    CreatedAt string
    ExpiresOn string
    Fingerprint string
    The SHA256 fingerprint of the certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    InUse bool
    Use this certificate for Gateway TLS interception
    IssuerOrg string
    The organization that issued the certificate.
    IssuerRaw string
    The entire issuer field of the certificate.
    Type string
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    UpdatedAt string
    UploadedOn string
    BindingStatus 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".
    Certificate string
    The CA certificate
    CreatedAt string
    ExpiresOn string
    Fingerprint string
    The SHA256 fingerprint of the certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    InUse bool
    Use this certificate for Gateway TLS interception
    IssuerOrg string
    The organization that issued the certificate.
    IssuerRaw string
    The entire issuer field of the certificate.
    Type string
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    UpdatedAt string
    UploadedOn string
    bindingStatus 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".
    certificate String
    The CA certificate
    createdAt String
    expiresOn String
    fingerprint String
    The SHA256 fingerprint of the certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    inUse Boolean
    Use this certificate for Gateway TLS interception
    issuerOrg String
    The organization that issued the certificate.
    issuerRaw String
    The entire issuer field of the certificate.
    type String
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updatedAt String
    uploadedOn String
    bindingStatus 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".
    certificate string
    The CA certificate
    createdAt string
    expiresOn string
    fingerprint string
    The SHA256 fingerprint of the certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    inUse boolean
    Use this certificate for Gateway TLS interception
    issuerOrg string
    The organization that issued the certificate.
    issuerRaw string
    The entire issuer field of the certificate.
    type string
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updatedAt string
    uploadedOn string
    binding_status str
    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".
    certificate str
    The CA certificate
    created_at str
    expires_on str
    fingerprint str
    The SHA256 fingerprint of the certificate.
    id str
    The provider-assigned unique ID for this managed resource.
    in_use bool
    Use this certificate for Gateway TLS interception
    issuer_org str
    The organization that issued the certificate.
    issuer_raw str
    The entire issuer field of the certificate.
    type str
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updated_at str
    uploaded_on str
    bindingStatus 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".
    certificate String
    The CA certificate
    createdAt String
    expiresOn String
    fingerprint String
    The SHA256 fingerprint of the certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    inUse Boolean
    Use this certificate for Gateway TLS interception
    issuerOrg String
    The organization that issued the certificate.
    issuerRaw String
    The entire issuer field of the certificate.
    type String
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updatedAt String
    uploadedOn String

    Look up Existing ZeroTrustGatewayCertificate Resource

    Get an existing ZeroTrustGatewayCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ZeroTrustGatewayCertificateState, opts?: CustomResourceOptions): ZeroTrustGatewayCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            binding_status: Optional[str] = None,
            certificate: Optional[str] = None,
            created_at: Optional[str] = None,
            expires_on: Optional[str] = None,
            fingerprint: Optional[str] = None,
            in_use: Optional[bool] = None,
            issuer_org: Optional[str] = None,
            issuer_raw: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None,
            uploaded_on: Optional[str] = None,
            validity_period_days: Optional[int] = None) -> ZeroTrustGatewayCertificate
    func GetZeroTrustGatewayCertificate(ctx *Context, name string, id IDInput, state *ZeroTrustGatewayCertificateState, opts ...ResourceOption) (*ZeroTrustGatewayCertificate, error)
    public static ZeroTrustGatewayCertificate Get(string name, Input<string> id, ZeroTrustGatewayCertificateState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustGatewayCertificate get(String name, Output<String> id, ZeroTrustGatewayCertificateState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustGatewayCertificate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    BindingStatus 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".
    Certificate string
    The CA certificate
    CreatedAt string
    ExpiresOn string
    Fingerprint string
    The SHA256 fingerprint of the certificate.
    InUse bool
    Use this certificate for Gateway TLS interception
    IssuerOrg string
    The organization that issued the certificate.
    IssuerRaw string
    The entire issuer field of the certificate.
    Type string
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    UpdatedAt string
    UploadedOn string
    ValidityPeriodDays int
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    AccountId string
    BindingStatus 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".
    Certificate string
    The CA certificate
    CreatedAt string
    ExpiresOn string
    Fingerprint string
    The SHA256 fingerprint of the certificate.
    InUse bool
    Use this certificate for Gateway TLS interception
    IssuerOrg string
    The organization that issued the certificate.
    IssuerRaw string
    The entire issuer field of the certificate.
    Type string
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    UpdatedAt string
    UploadedOn string
    ValidityPeriodDays int
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    accountId String
    bindingStatus 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".
    certificate String
    The CA certificate
    createdAt String
    expiresOn String
    fingerprint String
    The SHA256 fingerprint of the certificate.
    inUse Boolean
    Use this certificate for Gateway TLS interception
    issuerOrg String
    The organization that issued the certificate.
    issuerRaw String
    The entire issuer field of the certificate.
    type String
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updatedAt String
    uploadedOn String
    validityPeriodDays Integer
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    accountId string
    bindingStatus 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".
    certificate string
    The CA certificate
    createdAt string
    expiresOn string
    fingerprint string
    The SHA256 fingerprint of the certificate.
    inUse boolean
    Use this certificate for Gateway TLS interception
    issuerOrg string
    The organization that issued the certificate.
    issuerRaw string
    The entire issuer field of the certificate.
    type string
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updatedAt string
    uploadedOn string
    validityPeriodDays number
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    account_id str
    binding_status str
    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".
    certificate str
    The CA certificate
    created_at str
    expires_on str
    fingerprint str
    The SHA256 fingerprint of the certificate.
    in_use bool
    Use this certificate for Gateway TLS interception
    issuer_org str
    The organization that issued the certificate.
    issuer_raw str
    The entire issuer field of the certificate.
    type str
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updated_at str
    uploaded_on str
    validity_period_days int
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.
    accountId String
    bindingStatus 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".
    certificate String
    The CA certificate
    createdAt String
    expiresOn String
    fingerprint String
    The SHA256 fingerprint of the certificate.
    inUse Boolean
    Use this certificate for Gateway TLS interception
    issuerOrg String
    The organization that issued the certificate.
    issuerRaw String
    The entire issuer field of the certificate.
    type String
    The type of certificate, either BYO-PKI (custom) or Gateway-managed. Available values: "custom", "gateway_managed".
    updatedAt String
    uploadedOn String
    validityPeriodDays Number
    Number of days the generated certificate will be valid, minimum 1 day and maximum 30 years. Defaults to 5 years.

    Import

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi