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

cloudflare.getZeroTrustGatewayCertificate

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 = cloudflare.getZeroTrustGatewayCertificate({
        accountId: "699d98642c564d2e855e9661899b7252",
        certificateId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_gateway_certificate = cloudflare.get_zero_trust_gateway_certificate(account_id="699d98642c564d2e855e9661899b7252",
        certificate_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
    
    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.LookupZeroTrustGatewayCertificate(ctx, &cloudflare.LookupZeroTrustGatewayCertificateArgs{
    			AccountId:     "699d98642c564d2e855e9661899b7252",
    			CertificateId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
    		}, 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 exampleZeroTrustGatewayCertificate = Cloudflare.GetZeroTrustGatewayCertificate.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            CertificateId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        });
    
    });
    
    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.GetZeroTrustGatewayCertificateArgs;
    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 exampleZeroTrustGatewayCertificate = CloudflareFunctions.getZeroTrustGatewayCertificate(GetZeroTrustGatewayCertificateArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .certificateId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustGatewayCertificate:
        fn::invoke:
          function: cloudflare:getZeroTrustGatewayCertificate
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
            certificateId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
    

    Using getZeroTrustGatewayCertificate

    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 getZeroTrustGatewayCertificate(args: GetZeroTrustGatewayCertificateArgs, opts?: InvokeOptions): Promise<GetZeroTrustGatewayCertificateResult>
    function getZeroTrustGatewayCertificateOutput(args: GetZeroTrustGatewayCertificateOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustGatewayCertificateResult>
    def get_zero_trust_gateway_certificate(account_id: Optional[str] = None,
                                           certificate_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetZeroTrustGatewayCertificateResult
    def get_zero_trust_gateway_certificate_output(account_id: Optional[pulumi.Input[str]] = None,
                                           certificate_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustGatewayCertificateResult]
    func LookupZeroTrustGatewayCertificate(ctx *Context, args *LookupZeroTrustGatewayCertificateArgs, opts ...InvokeOption) (*LookupZeroTrustGatewayCertificateResult, error)
    func LookupZeroTrustGatewayCertificateOutput(ctx *Context, args *LookupZeroTrustGatewayCertificateOutputArgs, opts ...InvokeOption) LookupZeroTrustGatewayCertificateResultOutput

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

    public static class GetZeroTrustGatewayCertificate 
    {
        public static Task<GetZeroTrustGatewayCertificateResult> InvokeAsync(GetZeroTrustGatewayCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustGatewayCertificateResult> Invoke(GetZeroTrustGatewayCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustGatewayCertificateResult> getZeroTrustGatewayCertificate(GetZeroTrustGatewayCertificateArgs args, InvokeOptions options)
    public static Output<GetZeroTrustGatewayCertificateResult> getZeroTrustGatewayCertificate(GetZeroTrustGatewayCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustGatewayCertificate:getZeroTrustGatewayCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    CertificateId string
    Certificate UUID tag.
    AccountId string
    CertificateId string
    Certificate UUID tag.
    accountId String
    certificateId String
    Certificate UUID tag.
    accountId string
    certificateId string
    Certificate UUID tag.
    account_id str
    certificate_id str
    Certificate UUID tag.
    accountId String
    certificateId String
    Certificate UUID tag.

    getZeroTrustGatewayCertificate Result

    The following output properties are available:

    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.
    Id string
    Certificate UUID tag.
    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
    CertificateId string
    Certificate UUID tag.
    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.
    Id string
    Certificate UUID tag.
    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
    CertificateId string
    Certificate UUID tag.
    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.
    id String
    Certificate UUID tag.
    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
    certificateId String
    Certificate UUID tag.
    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.
    id string
    Certificate UUID tag.
    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
    certificateId string
    Certificate UUID tag.
    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.
    id str
    Certificate UUID tag.
    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
    certificate_id str
    Certificate UUID tag.
    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.
    id String
    Certificate UUID tag.
    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
    certificateId String
    Certificate UUID tag.

    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