1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CertificatesManagement
  5. getCertificateAuthorityVersions
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.CertificatesManagement.getCertificateAuthorityVersions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Certificate Authority Versions 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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCertificateAuthorityVersions = oci.CertificatesManagement.getCertificateAuthorityVersions({
        certificateAuthorityId: testCertificateAuthority.id,
        versionNumber: certificateAuthorityVersionVersionNumber,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_certificate_authority_versions = oci.CertificatesManagement.get_certificate_authority_versions(certificate_authority_id=test_certificate_authority["id"],
        version_number=certificate_authority_version_version_number)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CertificatesManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CertificatesManagement.GetCertificateAuthorityVersions(ctx, &certificatesmanagement.GetCertificateAuthorityVersionsArgs{
    			CertificateAuthorityId: testCertificateAuthority.Id,
    			VersionNumber:          pulumi.StringRef(certificateAuthorityVersionVersionNumber),
    		}, 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 testCertificateAuthorityVersions = Oci.CertificatesManagement.GetCertificateAuthorityVersions.Invoke(new()
        {
            CertificateAuthorityId = testCertificateAuthority.Id,
            VersionNumber = certificateAuthorityVersionVersionNumber,
        });
    
    });
    
    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.GetCertificateAuthorityVersionsArgs;
    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 testCertificateAuthorityVersions = CertificatesManagementFunctions.getCertificateAuthorityVersions(GetCertificateAuthorityVersionsArgs.builder()
                .certificateAuthorityId(testCertificateAuthority.id())
                .versionNumber(certificateAuthorityVersionVersionNumber)
                .build());
    
        }
    }
    
    variables:
      testCertificateAuthorityVersions:
        fn::invoke:
          Function: oci:CertificatesManagement:getCertificateAuthorityVersions
          Arguments:
            certificateAuthorityId: ${testCertificateAuthority.id}
            versionNumber: ${certificateAuthorityVersionVersionNumber}
    

    Using getCertificateAuthorityVersions

    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 getCertificateAuthorityVersions(args: GetCertificateAuthorityVersionsArgs, opts?: InvokeOptions): Promise<GetCertificateAuthorityVersionsResult>
    function getCertificateAuthorityVersionsOutput(args: GetCertificateAuthorityVersionsOutputArgs, opts?: InvokeOptions): Output<GetCertificateAuthorityVersionsResult>
    def get_certificate_authority_versions(certificate_authority_id: Optional[str] = None,
                                           filters: Optional[Sequence[_certificatesmanagement.GetCertificateAuthorityVersionsFilter]] = None,
                                           version_number: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetCertificateAuthorityVersionsResult
    def get_certificate_authority_versions_output(certificate_authority_id: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_certificatesmanagement.GetCertificateAuthorityVersionsFilterArgs]]]] = None,
                                           version_number: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetCertificateAuthorityVersionsResult]
    func GetCertificateAuthorityVersions(ctx *Context, args *GetCertificateAuthorityVersionsArgs, opts ...InvokeOption) (*GetCertificateAuthorityVersionsResult, error)
    func GetCertificateAuthorityVersionsOutput(ctx *Context, args *GetCertificateAuthorityVersionsOutputArgs, opts ...InvokeOption) GetCertificateAuthorityVersionsResultOutput

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

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

    The following arguments are supported:

    CertificateAuthorityId string
    The OCID of the certificate authority (CA).
    Filters List<GetCertificateAuthorityVersionsFilter>
    VersionNumber string
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    CertificateAuthorityId string
    The OCID of the certificate authority (CA).
    Filters []GetCertificateAuthorityVersionsFilter
    VersionNumber string
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificateAuthorityId String
    The OCID of the certificate authority (CA).
    filters List<GetCertificateAuthorityVersionsFilter>
    versionNumber String
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificateAuthorityId string
    The OCID of the certificate authority (CA).
    filters GetCertificateAuthorityVersionsFilter[]
    versionNumber string
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificate_authority_id str
    The OCID of the certificate authority (CA).
    filters Sequence[certificatesmanagement.GetCertificateAuthorityVersionsFilter]
    version_number str
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificateAuthorityId String
    The OCID of the certificate authority (CA).
    filters List<Property Map>
    versionNumber String
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.

    getCertificateAuthorityVersions Result

    The following output properties are available:

    CertificateAuthorityId string
    The OCID of the CA.
    CertificateAuthorityVersionCollections List<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollection>
    The list of certificate_authority_version_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetCertificateAuthorityVersionsFilter>
    VersionNumber string
    The version number of the CA.
    CertificateAuthorityId string
    The OCID of the CA.
    CertificateAuthorityVersionCollections []GetCertificateAuthorityVersionsCertificateAuthorityVersionCollection
    The list of certificate_authority_version_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetCertificateAuthorityVersionsFilter
    VersionNumber string
    The version number of the CA.
    certificateAuthorityId String
    The OCID of the CA.
    certificateAuthorityVersionCollections List<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollection>
    The list of certificate_authority_version_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetCertificateAuthorityVersionsFilter>
    versionNumber String
    The version number of the CA.
    certificateAuthorityId string
    The OCID of the CA.
    certificateAuthorityVersionCollections GetCertificateAuthorityVersionsCertificateAuthorityVersionCollection[]
    The list of certificate_authority_version_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetCertificateAuthorityVersionsFilter[]
    versionNumber string
    The version number of the CA.
    certificate_authority_id str
    The OCID of the CA.
    certificate_authority_version_collections Sequence[certificatesmanagement.GetCertificateAuthorityVersionsCertificateAuthorityVersionCollection]
    The list of certificate_authority_version_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[certificatesmanagement.GetCertificateAuthorityVersionsFilter]
    version_number str
    The version number of the CA.
    certificateAuthorityId String
    The OCID of the CA.
    certificateAuthorityVersionCollections List<Property Map>
    The list of certificate_authority_version_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    versionNumber String
    The version number of the CA.

    Supporting Types

    GetCertificateAuthorityVersionsCertificateAuthorityVersionCollection

    Items List<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItem>
    A list of certificate authority version summary objects.
    Items []GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItem
    A list of certificate authority version summary objects.
    items List<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItem>
    A list of certificate authority version summary objects.
    items GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItem[]
    A list of certificate authority version summary objects.
    items List<Property Map>
    A list of certificate authority version summary objects.

    GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItem

    CertificateAuthorityId string
    The OCID of the certificate authority (CA).
    IssuerCaVersionNumber string
    The version number of the issuing CA.
    RevocationStatuses List<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemRevocationStatus>
    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.
    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<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemValidity>
    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
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    CertificateAuthorityId string
    The OCID of the certificate authority (CA).
    IssuerCaVersionNumber string
    The version number of the issuing CA.
    RevocationStatuses []GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemRevocationStatus
    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.
    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 []GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemValidity
    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
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificateAuthorityId String
    The OCID of the certificate authority (CA).
    issuerCaVersionNumber String
    The version number of the issuing CA.
    revocationStatuses List<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemRevocationStatus>
    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.
    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<GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemValidity>
    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
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificateAuthorityId string
    The OCID of the certificate authority (CA).
    issuerCaVersionNumber string
    The version number of the issuing CA.
    revocationStatuses GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemRevocationStatus[]
    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.
    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 GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemValidity[]
    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
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificate_authority_id str
    The OCID of the certificate authority (CA).
    issuer_ca_version_number str
    The version number of the issuing CA.
    revocation_statuses Sequence[certificatesmanagement.GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemRevocationStatus]
    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.
    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 Sequence[certificatesmanagement.GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemValidity]
    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
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.
    certificateAuthorityId String
    The OCID of the certificate authority (CA).
    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.
    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
    A filter that returns only resources that match the specified version number. The default value is 0, which means that this filter is not applied.

    GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemRevocationStatus

    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

    GetCertificateAuthorityVersionsCertificateAuthorityVersionCollectionItemValidity

    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

    GetCertificateAuthorityVersionsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi