Oracle Cloud Infrastructure

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

getCertificateAuthorityVersion

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

Lists all versions for the specified certificate authority (CA). Optionally, you can use the parameter FilterByVersionNumberQueryParam to limit the results to a single item that matches the specified version number.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testCertificateAuthorityVersion = Output.Create(Oci.CertificatesManagement.GetCertificateAuthorityVersion.InvokeAsync(new Oci.CertificatesManagement.GetCertificateAuthorityVersionArgs
        {
            CertificateAuthorityId = oci_certificates_management_certificate_authority.Test_certificate_authority.Id,
            VersionNumber = @var.Certificate_authority_version_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.GetCertificateAuthorityVersion(ctx, &certificatesmanagement.GetCertificateAuthorityVersionArgs{
			CertificateAuthorityId: oci_certificates_management_certificate_authority.Test_certificate_authority.Id,
			VersionNumber:          _var.Certificate_authority_version_version_number,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_certificate_authority_version = oci.CertificatesManagement.get_certificate_authority_version(certificate_authority_id=oci_certificates_management_certificate_authority["test_certificate_authority"]["id"],
    version_number=var["certificate_authority_version_version_number"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCertificateAuthorityVersion = oci.CertificatesManagement.getCertificateAuthorityVersion({
    certificateAuthorityId: oci_certificates_management_certificate_authority.test_certificate_authority.id,
    versionNumber: _var.certificate_authority_version_version_number,
});

Coming soon!

Using getCertificateAuthorityVersion

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 getCertificateAuthorityVersion(args: GetCertificateAuthorityVersionArgs, opts?: InvokeOptions): Promise<GetCertificateAuthorityVersionResult>
function getCertificateAuthorityVersionOutput(args: GetCertificateAuthorityVersionOutputArgs, opts?: InvokeOptions): Output<GetCertificateAuthorityVersionResult>
def get_certificate_authority_version(certificate_authority_id: Optional[str] = None,
                                      certificate_authority_version_number: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetCertificateAuthorityVersionResult
def get_certificate_authority_version_output(certificate_authority_id: Optional[pulumi.Input[str]] = None,
                                      certificate_authority_version_number: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetCertificateAuthorityVersionResult]
func GetCertificateAuthorityVersion(ctx *Context, args *GetCertificateAuthorityVersionArgs, opts ...InvokeOption) (*GetCertificateAuthorityVersionResult, error)
func GetCertificateAuthorityVersionOutput(ctx *Context, args *GetCertificateAuthorityVersionOutputArgs, opts ...InvokeOption) GetCertificateAuthorityVersionResultOutput

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

public static class GetCertificateAuthorityVersion 
{
    public static Task<GetCertificateAuthorityVersionResult> InvokeAsync(GetCertificateAuthorityVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetCertificateAuthorityVersionResult> Invoke(GetCertificateAuthorityVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCertificateAuthorityVersionResult> getCertificateAuthorityVersion(GetCertificateAuthorityVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:CertificatesManagement/getCertificateAuthorityVersion:getCertificateAuthorityVersion
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CertificateAuthorityId string

The OCID of the certificate authority (CA).

CertificateAuthorityVersionNumber string
CertificateAuthorityId string

The OCID of the certificate authority (CA).

CertificateAuthorityVersionNumber string
certificateAuthorityId String

The OCID of the certificate authority (CA).

certificateAuthorityVersionNumber String
certificateAuthorityId string

The OCID of the certificate authority (CA).

certificateAuthorityVersionNumber string
certificate_authority_id str

The OCID of the certificate authority (CA).

certificate_authority_version_number str
certificateAuthorityId String

The OCID of the certificate authority (CA).

certificateAuthorityVersionNumber String

getCertificateAuthorityVersion Result

The following output properties are available:

CertificateAuthorityId string

The OCID of the CA.

CertificateAuthorityVersionNumber string
Id string

The provider-assigned unique ID for this managed resource.

IssuerCaVersionNumber string

The version number of the issuing CA.

RevocationStatuses List<GetCertificateAuthorityVersionRevocationStatus>

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 rotation states for this CA version.

SubjectAlternativeNames List<GetCertificateAuthorityVersionSubjectAlternativeName>
TimeCreated string

A optional property indicating when the CA 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 CA version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

Validities List<GetCertificateAuthorityVersionValidity>

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 CA version. When this value is not null, the name is unique across CA versions for a given CA.

VersionNumber string

The version number of the CA.

CertificateAuthorityId string

The OCID of the CA.

CertificateAuthorityVersionNumber string
Id string

The provider-assigned unique ID for this managed resource.

IssuerCaVersionNumber string

The version number of the issuing CA.

RevocationStatuses []GetCertificateAuthorityVersionRevocationStatus

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 rotation states for this CA version.

SubjectAlternativeNames []GetCertificateAuthorityVersionSubjectAlternativeName
TimeCreated string

A optional property indicating when the CA 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 CA version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

Validities []GetCertificateAuthorityVersionValidity

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 CA version. When this value is not null, the name is unique across CA versions for a given CA.

VersionNumber string

The version number of the CA.

certificateAuthorityId String

The OCID of the CA.

certificateAuthorityVersionNumber String
id String

The provider-assigned unique ID for this managed resource.

issuerCaVersionNumber String

The version number of the issuing CA.

revocationStatuses List<GetCertificateAuthorityVersionRevocationStatus>

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 rotation states for this CA version.

subjectAlternativeNames List<GetCertificateAuthorityVersionSubjectAlternativeName>
timeCreated String

A optional property indicating when the CA 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 CA version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

validities List<GetCertificateAuthorityVersionValidity>

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 CA version. When this value is not null, the name is unique across CA versions for a given CA.

versionNumber String

The version number of the CA.

certificateAuthorityId string

The OCID of the CA.

certificateAuthorityVersionNumber string
id string

The provider-assigned unique ID for this managed resource.

issuerCaVersionNumber string

The version number of the issuing CA.

revocationStatuses GetCertificateAuthorityVersionRevocationStatus[]

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 rotation states for this CA version.

subjectAlternativeNames GetCertificateAuthorityVersionSubjectAlternativeName[]
timeCreated string

A optional property indicating when the CA 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 CA version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

validities GetCertificateAuthorityVersionValidity[]

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 CA version. When this value is not null, the name is unique across CA versions for a given CA.

versionNumber string

The version number of the CA.

certificate_authority_id str

The OCID of the CA.

certificate_authority_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 CA.

revocation_statuses GetCertificateAuthorityVersionRevocationStatus]

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 rotation states for this CA version.

subject_alternative_names GetCertificateAuthorityVersionSubjectAlternativeName]
time_created str

A optional property indicating when the CA 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 CA version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

validities GetCertificateAuthorityVersionValidity]

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 CA version. When this value is not null, the name is unique across CA versions for a given CA.

version_number str

The version number of the CA.

certificateAuthorityId String

The OCID of the CA.

certificateAuthorityVersionNumber String
id String

The provider-assigned unique ID for this managed resource.

issuerCaVersionNumber String

The version number of the issuing 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 rotation states for this CA version.

subjectAlternativeNames List<Property Map>
timeCreated String

A optional property indicating when the CA 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 CA 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 CA version. When this value is not null, the name is unique across CA versions for a given CA.

versionNumber String

The version number of the CA.

Supporting Types

GetCertificateAuthorityVersionRevocationStatus

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

GetCertificateAuthorityVersionSubjectAlternativeName

Type string
Value string
Type string
Value string
type String
value String
type string
value string
type str
value str
type String
value String

GetCertificateAuthorityVersionValidity

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.