oci.CertificatesManagement.getCertificateVersion
Explore with Pulumi AI
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
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 = oci_certificates_management_certificate.Test_certificate.Id,
CertificateVersionNumber = @var.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: oci_certificates_management_certificate.Test_certificate.Id,
CertificateVersionNumber: _var.Certificate_version_certificate_version_number,
}, nil)
if err != nil {
return err
}
return nil
})
}
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(oci_certificates_management_certificate.test_certificate().id())
.certificateVersionNumber(var_.certificate_version_certificate_version_number())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_certificate_version = oci.CertificatesManagement.get_certificate_version(certificate_id=oci_certificates_management_certificate["test_certificate"]["id"],
certificate_version_number=var["certificate_version_certificate_version_number"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCertificateVersion = oci.CertificatesManagement.getCertificateVersion({
certificateId: oci_certificates_management_certificate.test_certificate.id,
certificateVersionNumber: _var.certificate_version_certificate_version_number,
});
variables:
testCertificateVersion:
fn::invoke:
Function: oci:CertificatesManagement:getCertificateVersion
Arguments:
certificateId: ${oci_certificates_management_certificate.test_certificate.id}
certificateVersionNumber: ${var.certificate_version_certificate_version_number}
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:
- Certificate
Id string The OCID of the certificate.
- Certificate
Version stringNumber The version number of the certificate.
- Certificate
Id string The OCID of the certificate.
- Certificate
Version stringNumber The version number of the certificate.
- certificate
Id String The OCID of the certificate.
- certificate
Version StringNumber The version number of the certificate.
- certificate
Id string The OCID of the certificate.
- certificate
Version stringNumber The version number of the certificate.
- certificate_
id str The OCID of the certificate.
- certificate_
version_ strnumber The version number of the certificate.
- certificate
Id String The OCID of the certificate.
- certificate
Version StringNumber The version number of the certificate.
getCertificateVersion Result
The following output properties are available:
- Certificate
Id string The OCID of the certificate.
- Certificate
Version stringNumber - Id string
The provider-assigned unique ID for this managed resource.
- Issuer
Ca stringVersion Number The version number of the issuing certificate authority (CA).
- Revocation
Statuses List<GetCertificate Version Revocation Status> The current revocation status of the entity.
- Serial
Number 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.
- Subject
Alternative List<GetNames Certificate Version Subject Alternative Name> A list of subject alternative names.
- Time
Created string 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 stringDeletion 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<Get
Certificate Version Validity> 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 string The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
- Version
Number string The version number of the certificate.
- Certificate
Id string The OCID of the certificate.
- Certificate
Version stringNumber - Id string
The provider-assigned unique ID for this managed resource.
- Issuer
Ca stringVersion Number The version number of the issuing certificate authority (CA).
- Revocation
Statuses []GetCertificate Version Revocation Status The current revocation status of the entity.
- Serial
Number 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.
- Subject
Alternative []GetNames Certificate Version Subject Alternative Name A list of subject alternative names.
- Time
Created string 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 stringDeletion An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Validities
[]Get
Certificate Version Validity 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 string The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
- Version
Number string The version number of the certificate.
- certificate
Id String The OCID of the certificate.
- certificate
Version StringNumber - id String
The provider-assigned unique ID for this managed resource.
- issuer
Ca StringVersion Number The version number of the issuing certificate authority (CA).
- revocation
Statuses List<GetCertificate Version Revocation Status> The current revocation status of the entity.
- serial
Number 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.
- subject
Alternative List<GetNames Certificate Version Subject Alternative Name> A list of subject alternative names.
- time
Created String 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 StringDeletion 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<Get
Certificate Version Validity> 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 String The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
- version
Number String The version number of the certificate.
- certificate
Id string The OCID of the certificate.
- certificate
Version stringNumber - id string
The provider-assigned unique ID for this managed resource.
- issuer
Ca stringVersion Number The version number of the issuing certificate authority (CA).
- revocation
Statuses GetCertificate Version Revocation Status[] The current revocation status of the entity.
- serial
Number 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.
- subject
Alternative GetNames Certificate Version Subject Alternative Name[] A list of subject alternative names.
- time
Created string 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 stringDeletion An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- validities
Get
Certificate Version Validity[] 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 string The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
- version
Number string The version number of the certificate.
- certificate_
id str The OCID of the certificate.
- certificate_
version_ strnumber - id str
The provider-assigned unique ID for this managed resource.
- issuer_
ca_ strversion_ number The version number of the issuing certificate authority (CA).
- revocation_
statuses GetCertificate Version Revocation Status] 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_ Getnames Certificate Version Subject Alternative Name] 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_ strdeletion An optional property indicating when to delete the certificate version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- validities
Get
Certificate Version Validity] 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.
- certificate
Id String The OCID of the certificate.
- certificate
Version StringNumber - id String
The provider-assigned unique ID for this managed resource.
- issuer
Ca StringVersion Number The version number of the issuing certificate authority (CA).
- revocation
Statuses List<Property Map> The current revocation status of the entity.
- serial
Number 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.
- subject
Alternative List<Property Map>Names A list of subject alternative names.
- time
Created String 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 StringDeletion 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.
- version
Name String The name of the certificate version. When the value is not null, a name is unique across versions of a given certificate.
- version
Number String The version number of the certificate.
Supporting Types
GetCertificateVersionRevocationStatus
- Revocation
Reason string The reason the certificate or certificate authority (CA) was revoked.
- Time
Of stringRevocation The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Revocation
Reason string The reason the certificate or certificate authority (CA) was revoked.
- Time
Of stringRevocation The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- revocation
Reason String The reason the certificate or certificate authority (CA) was revoked.
- time
Of StringRevocation The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- revocation
Reason string The reason the certificate or certificate authority (CA) was revoked.
- time
Of stringRevocation 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_ strrevocation The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- revocation
Reason String The reason the certificate or certificate authority (CA) was revoked.
- time
Of StringRevocation The time when the entity was revoked, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
GetCertificateVersionSubjectAlternativeName
GetCertificateVersionValidity
- Time
Of stringValidity Not After The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of stringValidity Not Before The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of stringValidity Not After The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of stringValidity Not Before The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of StringValidity Not After The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of StringValidity Not Before The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of stringValidity Not After The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of stringValidity Not Before The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time_
of_ strvalidity_ not_ after The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time_
of_ strvalidity_ not_ before The date on which the certificate validity period begins, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of StringValidity Not After The date on which the certificate validity period ends, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of StringValidity Not Before 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.