Cloudflare v6.1.2 published on Monday, Apr 28, 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",
});
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")
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
})
}
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",
});
});
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());
}
}
variables:
exampleZeroTrustAccessMtlsCertificate:
fn::invoke:
function: cloudflare:getZeroTrustAccessMtlsCertificate
arguments:
certificateId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
accountId: account_id
zoneId: zone_id
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>
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]
func LookupZeroTrustAccessMtlsCertificate(ctx *Context, args *LookupZeroTrustAccessMtlsCertificateArgs, opts ...InvokeOption) (*LookupZeroTrustAccessMtlsCertificateResult, error)
func LookupZeroTrustAccessMtlsCertificateOutput(ctx *Context, args *LookupZeroTrustAccessMtlsCertificateOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessMtlsCertificateResultOutput
> 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)
}
public static CompletableFuture<GetZeroTrustAccessMtlsCertificateResult> getZeroTrustAccessMtlsCertificate(GetZeroTrustAccessMtlsCertificateArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessMtlsCertificateResult> getZeroTrustAccessMtlsCertificate(GetZeroTrustAccessMtlsCertificateArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustAccessMtlsCertificate:getZeroTrustAccessMtlsCertificate
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Certificate
Id string - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Certificate
Id string - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- certificate
Id String - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- certificate
Id string - UUID.
- zone
Id 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.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- certificate
Id String - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
getZeroTrustAccessMtlsCertificate Result
The following output properties are available:
- Associated
Hostnames List<string> - The hostnames of the applications that will use this certificate.
- Created
At string - Expires
On string - Fingerprint string
- The MD5 fingerprint of the certificate.
- Id string
- UUID.
- Name string
- The name of the certificate.
- Updated
At string - Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Certificate
Id string - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Associated
Hostnames []string - The hostnames of the applications that will use this certificate.
- Created
At string - Expires
On string - Fingerprint string
- The MD5 fingerprint of the certificate.
- Id string
- UUID.
- Name string
- The name of the certificate.
- Updated
At string - Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Certificate
Id string - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- associated
Hostnames List<String> - The hostnames of the applications that will use this certificate.
- created
At String - expires
On String - fingerprint String
- The MD5 fingerprint of the certificate.
- id String
- UUID.
- name String
- The name of the certificate.
- updated
At String - account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- certificate
Id String - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- associated
Hostnames string[] - The hostnames of the applications that will use this certificate.
- created
At string - expires
On string - fingerprint string
- The MD5 fingerprint of the certificate.
- id string
- UUID.
- name string
- The name of the certificate.
- updated
At string - account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- certificate
Id string - UUID.
- zone
Id 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.
- associated
Hostnames List<String> - The hostnames of the applications that will use this certificate.
- created
At String - expires
On String - fingerprint String
- The MD5 fingerprint of the certificate.
- id String
- UUID.
- name String
- The name of the certificate.
- updated
At String - account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- certificate
Id String - UUID.
- zone
Id 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.