1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CertificatesManagement
  5. getCertificateVersion
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.CertificatesManagement.getCertificateVersion

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides details about a specific Certificate Version resource in Oracle Cloud Infrastructure Certificates Management service.

    Gets details about the specified version of a certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCertificateVersion = oci.CertificatesManagement.getCertificateVersion({
        certificateId: testCertificate.id,
        certificateVersionNumber: certificateVersionCertificateVersionNumber,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_certificate_version = oci.CertificatesManagement.get_certificate_version(certificate_id=test_certificate["id"],
        certificate_version_number=certificate_version_certificate_version_number)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CertificatesManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CertificatesManagement.GetCertificateVersion(ctx, &certificatesmanagement.GetCertificateVersionArgs{
    			CertificateId:            testCertificate.Id,
    			CertificateVersionNumber: certificateVersionCertificateVersionNumber,
    		}, nil)
    		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 testCertificateVersion = Oci.CertificatesManagement.GetCertificateVersion.Invoke(new()
        {
            CertificateId = testCertificate.Id,
            CertificateVersionNumber = certificateVersionCertificateVersionNumber,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CertificatesManagement.CertificatesManagementFunctions;
    import com.pulumi.oci.CertificatesManagement.inputs.GetCertificateVersionArgs;
    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) {
            final var testCertificateVersion = CertificatesManagementFunctions.getCertificateVersion(GetCertificateVersionArgs.builder()
                .certificateId(testCertificate.id())
                .certificateVersionNumber(certificateVersionCertificateVersionNumber)
                .build());
    
        }
    }
    
    variables:
      testCertificateVersion:
        fn::invoke:
          Function: oci:CertificatesManagement:getCertificateVersion
          Arguments:
            certificateId: ${testCertificate.id}
            certificateVersionNumber: ${certificateVersionCertificateVersionNumber}
    

    Using getCertificateVersion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCertificateVersion(args: GetCertificateVersionArgs, opts?: InvokeOptions): Promise<GetCertificateVersionResult>
    function getCertificateVersionOutput(args: GetCertificateVersionOutputArgs, opts?: InvokeOptions): Output<GetCertificateVersionResult>
    def get_certificate_version(certificate_id: Optional[str] = None,
                                certificate_version_number: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCertificateVersionResult
    def get_certificate_version_output(certificate_id: Optional[pulumi.Input[str]] = None,
                                certificate_version_number: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCertificateVersionResult]
    func GetCertificateVersion(ctx *Context, args *GetCertificateVersionArgs, opts ...InvokeOption) (*GetCertificateVersionResult, error)
    func GetCertificateVersionOutput(ctx *Context, args *GetCertificateVersionOutputArgs, opts ...InvokeOption) GetCertificateVersionResultOutput

    > Note: This function is named GetCertificateVersion in the Go SDK.

    public static class GetCertificateVersion 
    {
        public static Task<GetCertificateVersionResult> InvokeAsync(GetCertificateVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetCertificateVersionResult> Invoke(GetCertificateVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCertificateVersionResult> getCertificateVersion(GetCertificateVersionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CertificatesManagement/getCertificateVersion:getCertificateVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string
    The OCID of the certificate.
    CertificateVersionNumber string
    The version number of the certificate.
    CertificateId string
    The OCID of the certificate.
    CertificateVersionNumber string
    The version number of the certificate.
    certificateId String
    The OCID of the certificate.
    certificateVersionNumber String
    The version number of the certificate.
    certificateId string
    The OCID of the certificate.
    certificateVersionNumber string
    The version number of the certificate.
    certificate_id str
    The OCID of the certificate.
    certificate_version_number str
    The version number of the certificate.
    certificateId String
    The OCID of the certificate.
    certificateVersionNumber String
    The version number of the certificate.

    getCertificateVersion Result

    The following output properties are available:

    CertificateId string
    The OCID of the certificate.
    CertificateVersionNumber string
    Id string
    The provider-assigned unique ID for this managed resource.
    IssuerCaVersionNumber string
    The version number of the issuing certificate authority (CA).
    RevocationStatuses List<GetCertificateVersionRevocationStatus>
    The current revocation status of the entity.
    SerialNumber string
    A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF
    Stages List<string>
    A list of stages of this entity.
    SubjectAlternativeNames List<GetCertificateVersionSubjectAlternativeName>
    A list of subject alternative names.
    TimeCreated string
    A optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfDeletion string
    An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    Validities List<GetCertificateVersionValidity>
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    VersionName string
    The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
    VersionNumber string
    The version number of the certificate.
    CertificateId string
    The OCID of the certificate.
    CertificateVersionNumber string
    Id string
    The provider-assigned unique ID for this managed resource.
    IssuerCaVersionNumber string
    The version number of the issuing certificate authority (CA).
    RevocationStatuses []GetCertificateVersionRevocationStatus
    The current revocation status of the entity.
    SerialNumber string
    A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF
    Stages []string
    A list of stages of this entity.
    SubjectAlternativeNames []GetCertificateVersionSubjectAlternativeName
    A list of subject alternative names.
    TimeCreated string
    A optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfDeletion string
    An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    Validities []GetCertificateVersionValidity
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    VersionName string
    The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
    VersionNumber string
    The version number of the certificate.
    certificateId String
    The OCID of the certificate.
    certificateVersionNumber String
    id String
    The provider-assigned unique ID for this managed resource.
    issuerCaVersionNumber String
    The version number of the issuing certificate authority (CA).
    revocationStatuses List<GetCertificateVersionRevocationStatus>
    The current revocation status of the entity.
    serialNumber String
    A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF
    stages List<String>
    A list of stages of this entity.
    subjectAlternativeNames List<GetCertificateVersionSubjectAlternativeName>
    A list of subject alternative names.
    timeCreated String
    A optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfDeletion String
    An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    validities List<GetCertificateVersionValidity>
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    versionName String
    The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
    versionNumber String
    The version number of the certificate.
    certificateId string
    The OCID of the certificate.
    certificateVersionNumber string
    id string
    The provider-assigned unique ID for this managed resource.
    issuerCaVersionNumber string
    The version number of the issuing certificate authority (CA).
    revocationStatuses GetCertificateVersionRevocationStatus[]
    The current revocation status of the entity.
    serialNumber string
    A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF
    stages string[]
    A list of stages of this entity.
    subjectAlternativeNames GetCertificateVersionSubjectAlternativeName[]
    A list of subject alternative names.
    timeCreated string
    A optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfDeletion string
    An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    validities GetCertificateVersionValidity[]
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    versionName string
    The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
    versionNumber string
    The version number of the certificate.
    certificate_id str
    The OCID of the certificate.
    certificate_version_number str
    id str
    The provider-assigned unique ID for this managed resource.
    issuer_ca_version_number str
    The version number of the issuing certificate authority (CA).
    revocation_statuses Sequence[certificatesmanagement.GetCertificateVersionRevocationStatus]
    The current revocation status of the entity.
    serial_number str
    A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF
    stages Sequence[str]
    A list of stages of this entity.
    subject_alternative_names Sequence[certificatesmanagement.GetCertificateVersionSubjectAlternativeName]
    A list of subject alternative names.
    time_created str
    A optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    time_of_deletion str
    An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    validities Sequence[certificatesmanagement.GetCertificateVersionValidity]
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    version_name str
    The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
    version_number str
    The version number of the certificate.
    certificateId String
    The OCID of the certificate.
    certificateVersionNumber String
    id String
    The provider-assigned unique ID for this managed resource.
    issuerCaVersionNumber String
    The version number of the issuing certificate authority (CA).
    revocationStatuses List<Property Map>
    The current revocation status of the entity.
    serialNumber String
    A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF
    stages List<String>
    A list of stages of this entity.
    subjectAlternativeNames List<Property Map>
    A list of subject alternative names.
    timeCreated String
    A optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfDeletion String
    An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    validities List<Property Map>
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    versionName String
    The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
    versionNumber String
    The version number of the certificate.

    Supporting Types

    GetCertificateVersionRevocationStatus

    RevocationReason string
    The reason the certificate or certificate authority (CA) was revoked.
    TimeOfRevocation string
    The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    RevocationReason string
    The reason the certificate or certificate authority (CA) was revoked.
    TimeOfRevocation string
    The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    revocationReason String
    The reason the certificate or certificate authority (CA) was revoked.
    timeOfRevocation String
    The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    revocationReason string
    The reason the certificate or certificate authority (CA) was revoked.
    timeOfRevocation string
    The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    revocation_reason str
    The reason the certificate or certificate authority (CA) was revoked.
    time_of_revocation str
    The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    revocationReason String
    The reason the certificate or certificate authority (CA) was revoked.
    timeOfRevocation String
    The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

    GetCertificateVersionSubjectAlternativeName

    Type string
    The subject alternative name type. Currently only DNS domain or host names and IP addresses are supported.
    Value string
    The subject alternative name.
    Type string
    The subject alternative name type. Currently only DNS domain or host names and IP addresses are supported.
    Value string
    The subject alternative name.
    type String
    The subject alternative name type. Currently only DNS domain or host names and IP addresses are supported.
    value String
    The subject alternative name.
    type string
    The subject alternative name type. Currently only DNS domain or host names and IP addresses are supported.
    value string
    The subject alternative name.
    type str
    The subject alternative name type. Currently only DNS domain or host names and IP addresses are supported.
    value str
    The subject alternative name.
    type String
    The subject alternative name type. Currently only DNS domain or host names and IP addresses are supported.
    value String
    The subject alternative name.

    GetCertificateVersionValidity

    TimeOfValidityNotAfter string
    The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfValidityNotBefore string
    The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfValidityNotAfter string
    The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfValidityNotBefore string
    The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfValidityNotAfter String
    The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfValidityNotBefore String
    The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfValidityNotAfter string
    The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfValidityNotBefore string
    The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    time_of_validity_not_after str
    The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    time_of_validity_not_before str
    The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfValidityNotAfter String
    The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfValidityNotBefore String
    The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi