1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Waas
  5. getCertificate
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Waas.getCertificate

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Certificate resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

    Gets the details of an SSL certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCertificate = oci.Waas.getCertificate({
        certificateId: testCertificateOciWaasCertificate.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_certificate = oci.Waas.get_certificate(certificate_id=test_certificate_oci_waas_certificate["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Waas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Waas.GetCertificate(ctx, &waas.GetCertificateArgs{
    			CertificateId: testCertificateOciWaasCertificate.Id,
    		}, 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 testCertificate = Oci.Waas.GetCertificate.Invoke(new()
        {
            CertificateId = testCertificateOciWaasCertificate.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Waas.WaasFunctions;
    import com.pulumi.oci.Waas.inputs.GetCertificateArgs;
    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 testCertificate = WaasFunctions.getCertificate(GetCertificateArgs.builder()
                .certificateId(testCertificateOciWaasCertificate.id())
                .build());
    
        }
    }
    
    variables:
      testCertificate:
        fn::invoke:
          Function: oci:Waas:getCertificate
          Arguments:
            certificateId: ${testCertificateOciWaasCertificate.id}
    

    Using getCertificate

    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 getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
    function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>
    def get_certificate(certificate_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCertificateResult
    def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
    func GetCertificate(ctx *Context, args *GetCertificateArgs, opts ...InvokeOption) (*GetCertificateResult, error)
    func GetCertificateOutput(ctx *Context, args *GetCertificateOutputArgs, opts ...InvokeOption) GetCertificateResultOutput

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

    public static class GetCertificate 
    {
        public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Waas/getCertificate:getCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string
    The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
    CertificateId string
    The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
    certificateId String
    The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
    certificateId string
    The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
    certificate_id str
    The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
    certificateId String
    The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.

    getCertificate Result

    The following output properties are available:

    CertificateData string
    The data of the SSL certificate.
    CertificateId string
    CompartmentId string
    The OCID of the SSL certificate's compartment.
    DefinedTags Dictionary<string, string>
    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
    The user-friendly name of the SSL certificate.
    Extensions List<GetCertificateExtension>
    Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
    FreeformTags Dictionary<string, string>
    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"}
    Id string
    The OCID of the SSL certificate.
    IsTrustVerificationDisabled bool
    This indicates whether trust verification was disabled during the creation of SSL certificate. If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.
    IssuedBy string
    IssuerNames List<GetCertificateIssuerName>
    The issuer of the certificate.
    PrivateKeyData string
    PublicKeyInfos List<GetCertificatePublicKeyInfo>
    Information about the public key and the algorithm used by the public key.
    SerialNumber string
    A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
    SignatureAlgorithm string
    The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
    State string
    The current lifecycle state of the SSL certificate.
    SubjectNames List<GetCertificateSubjectName>
    The entity to be secured by the certificate.
    TimeCreated string
    The date and time the certificate was created, expressed in RFC 3339 timestamp format.
    TimeNotValidAfter string
    The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
    TimeNotValidBefore string
    The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
    Version int
    The version of the encoded certificate.
    CertificateData string
    The data of the SSL certificate.
    CertificateId string
    CompartmentId string
    The OCID of the SSL certificate's compartment.
    DefinedTags map[string]string
    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
    The user-friendly name of the SSL certificate.
    Extensions []GetCertificateExtension
    Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
    FreeformTags map[string]string
    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"}
    Id string
    The OCID of the SSL certificate.
    IsTrustVerificationDisabled bool
    This indicates whether trust verification was disabled during the creation of SSL certificate. If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.
    IssuedBy string
    IssuerNames []GetCertificateIssuerName
    The issuer of the certificate.
    PrivateKeyData string
    PublicKeyInfos []GetCertificatePublicKeyInfo
    Information about the public key and the algorithm used by the public key.
    SerialNumber string
    A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
    SignatureAlgorithm string
    The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
    State string
    The current lifecycle state of the SSL certificate.
    SubjectNames []GetCertificateSubjectName
    The entity to be secured by the certificate.
    TimeCreated string
    The date and time the certificate was created, expressed in RFC 3339 timestamp format.
    TimeNotValidAfter string
    The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
    TimeNotValidBefore string
    The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
    Version int
    The version of the encoded certificate.
    certificateData String
    The data of the SSL certificate.
    certificateId String
    compartmentId String
    The OCID of the SSL certificate's compartment.
    definedTags Map<String,String>
    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
    The user-friendly name of the SSL certificate.
    extensions List<GetCertificateExtension>
    Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
    freeformTags Map<String,String>
    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"}
    id String
    The OCID of the SSL certificate.
    isTrustVerificationDisabled Boolean
    This indicates whether trust verification was disabled during the creation of SSL certificate. If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.
    issuedBy String
    issuerNames List<GetCertificateIssuerName>
    The issuer of the certificate.
    privateKeyData String
    publicKeyInfos List<GetCertificatePublicKeyInfo>
    Information about the public key and the algorithm used by the public key.
    serialNumber String
    A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
    signatureAlgorithm String
    The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
    state String
    The current lifecycle state of the SSL certificate.
    subjectNames List<GetCertificateSubjectName>
    The entity to be secured by the certificate.
    timeCreated String
    The date and time the certificate was created, expressed in RFC 3339 timestamp format.
    timeNotValidAfter String
    The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
    timeNotValidBefore String
    The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
    version Integer
    The version of the encoded certificate.
    certificateData string
    The data of the SSL certificate.
    certificateId string
    compartmentId string
    The OCID of the SSL certificate's compartment.
    definedTags {[key: string]: string}
    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
    The user-friendly name of the SSL certificate.
    extensions GetCertificateExtension[]
    Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
    freeformTags {[key: string]: string}
    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"}
    id string
    The OCID of the SSL certificate.
    isTrustVerificationDisabled boolean
    This indicates whether trust verification was disabled during the creation of SSL certificate. If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.
    issuedBy string
    issuerNames GetCertificateIssuerName[]
    The issuer of the certificate.
    privateKeyData string
    publicKeyInfos GetCertificatePublicKeyInfo[]
    Information about the public key and the algorithm used by the public key.
    serialNumber string
    A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
    signatureAlgorithm string
    The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
    state string
    The current lifecycle state of the SSL certificate.
    subjectNames GetCertificateSubjectName[]
    The entity to be secured by the certificate.
    timeCreated string
    The date and time the certificate was created, expressed in RFC 3339 timestamp format.
    timeNotValidAfter string
    The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
    timeNotValidBefore string
    The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
    version number
    The version of the encoded certificate.
    certificate_data str
    The data of the SSL certificate.
    certificate_id str
    compartment_id str
    The OCID of the SSL certificate's compartment.
    defined_tags Mapping[str, str]
    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
    The user-friendly name of the SSL certificate.
    extensions Sequence[waas.GetCertificateExtension]
    Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
    freeform_tags Mapping[str, str]
    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"}
    id str
    The OCID of the SSL certificate.
    is_trust_verification_disabled bool
    This indicates whether trust verification was disabled during the creation of SSL certificate. If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.
    issued_by str
    issuer_names Sequence[waas.GetCertificateIssuerName]
    The issuer of the certificate.
    private_key_data str
    public_key_infos Sequence[waas.GetCertificatePublicKeyInfo]
    Information about the public key and the algorithm used by the public key.
    serial_number str
    A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
    signature_algorithm str
    The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
    state str
    The current lifecycle state of the SSL certificate.
    subject_names Sequence[waas.GetCertificateSubjectName]
    The entity to be secured by the certificate.
    time_created str
    The date and time the certificate was created, expressed in RFC 3339 timestamp format.
    time_not_valid_after str
    The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
    time_not_valid_before str
    The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
    version int
    The version of the encoded certificate.
    certificateData String
    The data of the SSL certificate.
    certificateId String
    compartmentId String
    The OCID of the SSL certificate's compartment.
    definedTags Map<String>
    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
    The user-friendly name of the SSL certificate.
    extensions List<Property Map>
    Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
    freeformTags Map<String>
    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"}
    id String
    The OCID of the SSL certificate.
    isTrustVerificationDisabled Boolean
    This indicates whether trust verification was disabled during the creation of SSL certificate. If true SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.
    issuedBy String
    issuerNames List<Property Map>
    The issuer of the certificate.
    privateKeyData String
    publicKeyInfos List<Property Map>
    Information about the public key and the algorithm used by the public key.
    serialNumber String
    A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
    signatureAlgorithm String
    The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
    state String
    The current lifecycle state of the SSL certificate.
    subjectNames List<Property Map>
    The entity to be secured by the certificate.
    timeCreated String
    The date and time the certificate was created, expressed in RFC 3339 timestamp format.
    timeNotValidAfter String
    The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
    timeNotValidBefore String
    The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
    version Number
    The version of the encoded certificate.

    Supporting Types

    GetCertificateExtension

    IsCritical bool
    The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
    Name string
    The certificate extension name.
    Value string
    The certificate extension value.
    IsCritical bool
    The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
    Name string
    The certificate extension name.
    Value string
    The certificate extension value.
    isCritical Boolean
    The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
    name String
    The certificate extension name.
    value String
    The certificate extension value.
    isCritical boolean
    The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
    name string
    The certificate extension name.
    value string
    The certificate extension value.
    is_critical bool
    The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
    name str
    The certificate extension name.
    value str
    The certificate extension value.
    isCritical Boolean
    The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
    name String
    The certificate extension name.
    value String
    The certificate extension value.

    GetCertificateIssuerName

    CommonName string
    The fully qualified domain name used for DNS lookups of the server.
    Country string
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    EmailAddress string
    The email address of the server's administrator.
    Locality string
    The city in which the organization is located.
    Organization string
    The organization name.
    OrganizationalUnit string
    The field to differentiate between divisions within an organization.
    StateProvince string
    The province where the organization is located.
    CommonName string
    The fully qualified domain name used for DNS lookups of the server.
    Country string
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    EmailAddress string
    The email address of the server's administrator.
    Locality string
    The city in which the organization is located.
    Organization string
    The organization name.
    OrganizationalUnit string
    The field to differentiate between divisions within an organization.
    StateProvince string
    The province where the organization is located.
    commonName String
    The fully qualified domain name used for DNS lookups of the server.
    country String
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    emailAddress String
    The email address of the server's administrator.
    locality String
    The city in which the organization is located.
    organization String
    The organization name.
    organizationalUnit String
    The field to differentiate between divisions within an organization.
    stateProvince String
    The province where the organization is located.
    commonName string
    The fully qualified domain name used for DNS lookups of the server.
    country string
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    emailAddress string
    The email address of the server's administrator.
    locality string
    The city in which the organization is located.
    organization string
    The organization name.
    organizationalUnit string
    The field to differentiate between divisions within an organization.
    stateProvince string
    The province where the organization is located.
    common_name str
    The fully qualified domain name used for DNS lookups of the server.
    country str
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    email_address str
    The email address of the server's administrator.
    locality str
    The city in which the organization is located.
    organization str
    The organization name.
    organizational_unit str
    The field to differentiate between divisions within an organization.
    state_province str
    The province where the organization is located.
    commonName String
    The fully qualified domain name used for DNS lookups of the server.
    country String
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    emailAddress String
    The email address of the server's administrator.
    locality String
    The city in which the organization is located.
    organization String
    The organization name.
    organizationalUnit String
    The field to differentiate between divisions within an organization.
    stateProvince String
    The province where the organization is located.

    GetCertificatePublicKeyInfo

    Algorithm string
    The algorithm identifier and parameters for the public key.
    Exponent int
    The private key exponent.
    KeySize int
    The number of bits in a key used by a cryptographic algorithm.
    Algorithm string
    The algorithm identifier and parameters for the public key.
    Exponent int
    The private key exponent.
    KeySize int
    The number of bits in a key used by a cryptographic algorithm.
    algorithm String
    The algorithm identifier and parameters for the public key.
    exponent Integer
    The private key exponent.
    keySize Integer
    The number of bits in a key used by a cryptographic algorithm.
    algorithm string
    The algorithm identifier and parameters for the public key.
    exponent number
    The private key exponent.
    keySize number
    The number of bits in a key used by a cryptographic algorithm.
    algorithm str
    The algorithm identifier and parameters for the public key.
    exponent int
    The private key exponent.
    key_size int
    The number of bits in a key used by a cryptographic algorithm.
    algorithm String
    The algorithm identifier and parameters for the public key.
    exponent Number
    The private key exponent.
    keySize Number
    The number of bits in a key used by a cryptographic algorithm.

    GetCertificateSubjectName

    CommonName string
    The fully qualified domain name used for DNS lookups of the server.
    Country string
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    EmailAddress string
    The email address of the server's administrator.
    Locality string
    The city in which the organization is located.
    Organization string
    The organization name.
    OrganizationalUnit string
    The field to differentiate between divisions within an organization.
    StateProvince string
    The province where the organization is located.
    CommonName string
    The fully qualified domain name used for DNS lookups of the server.
    Country string
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    EmailAddress string
    The email address of the server's administrator.
    Locality string
    The city in which the organization is located.
    Organization string
    The organization name.
    OrganizationalUnit string
    The field to differentiate between divisions within an organization.
    StateProvince string
    The province where the organization is located.
    commonName String
    The fully qualified domain name used for DNS lookups of the server.
    country String
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    emailAddress String
    The email address of the server's administrator.
    locality String
    The city in which the organization is located.
    organization String
    The organization name.
    organizationalUnit String
    The field to differentiate between divisions within an organization.
    stateProvince String
    The province where the organization is located.
    commonName string
    The fully qualified domain name used for DNS lookups of the server.
    country string
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    emailAddress string
    The email address of the server's administrator.
    locality string
    The city in which the organization is located.
    organization string
    The organization name.
    organizationalUnit string
    The field to differentiate between divisions within an organization.
    stateProvince string
    The province where the organization is located.
    common_name str
    The fully qualified domain name used for DNS lookups of the server.
    country str
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    email_address str
    The email address of the server's administrator.
    locality str
    The city in which the organization is located.
    organization str
    The organization name.
    organizational_unit str
    The field to differentiate between divisions within an organization.
    state_province str
    The province where the organization is located.
    commonName String
    The fully qualified domain name used for DNS lookups of the server.
    country String
    ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
    emailAddress String
    The email address of the server's administrator.
    locality String
    The city in which the organization is located.
    organization String
    The organization name.
    organizationalUnit String
    The field to differentiate between divisions within an organization.
    stateProvince String
    The province where the organization is located.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi