Cloudflare

Pulumi Official
Package maintained by Pulumi
v4.6.0 published on Tuesday, Apr 5, 2022 by Pulumi

AccessCaCertificate

Cloudflare Access can replace traditional SSH key models with short-lived certificates issued to your users based on the token generated by their Access login.

Example Usage

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
    public MyStack()
    {
        // account level
        var example = new Cloudflare.AccessCaCertificate("example", new Cloudflare.AccessCaCertificateArgs
        {
            AccountId = "1d5fdc9e88c8a8c4518b068cd94331fe",
            ApplicationId = "6cd6cea3-3ef2-4542-9aea-85a0bbcd5414",
        });
        // zone level
        var anotherExample = new Cloudflare.AccessCaCertificate("anotherExample", new Cloudflare.AccessCaCertificateArgs
        {
            ApplicationId = "fe2be0ff-7f13-4350-8c8e-a9b9795fe3c2",
            ZoneId = "b6bc7eb6027c792a6bca3dc91fd2d7e0",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v4/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.NewAccessCaCertificate(ctx, "example", &cloudflare.AccessCaCertificateArgs{
			AccountId:     pulumi.String("1d5fdc9e88c8a8c4518b068cd94331fe"),
			ApplicationId: pulumi.String("6cd6cea3-3ef2-4542-9aea-85a0bbcd5414"),
		})
		if err != nil {
			return err
		}
		_, err = cloudflare.NewAccessCaCertificate(ctx, "anotherExample", &cloudflare.AccessCaCertificateArgs{
			ApplicationId: pulumi.String("fe2be0ff-7f13-4350-8c8e-a9b9795fe3c2"),
			ZoneId:        pulumi.String("b6bc7eb6027c792a6bca3dc91fd2d7e0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_cloudflare as cloudflare

# account level
example = cloudflare.AccessCaCertificate("example",
    account_id="1d5fdc9e88c8a8c4518b068cd94331fe",
    application_id="6cd6cea3-3ef2-4542-9aea-85a0bbcd5414")
# zone level
another_example = cloudflare.AccessCaCertificate("anotherExample",
    application_id="fe2be0ff-7f13-4350-8c8e-a9b9795fe3c2",
    zone_id="b6bc7eb6027c792a6bca3dc91fd2d7e0")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

// account level
const example = new cloudflare.AccessCaCertificate("example", {
    accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
    applicationId: "6cd6cea3-3ef2-4542-9aea-85a0bbcd5414",
});
// zone level
const anotherExample = new cloudflare.AccessCaCertificate("another_example", {
    applicationId: "fe2be0ff-7f13-4350-8c8e-a9b9795fe3c2",
    zoneId: "b6bc7eb6027c792a6bca3dc91fd2d7e0",
});

Coming soon!

Create a AccessCaCertificate Resource

new AccessCaCertificate(name: string, args: AccessCaCertificateArgs, opts?: CustomResourceOptions);
@overload
def AccessCaCertificate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        account_id: Optional[str] = None,
                        application_id: Optional[str] = None,
                        zone_id: Optional[str] = None)
@overload
def AccessCaCertificate(resource_name: str,
                        args: AccessCaCertificateArgs,
                        opts: Optional[ResourceOptions] = 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.

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

The AccessCaCertificate resource accepts the following input properties:

ApplicationId string

The Access Application ID to associate with the CA certificate.

AccountId string

The account to which the Access CA certificate should be added. Conflicts with zone_id.

ZoneId string

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

ApplicationId string

The Access Application ID to associate with the CA certificate.

AccountId string

The account to which the Access CA certificate should be added. Conflicts with zone_id.

ZoneId string

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

applicationId String

The Access Application ID to associate with the CA certificate.

accountId String

The account to which the Access CA certificate should be added. Conflicts with zone_id.

zoneId String

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

applicationId string

The Access Application ID to associate with the CA certificate.

accountId string

The account to which the Access CA certificate should be added. Conflicts with zone_id.

zoneId string

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

application_id str

The Access Application ID to associate with the CA certificate.

account_id str

The account to which the Access CA certificate should be added. Conflicts with zone_id.

zone_id str

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

applicationId String

The Access Application ID to associate with the CA certificate.

accountId String

The account to which the Access CA certificate should be added. Conflicts with zone_id.

zoneId String

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

Outputs

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

Aud string

Application Audience (AUD) Tag of the CA certificate

Id string

The provider-assigned unique ID for this managed resource.

PublicKey string

Cryptographic public key of the generated CA certificate

Aud string

Application Audience (AUD) Tag of the CA certificate

Id string

The provider-assigned unique ID for this managed resource.

PublicKey string

Cryptographic public key of the generated CA certificate

aud String

Application Audience (AUD) Tag of the CA certificate

id String

The provider-assigned unique ID for this managed resource.

publicKey String

Cryptographic public key of the generated CA certificate

aud string

Application Audience (AUD) Tag of the CA certificate

id string

The provider-assigned unique ID for this managed resource.

publicKey string

Cryptographic public key of the generated CA certificate

aud str

Application Audience (AUD) Tag of the CA certificate

id str

The provider-assigned unique ID for this managed resource.

public_key str

Cryptographic public key of the generated CA certificate

aud String

Application Audience (AUD) Tag of the CA certificate

id String

The provider-assigned unique ID for this managed resource.

publicKey String

Cryptographic public key of the generated CA certificate

Look up an 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,
        application_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)
Resource lookup is not supported in YAML
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 to which the Access CA certificate should be added. Conflicts with zone_id.

ApplicationId string

The Access Application ID to associate with the CA certificate.

Aud string

Application Audience (AUD) Tag of the CA certificate

PublicKey string

Cryptographic public key of the generated CA certificate

ZoneId string

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

AccountId string

The account to which the Access CA certificate should be added. Conflicts with zone_id.

ApplicationId string

The Access Application ID to associate with the CA certificate.

Aud string

Application Audience (AUD) Tag of the CA certificate

PublicKey string

Cryptographic public key of the generated CA certificate

ZoneId string

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

accountId String

The account to which the Access CA certificate should be added. Conflicts with zone_id.

applicationId String

The Access Application ID to associate with the CA certificate.

aud String

Application Audience (AUD) Tag of the CA certificate

publicKey String

Cryptographic public key of the generated CA certificate

zoneId String

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

accountId string

The account to which the Access CA certificate should be added. Conflicts with zone_id.

applicationId string

The Access Application ID to associate with the CA certificate.

aud string

Application Audience (AUD) Tag of the CA certificate

publicKey string

Cryptographic public key of the generated CA certificate

zoneId string

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

account_id str

The account to which the Access CA certificate should be added. Conflicts with zone_id.

application_id str

The Access Application ID to associate with the CA certificate.

aud str

Application Audience (AUD) Tag of the CA certificate

public_key str

Cryptographic public key of the generated CA certificate

zone_id str

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

accountId String

The account to which the Access CA certificate should be added. Conflicts with zone_id.

applicationId String

The Access Application ID to associate with the CA certificate.

aud String

Application Audience (AUD) Tag of the CA certificate

publicKey String

Cryptographic public key of the generated CA certificate

zoneId String

The DNS zone to which the Access CA certificate should be added. Conflicts with account_id.

Import

Access CA certificates can be imported using a composite ID formed of identifer (“account” or “zone”), identifier ID and the CA certificate ID.

 $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/1d5fdc9e88c8a8c4518b068cd94331fe/edc1e4e24567217764b4322669c44df985dddffdf03ac781

Package Details

Repository
https://github.com/pulumi/pulumi-cloudflare
License
Apache-2.0
Notes

This Pulumi package is based on the cloudflare Terraform Provider.