OriginCaCertificate

Provides a Cloudflare Origin CA certificate used to protect traffic to your origin without involving a third party Certificate Authority.

This resource requires you use your Origin CA Key as the api_user_service_key.

Create a OriginCaCertificate Resource

def OriginCaCertificate(resource_name, opts=None, csr=None, hostnames=None, request_type=None, requested_validity=None, __props__=None);
name string
The unique name of the resource.
args OriginCaCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args OriginCaCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args OriginCaCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

OriginCaCertificate Resource Properties

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

Inputs

The OriginCaCertificate resource accepts the following input properties:

Csr string

The Certificate Signing Request. Must be newline-encoded.

Hostnames List<string>

An array of hostnames or wildcard names bound to the certificate.

RequestType string

The signature type desired on the certificate.

RequestedValidity int

The number of days for which the certificate should be valid.

Csr string

The Certificate Signing Request. Must be newline-encoded.

Hostnames []string

An array of hostnames or wildcard names bound to the certificate.

RequestType string

The signature type desired on the certificate.

RequestedValidity int

The number of days for which the certificate should be valid.

csr string

The Certificate Signing Request. Must be newline-encoded.

hostnames string[]

An array of hostnames or wildcard names bound to the certificate.

requestType string

The signature type desired on the certificate.

requestedValidity number

The number of days for which the certificate should be valid.

csr str

The Certificate Signing Request. Must be newline-encoded.

hostnames List[str]

An array of hostnames or wildcard names bound to the certificate.

request_type str

The signature type desired on the certificate.

requested_validity float

The number of days for which the certificate should be valid.

Outputs

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

Certificate string

The Origin CA certificate

ExpiresOn string

The datetime when the certificate will expire.

Id string
The provider-assigned unique ID for this managed resource.
Certificate string

The Origin CA certificate

ExpiresOn string

The datetime when the certificate will expire.

Id string
The provider-assigned unique ID for this managed resource.
certificate string

The Origin CA certificate

expiresOn string

The datetime when the certificate will expire.

id string
The provider-assigned unique ID for this managed resource.
certificate str

The Origin CA certificate

expires_on str

The datetime when the certificate will expire.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing OriginCaCertificate Resource

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

static get(resource_name, id, opts=None, certificate=None, csr=None, expires_on=None, hostnames=None, request_type=None, requested_validity=None, __props__=None);
func GetOriginCaCertificate(ctx *Context, name string, id IDInput, state *OriginCaCertificateState, opts ...ResourceOption) (*OriginCaCertificate, error)
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.

The following state arguments are supported:

Certificate string

The Origin CA certificate

Csr string

The Certificate Signing Request. Must be newline-encoded.

ExpiresOn string

The datetime when the certificate will expire.

Hostnames List<string>

An array of hostnames or wildcard names bound to the certificate.

RequestType string

The signature type desired on the certificate.

RequestedValidity int

The number of days for which the certificate should be valid.

Certificate string

The Origin CA certificate

Csr string

The Certificate Signing Request. Must be newline-encoded.

ExpiresOn string

The datetime when the certificate will expire.

Hostnames []string

An array of hostnames or wildcard names bound to the certificate.

RequestType string

The signature type desired on the certificate.

RequestedValidity int

The number of days for which the certificate should be valid.

certificate string

The Origin CA certificate

csr string

The Certificate Signing Request. Must be newline-encoded.

expiresOn string

The datetime when the certificate will expire.

hostnames string[]

An array of hostnames or wildcard names bound to the certificate.

requestType string

The signature type desired on the certificate.

requestedValidity number

The number of days for which the certificate should be valid.

certificate str

The Origin CA certificate

csr str

The Certificate Signing Request. Must be newline-encoded.

expires_on str

The datetime when the certificate will expire.

hostnames List[str]

An array of hostnames or wildcard names bound to the certificate.

request_type str

The signature type desired on the certificate.

requested_validity float

The number of days for which the certificate should be valid.

Package Details

Repository
https://github.com/pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.