Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

Certificate

Import

Certificates can be imported using the id, e.g.

 $ pulumi import oci:LoadBalancer/certificate:Certificate test_certificate "loadBalancers/{loadBalancerId}/certificates/{certificateName}"

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testCertificate = new Oci.LoadBalancer.Certificate("testCertificate", new Oci.LoadBalancer.CertificateArgs
        {
            CertificateName = @var.Certificate_certificate_name,
            LoadBalancerId = oci_load_balancer_load_balancer.Test_load_balancer.Id,
            CaCertificate = @var.Certificate_ca_certificate,
            Passphrase = @var.Certificate_passphrase,
            PrivateKey = @var.Certificate_private_key,
            PublicCertificate = @var.Certificate_public_certificate,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/LoadBalancer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LoadBalancer.NewCertificate(ctx, "testCertificate", &LoadBalancer.CertificateArgs{
			CertificateName:   pulumi.Any(_var.Certificate_certificate_name),
			LoadBalancerId:    pulumi.Any(oci_load_balancer_load_balancer.Test_load_balancer.Id),
			CaCertificate:     pulumi.Any(_var.Certificate_ca_certificate),
			Passphrase:        pulumi.Any(_var.Certificate_passphrase),
			PrivateKey:        pulumi.Any(_var.Certificate_private_key),
			PublicCertificate: pulumi.Any(_var.Certificate_public_certificate),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_certificate = oci.load_balancer.Certificate("testCertificate",
    certificate_name=var["certificate_certificate_name"],
    load_balancer_id=oci_load_balancer_load_balancer["test_load_balancer"]["id"],
    ca_certificate=var["certificate_ca_certificate"],
    passphrase=var["certificate_passphrase"],
    private_key=var["certificate_private_key"],
    public_certificate=var["certificate_public_certificate"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCertificate = new oci.loadbalancer.Certificate("testCertificate", {
    certificateName: _var.certificate_certificate_name,
    loadBalancerId: oci_load_balancer_load_balancer.test_load_balancer.id,
    caCertificate: _var.certificate_ca_certificate,
    passphrase: _var.certificate_passphrase,
    privateKey: _var.certificate_private_key,
    publicCertificate: _var.certificate_public_certificate,
});

Coming soon!

Create a Certificate Resource

new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                ca_certificate: Optional[str] = None,
                certificate_name: Optional[str] = None,
                load_balancer_id: Optional[str] = None,
                passphrase: Optional[str] = None,
                private_key: Optional[str] = None,
                public_certificate: Optional[str] = None)
@overload
def Certificate(resource_name: str,
                args: CertificateArgs,
                opts: Optional[ResourceOptions] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: oci:LoadBalancer:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CertificateArgs
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 CertificateArgs
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 CertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CertificateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Certificate 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 Certificate resource accepts the following input properties:

CertificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

LoadBalancerId string

The OCID of the load balancer on which to add the certificate bundle.

CaCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

Passphrase string

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

PrivateKey string

The SSL private key for your certificate, in PEM format.

PublicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

CertificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

LoadBalancerId string

The OCID of the load balancer on which to add the certificate bundle.

CaCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

Passphrase string

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

PrivateKey string

The SSL private key for your certificate, in PEM format.

PublicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

certificateName String

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId String

The OCID of the load balancer on which to add the certificate bundle.

caCertificate String

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

passphrase String

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

privateKey String

The SSL private key for your certificate, in PEM format.

publicCertificate String

The public certificate, in PEM format, that you received from your SSL certificate provider.

certificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId string

The OCID of the load balancer on which to add the certificate bundle.

caCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

passphrase string

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

privateKey string

The SSL private key for your certificate, in PEM format.

publicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

certificate_name str

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

load_balancer_id str

The OCID of the load balancer on which to add the certificate bundle.

ca_certificate str

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

passphrase str

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

private_key str

The SSL private key for your certificate, in PEM format.

public_certificate str

The public certificate, in PEM format, that you received from your SSL certificate provider.

certificateName String

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId String

The OCID of the load balancer on which to add the certificate bundle.

caCertificate String

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

passphrase String

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

privateKey String

The SSL private key for your certificate, in PEM format.

publicCertificate String

The public certificate, in PEM format, that you received from your SSL certificate provider.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

State string
Id string

The provider-assigned unique ID for this managed resource.

State string
id String

The provider-assigned unique ID for this managed resource.

state String
id string

The provider-assigned unique ID for this managed resource.

state string
id str

The provider-assigned unique ID for this managed resource.

state str
id String

The provider-assigned unique ID for this managed resource.

state String

Look up an Existing Certificate Resource

Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ca_certificate: Optional[str] = None,
        certificate_name: Optional[str] = None,
        load_balancer_id: Optional[str] = None,
        passphrase: Optional[str] = None,
        private_key: Optional[str] = None,
        public_certificate: Optional[str] = None,
        state: Optional[str] = None) -> Certificate
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
public static Certificate get(String name, Output<String> id, CertificateState 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:
CaCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

CertificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

LoadBalancerId string

The OCID of the load balancer on which to add the certificate bundle.

Passphrase string

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

PrivateKey string

The SSL private key for your certificate, in PEM format.

PublicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

State string
CaCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

CertificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

LoadBalancerId string

The OCID of the load balancer on which to add the certificate bundle.

Passphrase string

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

PrivateKey string

The SSL private key for your certificate, in PEM format.

PublicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

State string
caCertificate String

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificateName String

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId String

The OCID of the load balancer on which to add the certificate bundle.

passphrase String

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

privateKey String

The SSL private key for your certificate, in PEM format.

publicCertificate String

The public certificate, in PEM format, that you received from your SSL certificate provider.

state String
caCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId string

The OCID of the load balancer on which to add the certificate bundle.

passphrase string

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

privateKey string

The SSL private key for your certificate, in PEM format.

publicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

state string
ca_certificate str

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificate_name str

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

load_balancer_id str

The OCID of the load balancer on which to add the certificate bundle.

passphrase str

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

private_key str

The SSL private key for your certificate, in PEM format.

public_certificate str

The public certificate, in PEM format, that you received from your SSL certificate provider.

state str
caCertificate String

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificateName String

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId String

The OCID of the load balancer on which to add the certificate bundle.

passphrase String

A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.

privateKey String

The SSL private key for your certificate, in PEM format.

publicCertificate String

The public certificate, in PEM format, that you received from your SSL certificate provider.

state String

Package Details

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

This Pulumi package is based on the oci Terraform Provider.