1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApiGateway
  5. Certificate
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.ApiGateway.Certificate

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    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,
        locks: [{
            type: certificateLocksType,
            message: certificateLocksMessage,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_certificate = oci.apigateway.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,
        locks=[{
            "type": certificate_locks_type,
            "message": certificate_locks_message,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/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),
    			Locks: apigateway.CertificateLockArray{
    				&apigateway.CertificateLockArgs{
    					Type:    pulumi.Any(certificateLocksType),
    					Message: pulumi.Any(certificateLocksMessage),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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,
            Locks = new[]
            {
                new Oci.ApiGateway.Inputs.CertificateLockArgs
                {
                    Type = certificateLocksType,
                    Message = certificateLocksMessage,
                },
            },
        });
    
    });
    
    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 com.pulumi.oci.ApiGateway.inputs.CertificateLockArgs;
    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)
                .locks(CertificateLockArgs.builder()
                    .type(certificateLocksType)
                    .message(certificateLocksMessage)
                    .build())
                .build());
    
        }
    }
    
    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}
          locks:
            - type: ${certificateLocksType}
              message: ${certificateLocksMessage}
    

    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,
                    is_lock_override: Optional[bool] = None,
                    locks: Optional[Sequence[CertificateLockArgs]] = 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 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.

    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",
        IsLockOverride = false,
        Locks = new[]
        {
            new Oci.ApiGateway.Inputs.CertificateLockArgs
            {
                Type = "string",
                Message = "string",
                RelatedResourceId = "string",
                TimeCreated = "string",
            },
        },
    });
    
    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"),
    	IsLockOverride:           pulumi.Bool(false),
    	Locks: apigateway.CertificateLockArray{
    		&apigateway.CertificateLockArgs{
    			Type:              pulumi.String("string"),
    			Message:           pulumi.String("string"),
    			RelatedResourceId: pulumi.String("string"),
    			TimeCreated:       pulumi.String("string"),
    		},
    	},
    })
    
    var certificateResource = new com.pulumi.oci.ApiGateway.Certificate("certificateResource", com.pulumi.oci.ApiGateway.CertificateArgs.builder()
        .certificate("string")
        .compartmentId("string")
        .privateKey("string")
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .intermediateCertificates("string")
        .isLockOverride(false)
        .locks(CertificateLockArgs.builder()
            .type("string")
            .message("string")
            .relatedResourceId("string")
            .timeCreated("string")
            .build())
        .build());
    
    certificate_resource = oci.apigateway.Certificate("certificateResource",
        certificate="string",
        compartment_id="string",
        private_key="string",
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        intermediate_certificates="string",
        is_lock_override=False,
        locks=[{
            "type": "string",
            "message": "string",
            "related_resource_id": "string",
            "time_created": "string",
        }])
    
    const certificateResource = new oci.apigateway.Certificate("certificateResource", {
        certificate: "string",
        compartmentId: "string",
        privateKey: "string",
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        intermediateCertificates: "string",
        isLockOverride: false,
        locks: [{
            type: "string",
            message: "string",
            relatedResourceId: "string",
            timeCreated: "string",
        }],
    });
    
    type: oci:ApiGateway:Certificate
    properties:
        certificate: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        intermediateCertificates: string
        isLockOverride: false
        locks:
            - message: string
              relatedResourceId: string
              timeCreated: string
              type: string
        privateKey: string
    

    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 string
    The data of the leaf certificate in pem format.
    CompartmentId string
    (Updatable) The OCID of the compartment in which the resource is created.
    PrivateKey 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 string
    The intermediate certificate data associated with the certificate in pem format.
    IsLockOverride bool
    Locks List<CertificateLock>
    Locks associated with this resource.
    Certificate string
    The data of the leaf certificate in pem format.
    CompartmentId string
    (Updatable) The OCID of the compartment in which the resource is created.
    PrivateKey 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 string
    The intermediate certificate data associated with the certificate in pem format.
    IsLockOverride bool
    Locks []CertificateLockArgs
    Locks associated with this resource.
    certificate String
    The data of the leaf certificate in pem format.
    compartmentId String
    (Updatable) The OCID of the compartment in which the resource is created.
    privateKey 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 String
    The intermediate certificate data associated with the certificate in pem format.
    isLockOverride Boolean
    locks List<CertificateLock>
    Locks associated with this resource.
    certificate string
    The data of the leaf certificate in pem format.
    compartmentId string
    (Updatable) The OCID of the compartment in which the resource is created.
    privateKey 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 string
    The intermediate certificate data associated with the certificate in pem format.
    isLockOverride boolean
    locks CertificateLock[]
    Locks associated with this resource.
    certificate 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.
    private_key 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 str
    The intermediate certificate data associated with the certificate in pem format.
    is_lock_override bool
    locks Sequence[CertificateLockArgs]
    Locks associated with this resource.
    certificate String
    The data of the leaf certificate in pem format.
    compartmentId String
    (Updatable) The OCID of the compartment in which the resource is created.
    privateKey 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 String
    The intermediate certificate data associated with the certificate in pem format.
    isLockOverride Boolean
    locks List<Property Map>
    Locks associated with this resource.

    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.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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,
            is_lock_override: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            locks: Optional[Sequence[CertificateLockArgs]] = None,
            private_key: Optional[str] = None,
            state: Optional[str] = None,
            subject_names: Optional[Sequence[str]] = None,
            system_tags: Optional[Mapping[str, 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
    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:
    CertificateDetails 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 string
    The intermediate certificate data associated with the certificate in pem format.
    IsLockOverride bool
    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.
    Locks List<CertificateLock>
    Locks associated with this resource.
    PrivateKey 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.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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 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 string
    The intermediate certificate data associated with the certificate in pem format.
    IsLockOverride bool
    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.
    Locks []CertificateLockArgs
    Locks associated with this resource.
    PrivateKey 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.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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 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 String
    The intermediate certificate data associated with the certificate in pem format.
    isLockOverride Boolean
    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.
    locks List<CertificateLock>
    Locks associated with this resource.
    privateKey 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.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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 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 string
    The intermediate certificate data associated with the certificate in pem format.
    isLockOverride boolean
    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.
    locks CertificateLock[]
    Locks associated with this resource.
    privateKey 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.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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 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 str
    The intermediate certificate data associated with the certificate in pem format.
    is_lock_override bool
    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.
    locks Sequence[CertificateLockArgs]
    Locks associated with this resource.
    private_key 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.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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 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 String
    The intermediate certificate data associated with the certificate in pem format.
    isLockOverride Boolean
    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.
    locks List<Property Map>
    Locks associated with this resource.
    privateKey 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.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.

    Supporting Types

    CertificateLock, CertificateLockArgs

    Type string
    Type of the lock.
    Message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    RelatedResourceId string
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    Type string
    Type of the lock.
    Message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    RelatedResourceId string
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    type String
    Type of the lock.
    message String
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId String
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    type string
    Type of the lock.
    message string
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId string
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    type str
    Type of the lock.
    message str
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    related_resource_id str
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    time_created str
    The time this resource was created. An RFC3339 formatted datetime string.
    type String
    Type of the lock.
    message String
    A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
    relatedResourceId String
    The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.

    Import

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

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

    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.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi