AccessCaCertificateArgs

data class AccessCaCertificateArgs(val accountId: Output<String>? = null, val applicationId: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AccessCaCertificateArgs>

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.

It's required that an account_id or zone_id is provided and in most cases using either is fine. However, if you're using a scoped access token, you must provide the argument that matches the token's scope. For example, an access token that is scoped to the "example.com" zone needs to use the zone_id argument.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessCaCertificate;
import com.pulumi.cloudflare.AccessCaCertificateArgs;
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 example = new AccessCaCertificate("example", AccessCaCertificateArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.applicationId("6cd6cea3-3ef2-4542-9aea-85a0bbcd5414")
.build());
var anotherExample = new AccessCaCertificate("anotherExample", AccessCaCertificateArgs.builder()
.applicationId("fe2be0ff-7f13-4350-8c8e-a9b9795fe3c2")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Import

Account level CA certificate import.

$ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<account_id>/<certificate_id>

Zone level CA certificate import.

$ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<zone_id>/<certificate_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, applicationId: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Conflicts with zone_id.

Link copied to clipboard
val applicationId: Output<String>? = null

The Access Application ID to associate with the CA certificate.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource. Conflicts with account_id.

Functions

Link copied to clipboard
open override fun toJava(): AccessCaCertificateArgs