1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustAccessMtlsCertificate
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

cloudflare.getZeroTrustAccessMtlsCertificate

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustAccessMtlsCertificate = cloudflare.getZeroTrustAccessMtlsCertificate({
    certificateId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    accountId: "account_id",
    zoneId: "zone_id",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_access_mtls_certificate = cloudflare.get_zero_trust_access_mtls_certificate(certificate_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    account_id="account_id",
    zone_id="zone_id")
Copy
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.LookupZeroTrustAccessMtlsCertificate(ctx, &cloudflare.LookupZeroTrustAccessMtlsCertificateArgs{
			CertificateId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
			AccountId:     pulumi.StringRef("account_id"),
			ZoneId:        pulumi.StringRef("zone_id"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleZeroTrustAccessMtlsCertificate = Cloudflare.GetZeroTrustAccessMtlsCertificate.Invoke(new()
    {
        CertificateId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        AccountId = "account_id",
        ZoneId = "zone_id",
    });

});
Copy
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.GetZeroTrustAccessMtlsCertificateArgs;
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 exampleZeroTrustAccessMtlsCertificate = CloudflareFunctions.getZeroTrustAccessMtlsCertificate(GetZeroTrustAccessMtlsCertificateArgs.builder()
            .certificateId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
            .accountId("account_id")
            .zoneId("zone_id")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustAccessMtlsCertificate:
    fn::invoke:
      function: cloudflare:getZeroTrustAccessMtlsCertificate
      arguments:
        certificateId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
        accountId: account_id
        zoneId: zone_id
Copy

Using getZeroTrustAccessMtlsCertificate

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 getZeroTrustAccessMtlsCertificate(args: GetZeroTrustAccessMtlsCertificateArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessMtlsCertificateResult>
function getZeroTrustAccessMtlsCertificateOutput(args: GetZeroTrustAccessMtlsCertificateOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessMtlsCertificateResult>
Copy
def get_zero_trust_access_mtls_certificate(account_id: Optional[str] = None,
                                           certificate_id: Optional[str] = None,
                                           zone_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessMtlsCertificateResult
def get_zero_trust_access_mtls_certificate_output(account_id: Optional[pulumi.Input[str]] = None,
                                           certificate_id: Optional[pulumi.Input[str]] = None,
                                           zone_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessMtlsCertificateResult]
Copy
func LookupZeroTrustAccessMtlsCertificate(ctx *Context, args *LookupZeroTrustAccessMtlsCertificateArgs, opts ...InvokeOption) (*LookupZeroTrustAccessMtlsCertificateResult, error)
func LookupZeroTrustAccessMtlsCertificateOutput(ctx *Context, args *LookupZeroTrustAccessMtlsCertificateOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessMtlsCertificateResultOutput
Copy

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

public static class GetZeroTrustAccessMtlsCertificate 
{
    public static Task<GetZeroTrustAccessMtlsCertificateResult> InvokeAsync(GetZeroTrustAccessMtlsCertificateArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustAccessMtlsCertificateResult> Invoke(GetZeroTrustAccessMtlsCertificateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetZeroTrustAccessMtlsCertificateResult> getZeroTrustAccessMtlsCertificate(GetZeroTrustAccessMtlsCertificateArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessMtlsCertificateResult> getZeroTrustAccessMtlsCertificate(GetZeroTrustAccessMtlsCertificateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustAccessMtlsCertificate:getZeroTrustAccessMtlsCertificate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
CertificateId string
UUID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
CertificateId string
UUID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificateId String
UUID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificateId string
UUID.
zoneId 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.
certificate_id str
UUID.
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificateId String
UUID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

getZeroTrustAccessMtlsCertificate Result

The following output properties are available:

AssociatedHostnames List<string>
The hostnames of the applications that will use this certificate.
CreatedAt string
ExpiresOn string
Fingerprint string
The MD5 fingerprint of the certificate.
Id string
UUID.
Name string
The name of the certificate.
UpdatedAt string
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
CertificateId string
UUID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
AssociatedHostnames []string
The hostnames of the applications that will use this certificate.
CreatedAt string
ExpiresOn string
Fingerprint string
The MD5 fingerprint of the certificate.
Id string
UUID.
Name string
The name of the certificate.
UpdatedAt string
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
CertificateId string
UUID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
associatedHostnames List<String>
The hostnames of the applications that will use this certificate.
createdAt String
expiresOn String
fingerprint String
The MD5 fingerprint of the certificate.
id String
UUID.
name String
The name of the certificate.
updatedAt String
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificateId String
UUID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
associatedHostnames string[]
The hostnames of the applications that will use this certificate.
createdAt string
expiresOn string
fingerprint string
The MD5 fingerprint of the certificate.
id string
UUID.
name string
The name of the certificate.
updatedAt string
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificateId string
UUID.
zoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
associated_hostnames Sequence[str]
The hostnames of the applications that will use this certificate.
created_at str
expires_on str
fingerprint str
The MD5 fingerprint of the certificate.
id str
UUID.
name str
The name of the certificate.
updated_at str
account_id str
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificate_id str
UUID.
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
associatedHostnames List<String>
The hostnames of the applications that will use this certificate.
createdAt String
expiresOn String
fingerprint String
The MD5 fingerprint of the certificate.
id String
UUID.
name String
The name of the certificate.
updatedAt String
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
certificateId String
UUID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.