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
new OriginCaCertificate(name: string, args: OriginCaCertificateArgs, opts?: CustomResourceOptions);def OriginCaCertificate(resource_name, opts=None, csr=None, hostnames=None, request_type=None, requested_validity=None, __props__=None);func NewOriginCaCertificate(ctx *Context, name string, args OriginCaCertificateArgs, opts ...ResourceOption) (*OriginCaCertificate, error)public OriginCaCertificate(string name, OriginCaCertificateArgs args, CustomResourceOptions? opts = null)- 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.
- Request
Type string The signature type desired on the certificate.
- Requested
Validity 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.
- Request
Type string The signature type desired on the certificate.
- Requested
Validity 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.
- request
Type string The signature type desired on the certificate.
- requested
Validity 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 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.
public static get(name: string, id: Input<ID>, state?: OriginCaCertificateState, opts?: CustomResourceOptions): OriginCaCertificatestatic 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)public static OriginCaCertificate Get(string name, Input<string> id, OriginCaCertificateState? state, CustomResourceOptions? opts = null)- 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.
- Expires
On string The datetime when the certificate will expire.
- Hostnames List<string>
An array of hostnames or wildcard names bound to the certificate.
- Request
Type string The signature type desired on the certificate.
- Requested
Validity 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.
- Expires
On string The datetime when the certificate will expire.
- Hostnames []string
An array of hostnames or wildcard names bound to the certificate.
- Request
Type string The signature type desired on the certificate.
- Requested
Validity 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.
- expires
On string The datetime when the certificate will expire.
- hostnames string[]
An array of hostnames or wildcard names bound to the certificate.
- request
Type string The signature type desired on the certificate.
- requested
Validity 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
cloudflareTerraform Provider.