cloudflare.OriginCaCertificate
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleOriginCaCertificate = new cloudflare.OriginCaCertificate("example_origin_ca_certificate", {
csr: ` -----BEGIN CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
-----END CERTIFICATE REQUEST-----
`,
hostnames: [
"example.com",
"*.example.com",
],
requestType: "origin-rsa",
requestedValidity: 5475,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_origin_ca_certificate = cloudflare.OriginCaCertificate("example_origin_ca_certificate",
csr=""" -----BEGIN CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
-----END CERTIFICATE REQUEST-----
""",
hostnames=[
"example.com",
"*.example.com",
],
request_type="origin-rsa",
requested_validity=5475)
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.NewOriginCaCertificate(ctx, "example_origin_ca_certificate", &cloudflare.OriginCaCertificateArgs{
Csr: pulumi.String(` -----BEGIN CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
-----END CERTIFICATE REQUEST-----
`),
Hostnames: pulumi.StringArray{
pulumi.String("example.com"),
pulumi.String("*.example.com"),
},
RequestType: pulumi.String("origin-rsa"),
RequestedValidity: pulumi.Float64(5475),
})
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 exampleOriginCaCertificate = new Cloudflare.OriginCaCertificate("example_origin_ca_certificate", new()
{
Csr = @" -----BEGIN CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
-----END CERTIFICATE REQUEST-----
",
Hostnames = new[]
{
"example.com",
"*.example.com",
},
RequestType = "origin-rsa",
RequestedValidity = 5475,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.OriginCaCertificate;
import com.pulumi.cloudflare.OriginCaCertificateArgs;
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 exampleOriginCaCertificate = new OriginCaCertificate("exampleOriginCaCertificate", OriginCaCertificateArgs.builder()
.csr("""
-----BEGIN CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
-----END CERTIFICATE REQUEST-----
""")
.hostnames(
"example.com",
"*.example.com")
.requestType("origin-rsa")
.requestedValidity(5475.0)
.build());
}
}
resources:
exampleOriginCaCertificate:
type: cloudflare:OriginCaCertificate
name: example_origin_ca_certificate
properties:
csr: |2
-----BEGIN CERTIFICATE REQUEST-----
MIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz
Y28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL
Hu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8
4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc
N8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi
g7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I
uOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG
CSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt
cGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx
pTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/
auRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH
yc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J
hXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs
dcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==
-----END CERTIFICATE REQUEST-----
hostnames:
- example.com
- '*.example.com'
requestType: origin-rsa
requestedValidity: 5475
Create OriginCaCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OriginCaCertificate(name: string, args?: OriginCaCertificateArgs, opts?: CustomResourceOptions);
@overload
def OriginCaCertificate(resource_name: str,
args: Optional[OriginCaCertificateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def OriginCaCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
csr: Optional[str] = None,
hostnames: Optional[Sequence[str]] = None,
request_type: Optional[str] = None,
requested_validity: Optional[float] = None)
func NewOriginCaCertificate(ctx *Context, name string, args *OriginCaCertificateArgs, opts ...ResourceOption) (*OriginCaCertificate, error)
public OriginCaCertificate(string name, OriginCaCertificateArgs? args = null, CustomResourceOptions? opts = null)
public OriginCaCertificate(String name, OriginCaCertificateArgs args)
public OriginCaCertificate(String name, OriginCaCertificateArgs args, CustomResourceOptions options)
type: cloudflare:OriginCaCertificate
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 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.
- args OriginCaCertificateArgs
- 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 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.
- name String
- The unique name of the resource.
- args OriginCaCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var originCaCertificateResource = new Cloudflare.OriginCaCertificate("originCaCertificateResource", new()
{
Csr = "string",
Hostnames = new[]
{
"string",
},
RequestType = "string",
RequestedValidity = 0,
});
example, err := cloudflare.NewOriginCaCertificate(ctx, "originCaCertificateResource", &cloudflare.OriginCaCertificateArgs{
Csr: pulumi.String("string"),
Hostnames: pulumi.StringArray{
pulumi.String("string"),
},
RequestType: pulumi.String("string"),
RequestedValidity: pulumi.Float64(0),
})
var originCaCertificateResource = new OriginCaCertificate("originCaCertificateResource", OriginCaCertificateArgs.builder()
.csr("string")
.hostnames("string")
.requestType("string")
.requestedValidity(0)
.build());
origin_ca_certificate_resource = cloudflare.OriginCaCertificate("originCaCertificateResource",
csr="string",
hostnames=["string"],
request_type="string",
requested_validity=0)
const originCaCertificateResource = new cloudflare.OriginCaCertificate("originCaCertificateResource", {
csr: "string",
hostnames: ["string"],
requestType: "string",
requestedValidity: 0,
});
type: cloudflare:OriginCaCertificate
properties:
csr: string
hostnames:
- string
requestType: string
requestedValidity: 0
OriginCaCertificate 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 OriginCaCertificate resource accepts the following input properties:
- Csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- Hostnames List<string>
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- Request
Type string - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- Requested
Validity double - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- Csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- Hostnames []string
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- Request
Type string - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- Requested
Validity float64 - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- csr String
- The Certificate Signing Request (CSR). Must be newline-encoded.
- hostnames List<String>
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request
Type String - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested
Validity Double - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- hostnames string[]
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request
Type string - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested
Validity number - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- csr str
- The Certificate Signing Request (CSR). Must be newline-encoded.
- hostnames Sequence[str]
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request_
type str - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested_
validity float - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- csr String
- The Certificate Signing Request (CSR). Must be newline-encoded.
- hostnames List<String>
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request
Type String - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested
Validity Number - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
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. Will be newline-encoded.
- Expires
On string - When the certificate will expire.
- Id string
- The provider-assigned unique ID for this managed resource.
- Certificate string
- The Origin CA certificate. Will be newline-encoded.
- Expires
On string - When the certificate will expire.
- Id string
- The provider-assigned unique ID for this managed resource.
- certificate String
- The Origin CA certificate. Will be newline-encoded.
- expires
On String - When the certificate will expire.
- id String
- The provider-assigned unique ID for this managed resource.
- certificate string
- The Origin CA certificate. Will be newline-encoded.
- expires
On string - When the certificate will expire.
- id string
- The provider-assigned unique ID for this managed resource.
- certificate str
- The Origin CA certificate. Will be newline-encoded.
- expires_
on str - When the certificate will expire.
- id str
- The provider-assigned unique ID for this managed resource.
- certificate String
- The Origin CA certificate. Will be newline-encoded.
- expires
On String - When the certificate will expire.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): OriginCaCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate: Optional[str] = None,
csr: Optional[str] = None,
expires_on: Optional[str] = None,
hostnames: Optional[Sequence[str]] = None,
request_type: Optional[str] = None,
requested_validity: Optional[float] = None) -> OriginCaCertificate
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)
public static OriginCaCertificate get(String name, Output<String> id, OriginCaCertificateState state, CustomResourceOptions options)
resources: _: type: cloudflare:OriginCaCertificate 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.
- Certificate string
- The Origin CA certificate. Will be newline-encoded.
- Csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- Expires
On string - When the certificate will expire.
- Hostnames List<string>
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- Request
Type string - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- Requested
Validity double - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- Certificate string
- The Origin CA certificate. Will be newline-encoded.
- Csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- Expires
On string - When the certificate will expire.
- Hostnames []string
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- Request
Type string - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- Requested
Validity float64 - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- certificate String
- The Origin CA certificate. Will be newline-encoded.
- csr String
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires
On String - When the certificate will expire.
- hostnames List<String>
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request
Type String - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested
Validity Double - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- certificate string
- The Origin CA certificate. Will be newline-encoded.
- csr string
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires
On string - When the certificate will expire.
- hostnames string[]
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request
Type string - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested
Validity number - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- certificate str
- The Origin CA certificate. Will be newline-encoded.
- csr str
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires_
on str - When the certificate will expire.
- hostnames Sequence[str]
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request_
type str - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested_
validity float - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
- certificate String
- The Origin CA certificate. Will be newline-encoded.
- csr String
- The Certificate Signing Request (CSR). Must be newline-encoded.
- expires
On String - When the certificate will expire.
- hostnames List<String>
- Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.
- request
Type String - Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). Available values: "origin-rsa", "origin-ecc", "keyless-certificate".
- requested
Validity Number - The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475.
Import
$ pulumi import cloudflare:index/originCaCertificate:OriginCaCertificate example '<certificate_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.