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

cloudflare.AccessCaCertificate

Explore with Pulumi AI

Deprecated: cloudflare.index/accesscacertificate.AccessCaCertificate has been deprecated in favor of cloudflare.index/zerotrustaccessshortlivedcertificate.ZeroTrustAccessShortLivedCertificate

Example Usage

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

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

example_zero_trust_access_short_lived_certificate = cloudflare.ZeroTrustAccessShortLivedCertificate("example_zero_trust_access_short_lived_certificate",
    app_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    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.NewZeroTrustAccessShortLivedCertificate(ctx, "example_zero_trust_access_short_lived_certificate", &cloudflare.ZeroTrustAccessShortLivedCertificateArgs{
			AppId:  pulumi.String("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
			ZoneId: pulumi.String("zone_id"),
		})
		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 = new Cloudflare.ZeroTrustAccessShortLivedCertificate("example_zero_trust_access_short_lived_certificate", new()
    {
        AppId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        ZoneId = "zone_id",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustAccessShortLivedCertificate;
import com.pulumi.cloudflare.ZeroTrustAccessShortLivedCertificateArgs;
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) {
        var exampleZeroTrustAccessShortLivedCertificate = new ZeroTrustAccessShortLivedCertificate("exampleZeroTrustAccessShortLivedCertificate", ZeroTrustAccessShortLivedCertificateArgs.builder()
            .appId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
            .zoneId("zone_id")
            .build());

    }
}
Copy
resources:
  exampleZeroTrustAccessShortLivedCertificate:
    type: cloudflare:ZeroTrustAccessShortLivedCertificate
    name: example_zero_trust_access_short_lived_certificate
    properties:
      appId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
      zoneId: zone_id
Copy

Create AccessCaCertificate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AccessCaCertificate(name: string, args: AccessCaCertificateArgs, opts?: CustomResourceOptions);
@overload
def AccessCaCertificate(resource_name: str,
                        args: AccessCaCertificateArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def AccessCaCertificate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        account_id: Optional[str] = None,
                        app_id: Optional[str] = None,
                        zone_id: Optional[str] = None)
func NewAccessCaCertificate(ctx *Context, name string, args AccessCaCertificateArgs, opts ...ResourceOption) (*AccessCaCertificate, error)
public AccessCaCertificate(string name, AccessCaCertificateArgs args, CustomResourceOptions? opts = null)
public AccessCaCertificate(String name, AccessCaCertificateArgs args)
public AccessCaCertificate(String name, AccessCaCertificateArgs args, CustomResourceOptions options)
type: cloudflare:AccessCaCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccessCaCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccessCaCertificateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccessCaCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccessCaCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccessCaCertificateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AccessCaCertificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AccessCaCertificate resource accepts the following input properties:

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the AccessCaCertificate resource produces the following output properties:

Aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
Id string
The provider-assigned unique ID for this managed resource.
PublicKey string
The public key to add to your SSH server configuration.
Aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
Id string
The provider-assigned unique ID for this managed resource.
PublicKey string
The public key to add to your SSH server configuration.
aud String
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id String
The provider-assigned unique ID for this managed resource.
publicKey String
The public key to add to your SSH server configuration.
aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id string
The provider-assigned unique ID for this managed resource.
publicKey string
The public key to add to your SSH server configuration.
aud str
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id str
The provider-assigned unique ID for this managed resource.
public_key str
The public key to add to your SSH server configuration.
aud String
The Application Audience (AUD) tag. Identifies the application associated with the CA.
id String
The provider-assigned unique ID for this managed resource.
publicKey String
The public key to add to your SSH server configuration.

Look up Existing AccessCaCertificate Resource

Get an existing AccessCaCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccessCaCertificateState, opts?: CustomResourceOptions): AccessCaCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        app_id: Optional[str] = None,
        aud: Optional[str] = None,
        public_key: Optional[str] = None,
        zone_id: Optional[str] = None) -> AccessCaCertificate
func GetAccessCaCertificate(ctx *Context, name string, id IDInput, state *AccessCaCertificateState, opts ...ResourceOption) (*AccessCaCertificate, error)
public static AccessCaCertificate Get(string name, Input<string> id, AccessCaCertificateState? state, CustomResourceOptions? opts = null)
public static AccessCaCertificate get(String name, Output<String> id, AccessCaCertificateState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:AccessCaCertificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
AppId string
UUID
Aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
PublicKey string
The public key to add to your SSH server configuration.
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.
AppId string
UUID
Aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
PublicKey string
The public key to add to your SSH server configuration.
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.
appId String
UUID
aud String
The Application Audience (AUD) tag. Identifies the application associated with the CA.
publicKey String
The public key to add to your SSH server configuration.
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.
appId string
UUID
aud string
The Application Audience (AUD) tag. Identifies the application associated with the CA.
publicKey string
The public key to add to your SSH server configuration.
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.
app_id str
UUID
aud str
The Application Audience (AUD) tag. Identifies the application associated with the CA.
public_key str
The public key to add to your SSH server configuration.
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.
appId String
UUID
aud String
The Application Audience (AUD) tag. Identifies the application associated with the CA.
publicKey String
The public key to add to your SSH server configuration.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Import

$ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example '<{accounts|zones}/{account_id|zone_id}>/<app_id>'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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