1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustAccessMtlsCertificates
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getZeroTrustAccessMtlsCertificates

Explore with Pulumi AI

Example Usage

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

const exampleZeroTrustAccessMtlsCertificates = cloudflare.getZeroTrustAccessMtlsCertificates({
    accountId: "account_id",
    zoneId: "zone_id",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_access_mtls_certificates = cloudflare.get_zero_trust_access_mtls_certificates(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.LookupZeroTrustAccessMtlsCertificates(ctx, &cloudflare.LookupZeroTrustAccessMtlsCertificatesArgs{
			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 exampleZeroTrustAccessMtlsCertificates = Cloudflare.GetZeroTrustAccessMtlsCertificates.Invoke(new()
    {
        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.GetZeroTrustAccessMtlsCertificatesArgs;
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 exampleZeroTrustAccessMtlsCertificates = CloudflareFunctions.getZeroTrustAccessMtlsCertificates(GetZeroTrustAccessMtlsCertificatesArgs.builder()
            .accountId("account_id")
            .zoneId("zone_id")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustAccessMtlsCertificates:
    fn::invoke:
      function: cloudflare:getZeroTrustAccessMtlsCertificates
      arguments:
        accountId: account_id
        zoneId: zone_id
Copy

Using getZeroTrustAccessMtlsCertificates

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 getZeroTrustAccessMtlsCertificates(args: GetZeroTrustAccessMtlsCertificatesArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessMtlsCertificatesResult>
function getZeroTrustAccessMtlsCertificatesOutput(args: GetZeroTrustAccessMtlsCertificatesOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessMtlsCertificatesResult>
Copy
def get_zero_trust_access_mtls_certificates(account_id: Optional[str] = None,
                                            max_items: Optional[int] = None,
                                            zone_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessMtlsCertificatesResult
def get_zero_trust_access_mtls_certificates_output(account_id: Optional[pulumi.Input[str]] = None,
                                            max_items: Optional[pulumi.Input[int]] = None,
                                            zone_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessMtlsCertificatesResult]
Copy
func LookupZeroTrustAccessMtlsCertificates(ctx *Context, args *LookupZeroTrustAccessMtlsCertificatesArgs, opts ...InvokeOption) (*LookupZeroTrustAccessMtlsCertificatesResult, error)
func LookupZeroTrustAccessMtlsCertificatesOutput(ctx *Context, args *LookupZeroTrustAccessMtlsCertificatesOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessMtlsCertificatesResultOutput
Copy

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

public static class GetZeroTrustAccessMtlsCertificates 
{
    public static Task<GetZeroTrustAccessMtlsCertificatesResult> InvokeAsync(GetZeroTrustAccessMtlsCertificatesArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustAccessMtlsCertificatesResult> Invoke(GetZeroTrustAccessMtlsCertificatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetZeroTrustAccessMtlsCertificatesResult> getZeroTrustAccessMtlsCertificates(GetZeroTrustAccessMtlsCertificatesArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessMtlsCertificatesResult> getZeroTrustAccessMtlsCertificates(GetZeroTrustAccessMtlsCertificatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustAccessMtlsCertificates:getZeroTrustAccessMtlsCertificates
  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.
MaxItems int
Max items to fetch, default: 1000
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.
MaxItems int
Max items to fetch, default: 1000
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.
maxItems Integer
Max items to fetch, default: 1000
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.
maxItems number
Max items to fetch, default: 1000
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.
max_items int
Max items to fetch, default: 1000
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.
maxItems Number
Max items to fetch, default: 1000
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

getZeroTrustAccessMtlsCertificates Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Results List<GetZeroTrustAccessMtlsCertificatesResult>
The items returned by the data source
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
MaxItems int
Max items to fetch, default: 1000
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Id string
The provider-assigned unique ID for this managed resource.
Results []GetZeroTrustAccessMtlsCertificatesResult
The items returned by the data source
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
MaxItems int
Max items to fetch, default: 1000
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id String
The provider-assigned unique ID for this managed resource.
results List<GetZeroTrustAccessMtlsCertificatesResult>
The items returned by the data source
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
maxItems Integer
Max items to fetch, default: 1000
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id string
The provider-assigned unique ID for this managed resource.
results GetZeroTrustAccessMtlsCertificatesResult[]
The items returned by the data source
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
maxItems number
Max items to fetch, default: 1000
zoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id str
The provider-assigned unique ID for this managed resource.
results Sequence[GetZeroTrustAccessMtlsCertificatesResult]
The items returned by the data source
account_id str
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
max_items int
Max items to fetch, default: 1000
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id String
The provider-assigned unique ID for this managed resource.
results List<Property Map>
The items returned by the data source
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
maxItems Number
Max items to fetch, default: 1000
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Supporting Types

GetZeroTrustAccessMtlsCertificatesResult

AssociatedHostnames This property is required. List<string>
The hostnames of the applications that will use this certificate.
CreatedAt This property is required. string
ExpiresOn This property is required. string
Fingerprint This property is required. string
The MD5 fingerprint of the certificate.
Id This property is required. string
The ID of the application that will use this certificate.
Name This property is required. string
The name of the certificate.
UpdatedAt This property is required. string
AssociatedHostnames This property is required. []string
The hostnames of the applications that will use this certificate.
CreatedAt This property is required. string
ExpiresOn This property is required. string
Fingerprint This property is required. string
The MD5 fingerprint of the certificate.
Id This property is required. string
The ID of the application that will use this certificate.
Name This property is required. string
The name of the certificate.
UpdatedAt This property is required. string
associatedHostnames This property is required. List<String>
The hostnames of the applications that will use this certificate.
createdAt This property is required. String
expiresOn This property is required. String
fingerprint This property is required. String
The MD5 fingerprint of the certificate.
id This property is required. String
The ID of the application that will use this certificate.
name This property is required. String
The name of the certificate.
updatedAt This property is required. String
associatedHostnames This property is required. string[]
The hostnames of the applications that will use this certificate.
createdAt This property is required. string
expiresOn This property is required. string
fingerprint This property is required. string
The MD5 fingerprint of the certificate.
id This property is required. string
The ID of the application that will use this certificate.
name This property is required. string
The name of the certificate.
updatedAt This property is required. string
associated_hostnames This property is required. Sequence[str]
The hostnames of the applications that will use this certificate.
created_at This property is required. str
expires_on This property is required. str
fingerprint This property is required. str
The MD5 fingerprint of the certificate.
id This property is required. str
The ID of the application that will use this certificate.
name This property is required. str
The name of the certificate.
updated_at This property is required. str
associatedHostnames This property is required. List<String>
The hostnames of the applications that will use this certificate.
createdAt This property is required. String
expiresOn This property is required. String
fingerprint This property is required. String
The MD5 fingerprint of the certificate.
id This property is required. String
The ID of the application that will use this certificate.
name This property is required. String
The name of the certificate.
updatedAt This property is required. String

Package Details

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