1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApiGateway
  5. Certificate
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.ApiGateway.Certificate

Explore with Pulumi AI

This resource provides the Certificate resource in Oracle Cloud Infrastructure API Gateway service.

Creates a new Certificate.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCertificate = new oci.apigateway.Certificate("test_certificate", {
    certificate: certificateCertificate,
    compartmentId: compartmentId,
    privateKey: certificatePrivateKey,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    displayName: certificateDisplayName,
    freeformTags: {
        Department: "Finance",
    },
    intermediateCertificates: certificateIntermediateCertificates,
});
Copy
import pulumi
import pulumi_oci as oci

test_certificate = oci.api_gateway.Certificate("test_certificate",
    certificate=certificate_certificate,
    compartment_id=compartment_id,
    private_key=certificate_private_key,
    defined_tags={
        "Operations.CostCenter": "42",
    },
    display_name=certificate_display_name,
    freeform_tags={
        "Department": "Finance",
    },
    intermediate_certificates=certificate_intermediate_certificates)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.NewCertificate(ctx, "test_certificate", &apigateway.CertificateArgs{
			Certificate:   pulumi.Any(certificateCertificate),
			CompartmentId: pulumi.Any(compartmentId),
			PrivateKey:    pulumi.Any(certificatePrivateKey),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			DisplayName: pulumi.Any(certificateDisplayName),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			IntermediateCertificates: pulumi.Any(certificateIntermediateCertificates),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testCertificate = new Oci.ApiGateway.Certificate("test_certificate", new()
    {
        CertificateDetails = certificateCertificate,
        CompartmentId = compartmentId,
        PrivateKey = certificatePrivateKey,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        DisplayName = certificateDisplayName,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        IntermediateCertificates = certificateIntermediateCertificates,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ApiGateway.Certificate;
import com.pulumi.oci.ApiGateway.CertificateArgs;
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 testCertificate = new Certificate("testCertificate", CertificateArgs.builder()
            .certificate(certificateCertificate)
            .compartmentId(compartmentId)
            .privateKey(certificatePrivateKey)
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .displayName(certificateDisplayName)
            .freeformTags(Map.of("Department", "Finance"))
            .intermediateCertificates(certificateIntermediateCertificates)
            .build());

    }
}
Copy
resources:
  testCertificate:
    type: oci:ApiGateway:Certificate
    name: test_certificate
    properties:
      certificate: ${certificateCertificate}
      compartmentId: ${compartmentId}
      privateKey: ${certificatePrivateKey}
      definedTags:
        Operations.CostCenter: '42'
      displayName: ${certificateDisplayName}
      freeformTags:
        Department: Finance
      intermediateCertificates: ${certificateIntermediateCertificates}
Copy

Create Certificate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
                args: CertificateArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Certificate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                certificate: Optional[str] = None,
                compartment_id: Optional[str] = None,
                private_key: Optional[str] = None,
                defined_tags: Optional[Mapping[str, str]] = None,
                display_name: Optional[str] = None,
                freeform_tags: Optional[Mapping[str, str]] = None,
                intermediate_certificates: Optional[str] = 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:ApiGateway:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CertificateArgs
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 certificateResource = new Oci.ApiGateway.Certificate("certificateResource", new()
{
    CertificateDetails = "string",
    CompartmentId = "string",
    PrivateKey = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    IntermediateCertificates = "string",
});
Copy
example, err := ApiGateway.NewCertificate(ctx, "certificateResource", &ApiGateway.CertificateArgs{
	Certificate:   pulumi.String("string"),
	CompartmentId: pulumi.String("string"),
	PrivateKey:    pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IntermediateCertificates: pulumi.String("string"),
})
Copy
var certificateResource = new Certificate("certificateResource", CertificateArgs.builder()
    .certificate("string")
    .compartmentId("string")
    .privateKey("string")
    .definedTags(Map.of("string", "string"))
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .intermediateCertificates("string")
    .build());
Copy
certificate_resource = oci.api_gateway.Certificate("certificateResource",
    certificate="string",
    compartment_id="string",
    private_key="string",
    defined_tags={
        "string": "string",
    },
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    intermediate_certificates="string")
Copy
const certificateResource = new oci.apigateway.Certificate("certificateResource", {
    certificate: "string",
    compartmentId: "string",
    privateKey: "string",
    definedTags: {
        string: "string",
    },
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    intermediateCertificates: "string",
});
Copy
type: oci:ApiGateway:Certificate
properties:
    certificate: string
    compartmentId: string
    definedTags:
        string: string
    displayName: string
    freeformTags:
        string: string
    intermediateCertificates: string
    privateKey: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Certificate resource accepts the following input properties:

CertificateDetails
This property is required.
Changes to this property will trigger replacement.
string
The data of the leaf certificate in pem format.
CompartmentId This property is required. string
(Updatable) The OCID of the compartment in which the resource is created.
PrivateKey
This property is required.
Changes to this property will trigger replacement.
string

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
FreeformTags Dictionary<string, string>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IntermediateCertificates Changes to this property will trigger replacement. string
The intermediate certificate data associated with the certificate in pem format.
Certificate
This property is required.
Changes to this property will trigger replacement.
string
The data of the leaf certificate in pem format.
CompartmentId This property is required. string
(Updatable) The OCID of the compartment in which the resource is created.
PrivateKey
This property is required.
Changes to this property will trigger replacement.
string

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
FreeformTags map[string]string
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IntermediateCertificates Changes to this property will trigger replacement. string
The intermediate certificate data associated with the certificate in pem format.
certificate
This property is required.
Changes to this property will trigger replacement.
String
The data of the leaf certificate in pem format.
compartmentId This property is required. String
(Updatable) The OCID of the compartment in which the resource is created.
privateKey
This property is required.
Changes to this property will trigger replacement.
String

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags Map<String,String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediateCertificates Changes to this property will trigger replacement. String
The intermediate certificate data associated with the certificate in pem format.
certificate
This property is required.
Changes to this property will trigger replacement.
string
The data of the leaf certificate in pem format.
compartmentId This property is required. string
(Updatable) The OCID of the compartment in which the resource is created.
privateKey
This property is required.
Changes to this property will trigger replacement.
string

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName string
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags {[key: string]: string}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediateCertificates Changes to this property will trigger replacement. string
The intermediate certificate data associated with the certificate in pem format.
certificate
This property is required.
Changes to this property will trigger replacement.
str
The data of the leaf certificate in pem format.
compartment_id This property is required. str
(Updatable) The OCID of the compartment in which the resource is created.
private_key
This property is required.
Changes to this property will trigger replacement.
str

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name str
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeform_tags Mapping[str, str]
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediate_certificates Changes to this property will trigger replacement. str
The intermediate certificate data associated with the certificate in pem format.
certificate
This property is required.
Changes to this property will trigger replacement.
String
The data of the leaf certificate in pem format.
compartmentId This property is required. String
(Updatable) The OCID of the compartment in which the resource is created.
privateKey
This property is required.
Changes to this property will trigger replacement.
String

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags Map<String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediateCertificates Changes to this property will trigger replacement. String
The intermediate certificate data associated with the certificate in pem format.

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.
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
State string
The current state of the certificate.
SubjectNames List<string>
The entity to be secured by the certificate and additional host names.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeNotValidAfter string
The date and time the certificate will expire.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
Id string
The provider-assigned unique ID for this managed resource.
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
State string
The current state of the certificate.
SubjectNames []string
The entity to be secured by the certificate and additional host names.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeNotValidAfter string
The date and time the certificate will expire.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
id String
The provider-assigned unique ID for this managed resource.
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
state String
The current state of the certificate.
subjectNames List<String>
The entity to be secured by the certificate and additional host names.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeNotValidAfter String
The date and time the certificate will expire.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.
id string
The provider-assigned unique ID for this managed resource.
lifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
state string
The current state of the certificate.
subjectNames string[]
The entity to be secured by the certificate and additional host names.
timeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
timeNotValidAfter string
The date and time the certificate will expire.
timeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
id str
The provider-assigned unique ID for this managed resource.
lifecycle_details str
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
state str
The current state of the certificate.
subject_names Sequence[str]
The entity to be secured by the certificate and additional host names.
time_created str
The time this resource was created. An RFC3339 formatted datetime string.
time_not_valid_after str
The date and time the certificate will expire.
time_updated str
The time this resource was last updated. An RFC3339 formatted datetime string.
id String
The provider-assigned unique ID for this managed resource.
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
state String
The current state of the certificate.
subjectNames List<String>
The entity to be secured by the certificate and additional host names.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeNotValidAfter String
The date and time the certificate will expire.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.

Look up 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,
        certificate: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        intermediate_certificates: Optional[str] = None,
        lifecycle_details: Optional[str] = None,
        private_key: Optional[str] = None,
        state: Optional[str] = None,
        subject_names: Optional[Sequence[str]] = None,
        time_created: Optional[str] = None,
        time_not_valid_after: Optional[str] = None,
        time_updated: 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)
resources:  _:    type: oci:ApiGateway:Certificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CertificateDetails Changes to this property will trigger replacement. string
The data of the leaf certificate in pem format.
CompartmentId string
(Updatable) The OCID of the compartment in which the resource is created.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
FreeformTags Dictionary<string, string>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IntermediateCertificates Changes to this property will trigger replacement. string
The intermediate certificate data associated with the certificate in pem format.
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
PrivateKey Changes to this property will trigger replacement. string

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

State string
The current state of the certificate.
SubjectNames List<string>
The entity to be secured by the certificate and additional host names.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeNotValidAfter string
The date and time the certificate will expire.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
Certificate Changes to this property will trigger replacement. string
The data of the leaf certificate in pem format.
CompartmentId string
(Updatable) The OCID of the compartment in which the resource is created.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
FreeformTags map[string]string
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
IntermediateCertificates Changes to this property will trigger replacement. string
The intermediate certificate data associated with the certificate in pem format.
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
PrivateKey Changes to this property will trigger replacement. string

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

State string
The current state of the certificate.
SubjectNames []string
The entity to be secured by the certificate and additional host names.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeNotValidAfter string
The date and time the certificate will expire.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
certificate Changes to this property will trigger replacement. String
The data of the leaf certificate in pem format.
compartmentId String
(Updatable) The OCID of the compartment in which the resource is created.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags Map<String,String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediateCertificates Changes to this property will trigger replacement. String
The intermediate certificate data associated with the certificate in pem format.
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
privateKey Changes to this property will trigger replacement. String

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state String
The current state of the certificate.
subjectNames List<String>
The entity to be secured by the certificate and additional host names.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeNotValidAfter String
The date and time the certificate will expire.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.
certificate Changes to this property will trigger replacement. string
The data of the leaf certificate in pem format.
compartmentId string
(Updatable) The OCID of the compartment in which the resource is created.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName string
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags {[key: string]: string}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediateCertificates Changes to this property will trigger replacement. string
The intermediate certificate data associated with the certificate in pem format.
lifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
privateKey Changes to this property will trigger replacement. string

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state string
The current state of the certificate.
subjectNames string[]
The entity to be secured by the certificate and additional host names.
timeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
timeNotValidAfter string
The date and time the certificate will expire.
timeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
certificate Changes to this property will trigger replacement. str
The data of the leaf certificate in pem format.
compartment_id str
(Updatable) The OCID of the compartment in which the resource is created.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name str
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeform_tags Mapping[str, str]
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediate_certificates Changes to this property will trigger replacement. str
The intermediate certificate data associated with the certificate in pem format.
lifecycle_details str
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
private_key Changes to this property will trigger replacement. str

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state str
The current state of the certificate.
subject_names Sequence[str]
The entity to be secured by the certificate and additional host names.
time_created str
The time this resource was created. An RFC3339 formatted datetime string.
time_not_valid_after str
The date and time the certificate will expire.
time_updated str
The time this resource was last updated. An RFC3339 formatted datetime string.
certificate Changes to this property will trigger replacement. String
The data of the leaf certificate in pem format.
compartmentId String
(Updatable) The OCID of the compartment in which the resource is created.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
freeformTags Map<String>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
intermediateCertificates Changes to this property will trigger replacement. String
The intermediate certificate data associated with the certificate in pem format.
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.
privateKey Changes to this property will trigger replacement. String

The private key associated with the certificate in pem format.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state String
The current state of the certificate.
subjectNames List<String>
The entity to be secured by the certificate and additional host names.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeNotValidAfter String
The date and time the certificate will expire.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.

Import

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

$ pulumi import oci:ApiGateway/certificate:Certificate test_certificate "id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.