1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. AccessCaCertificate
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.AccessCaCertificate

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      exampleZeroTrustAccessShortLivedCertificate:
        type: cloudflare:ZeroTrustAccessShortLivedCertificate
        name: example_zero_trust_access_short_lived_certificate
        properties:
          appId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
          zoneId: zone_id
    

    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 string
    The unique name of the resource.
    args AccessCaCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args AccessCaCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessCaCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 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 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 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 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 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 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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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>'
    

    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.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi