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

cloudflare.getZeroTrustAccessShortLivedCertificate

Explore with Pulumi AI

Example Usage

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

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

example_zero_trust_access_short_lived_certificate = cloudflare.get_zero_trust_access_short_lived_certificate(app_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.LookupZeroTrustAccessShortLivedCertificate(ctx, &cloudflare.LookupZeroTrustAccessShortLivedCertificateArgs{
			AppId:     "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 exampleZeroTrustAccessShortLivedCertificate = Cloudflare.GetZeroTrustAccessShortLivedCertificate.Invoke(new()
    {
        AppId = "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.GetZeroTrustAccessShortLivedCertificateArgs;
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 exampleZeroTrustAccessShortLivedCertificate = CloudflareFunctions.getZeroTrustAccessShortLivedCertificate(GetZeroTrustAccessShortLivedCertificateArgs.builder()
            .appId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
            .accountId("account_id")
            .zoneId("zone_id")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustAccessShortLivedCertificate:
    fn::invoke:
      function: cloudflare:getZeroTrustAccessShortLivedCertificate
      arguments:
        appId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
        accountId: account_id
        zoneId: zone_id
Copy

Using getZeroTrustAccessShortLivedCertificate

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 getZeroTrustAccessShortLivedCertificate(args: GetZeroTrustAccessShortLivedCertificateArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessShortLivedCertificateResult>
function getZeroTrustAccessShortLivedCertificateOutput(args: GetZeroTrustAccessShortLivedCertificateOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessShortLivedCertificateResult>
Copy
def get_zero_trust_access_short_lived_certificate(account_id: Optional[str] = None,
                                                  app_id: Optional[str] = None,
                                                  zone_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessShortLivedCertificateResult
def get_zero_trust_access_short_lived_certificate_output(account_id: Optional[pulumi.Input[str]] = None,
                                                  app_id: Optional[pulumi.Input[str]] = None,
                                                  zone_id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessShortLivedCertificateResult]
Copy
func LookupZeroTrustAccessShortLivedCertificate(ctx *Context, args *LookupZeroTrustAccessShortLivedCertificateArgs, opts ...InvokeOption) (*LookupZeroTrustAccessShortLivedCertificateResult, error)
func LookupZeroTrustAccessShortLivedCertificateOutput(ctx *Context, args *LookupZeroTrustAccessShortLivedCertificateOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessShortLivedCertificateResultOutput
Copy

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

public static class GetZeroTrustAccessShortLivedCertificate 
{
    public static Task<GetZeroTrustAccessShortLivedCertificateResult> InvokeAsync(GetZeroTrustAccessShortLivedCertificateArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustAccessShortLivedCertificateResult> Invoke(GetZeroTrustAccessShortLivedCertificateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetZeroTrustAccessShortLivedCertificateResult> getZeroTrustAccessShortLivedCertificate(GetZeroTrustAccessShortLivedCertificateArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessShortLivedCertificateResult> getZeroTrustAccessShortLivedCertificate(GetZeroTrustAccessShortLivedCertificateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustAccessShortLivedCertificate:getZeroTrustAccessShortLivedCertificate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AppId This property is required. string
UUID.
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
AppId This property is required. string
UUID.
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
appId This property is required. String
UUID.
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
appId This property is required. string
UUID.
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
app_id This property is required. str
UUID.
account_id str
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
appId This property is required. String
UUID.
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

getZeroTrustAccessShortLivedCertificate Result

The following output properties are available:

AppId string
UUID.
Aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
Id string
The ID of the CA.
PublicKey string
The public key to add to your SSH server configuration.
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
AppId string
UUID.
Aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
Id string
The ID of the CA.
PublicKey string
The public key to add to your SSH server configuration.
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
appId String
UUID.
aud String
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id String
The ID of the CA.
publicKey String
The public key to add to your SSH server configuration.
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
appId string
UUID.
aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id string
The ID of the CA.
publicKey string
The public key to add to your SSH server configuration.
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
app_id str
UUID.
aud str
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id str
The ID of the CA.
public_key str
The public key to add to your SSH server configuration.
account_id str
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
appId String
UUID.
aud String
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id String
The ID of the CA.
publicKey String
The public key to add to your SSH server configuration.
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
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.