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

oci.GoldenGate.getDeploymentCertificate

Explore with Pulumi AI

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

    This data source provides details about a specific Deployment Certificate resource in Oracle Cloud Infrastructure Golden Gate service.

    Retrieves a Certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDeploymentCertificate = oci.GoldenGate.getDeploymentCertificate({
        certificateKey: deploymentCertificateCertificateKey,
        deploymentId: testDeployment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_deployment_certificate = oci.GoldenGate.get_deployment_certificate(certificate_key=deployment_certificate_certificate_key,
        deployment_id=test_deployment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/GoldenGate"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := GoldenGate.GetDeploymentCertificate(ctx, &goldengate.GetDeploymentCertificateArgs{
    			CertificateKey: deploymentCertificateCertificateKey,
    			DeploymentId:   testDeployment.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 testDeploymentCertificate = Oci.GoldenGate.GetDeploymentCertificate.Invoke(new()
        {
            CertificateKey = deploymentCertificateCertificateKey,
            DeploymentId = testDeployment.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GoldenGate.GoldenGateFunctions;
    import com.pulumi.oci.GoldenGate.inputs.GetDeploymentCertificateArgs;
    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 testDeploymentCertificate = GoldenGateFunctions.getDeploymentCertificate(GetDeploymentCertificateArgs.builder()
                .certificateKey(deploymentCertificateCertificateKey)
                .deploymentId(testDeployment.id())
                .build());
    
        }
    }
    
    variables:
      testDeploymentCertificate:
        fn::invoke:
          Function: oci:GoldenGate:getDeploymentCertificate
          Arguments:
            certificateKey: ${deploymentCertificateCertificateKey}
            deploymentId: ${testDeployment.id}
    

    Using getDeploymentCertificate

    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 getDeploymentCertificate(args: GetDeploymentCertificateArgs, opts?: InvokeOptions): Promise<GetDeploymentCertificateResult>
    function getDeploymentCertificateOutput(args: GetDeploymentCertificateOutputArgs, opts?: InvokeOptions): Output<GetDeploymentCertificateResult>
    def get_deployment_certificate(certificate_key: Optional[str] = None,
                                   deployment_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDeploymentCertificateResult
    def get_deployment_certificate_output(certificate_key: Optional[pulumi.Input[str]] = None,
                                   deployment_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentCertificateResult]
    func GetDeploymentCertificate(ctx *Context, args *GetDeploymentCertificateArgs, opts ...InvokeOption) (*GetDeploymentCertificateResult, error)
    func GetDeploymentCertificateOutput(ctx *Context, args *GetDeploymentCertificateOutputArgs, opts ...InvokeOption) GetDeploymentCertificateResultOutput

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

    public static class GetDeploymentCertificate 
    {
        public static Task<GetDeploymentCertificateResult> InvokeAsync(GetDeploymentCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetDeploymentCertificateResult> Invoke(GetDeploymentCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeploymentCertificateResult> getDeploymentCertificate(GetDeploymentCertificateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:GoldenGate/getDeploymentCertificate:getDeploymentCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateKey string
    A unique certificate identifier.
    DeploymentId string
    A unique Deployment identifier.
    CertificateKey string
    A unique certificate identifier.
    DeploymentId string
    A unique Deployment identifier.
    certificateKey String
    A unique certificate identifier.
    deploymentId String
    A unique Deployment identifier.
    certificateKey string
    A unique certificate identifier.
    deploymentId string
    A unique Deployment identifier.
    certificate_key str
    A unique certificate identifier.
    deployment_id str
    A unique Deployment identifier.
    certificateKey String
    A unique certificate identifier.
    deploymentId String
    A unique Deployment identifier.

    getDeploymentCertificate Result

    The following output properties are available:

    AuthorityKeyId string
    The Certificate authority key id.
    CertificateContent string
    The base64 encoded content of the PEM file containing the SSL certificate.
    CertificateKey string
    DeploymentId string
    The OCID of the deployment being referenced.
    Id string
    IsCa bool
    Indicates if the certificate is ca.
    IsLockOverride bool
    IsSelfSigned bool
    Indicates if the certificate is self signed.
    Issuer string
    The Certificate issuer.
    Key string
    The identifier key (unique name in the scope of the deployment) of the certificate being referenced. It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
    Md5hash string
    The Certificate md5Hash.
    PublicKey string
    The Certificate public key.
    PublicKeyAlgorithm string
    The Certificate public key algorithm.
    PublicKeySize string
    The Certificate public key size.
    Serial string
    The Certificate serial.
    Sha1hash string
    The Certificate sha1 hash.
    State string
    Possible certificate lifecycle states.
    Subject string
    The Certificate subject.
    SubjectKeyId string
    The Certificate subject key id.
    TimeCreated string
    The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    TimeValidFrom string
    The time the certificate is valid from. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    TimeValidTo string
    The time the certificate is valid to. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    Version string
    The Certificate version.
    AuthorityKeyId string
    The Certificate authority key id.
    CertificateContent string
    The base64 encoded content of the PEM file containing the SSL certificate.
    CertificateKey string
    DeploymentId string
    The OCID of the deployment being referenced.
    Id string
    IsCa bool
    Indicates if the certificate is ca.
    IsLockOverride bool
    IsSelfSigned bool
    Indicates if the certificate is self signed.
    Issuer string
    The Certificate issuer.
    Key string
    The identifier key (unique name in the scope of the deployment) of the certificate being referenced. It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
    Md5hash string
    The Certificate md5Hash.
    PublicKey string
    The Certificate public key.
    PublicKeyAlgorithm string
    The Certificate public key algorithm.
    PublicKeySize string
    The Certificate public key size.
    Serial string
    The Certificate serial.
    Sha1hash string
    The Certificate sha1 hash.
    State string
    Possible certificate lifecycle states.
    Subject string
    The Certificate subject.
    SubjectKeyId string
    The Certificate subject key id.
    TimeCreated string
    The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    TimeValidFrom string
    The time the certificate is valid from. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    TimeValidTo string
    The time the certificate is valid to. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    Version string
    The Certificate version.
    authorityKeyId String
    The Certificate authority key id.
    certificateContent String
    The base64 encoded content of the PEM file containing the SSL certificate.
    certificateKey String
    deploymentId String
    The OCID of the deployment being referenced.
    id String
    isCa Boolean
    Indicates if the certificate is ca.
    isLockOverride Boolean
    isSelfSigned Boolean
    Indicates if the certificate is self signed.
    issuer String
    The Certificate issuer.
    key String
    The identifier key (unique name in the scope of the deployment) of the certificate being referenced. It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
    md5hash String
    The Certificate md5Hash.
    publicKey String
    The Certificate public key.
    publicKeyAlgorithm String
    The Certificate public key algorithm.
    publicKeySize String
    The Certificate public key size.
    serial String
    The Certificate serial.
    sha1hash String
    The Certificate sha1 hash.
    state String
    Possible certificate lifecycle states.
    subject String
    The Certificate subject.
    subjectKeyId String
    The Certificate subject key id.
    timeCreated String
    The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    timeValidFrom String
    The time the certificate is valid from. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    timeValidTo String
    The time the certificate is valid to. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    version String
    The Certificate version.
    authorityKeyId string
    The Certificate authority key id.
    certificateContent string
    The base64 encoded content of the PEM file containing the SSL certificate.
    certificateKey string
    deploymentId string
    The OCID of the deployment being referenced.
    id string
    isCa boolean
    Indicates if the certificate is ca.
    isLockOverride boolean
    isSelfSigned boolean
    Indicates if the certificate is self signed.
    issuer string
    The Certificate issuer.
    key string
    The identifier key (unique name in the scope of the deployment) of the certificate being referenced. It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
    md5hash string
    The Certificate md5Hash.
    publicKey string
    The Certificate public key.
    publicKeyAlgorithm string
    The Certificate public key algorithm.
    publicKeySize string
    The Certificate public key size.
    serial string
    The Certificate serial.
    sha1hash string
    The Certificate sha1 hash.
    state string
    Possible certificate lifecycle states.
    subject string
    The Certificate subject.
    subjectKeyId string
    The Certificate subject key id.
    timeCreated string
    The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    timeValidFrom string
    The time the certificate is valid from. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    timeValidTo string
    The time the certificate is valid to. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    version string
    The Certificate version.
    authority_key_id str
    The Certificate authority key id.
    certificate_content str
    The base64 encoded content of the PEM file containing the SSL certificate.
    certificate_key str
    deployment_id str
    The OCID of the deployment being referenced.
    id str
    is_ca bool
    Indicates if the certificate is ca.
    is_lock_override bool
    is_self_signed bool
    Indicates if the certificate is self signed.
    issuer str
    The Certificate issuer.
    key str
    The identifier key (unique name in the scope of the deployment) of the certificate being referenced. It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
    md5hash str
    The Certificate md5Hash.
    public_key str
    The Certificate public key.
    public_key_algorithm str
    The Certificate public key algorithm.
    public_key_size str
    The Certificate public key size.
    serial str
    The Certificate serial.
    sha1hash str
    The Certificate sha1 hash.
    state str
    Possible certificate lifecycle states.
    subject str
    The Certificate subject.
    subject_key_id str
    The Certificate subject key id.
    time_created str
    The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    time_valid_from str
    The time the certificate is valid from. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    time_valid_to str
    The time the certificate is valid to. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    version str
    The Certificate version.
    authorityKeyId String
    The Certificate authority key id.
    certificateContent String
    The base64 encoded content of the PEM file containing the SSL certificate.
    certificateKey String
    deploymentId String
    The OCID of the deployment being referenced.
    id String
    isCa Boolean
    Indicates if the certificate is ca.
    isLockOverride Boolean
    isSelfSigned Boolean
    Indicates if the certificate is self signed.
    issuer String
    The Certificate issuer.
    key String
    The identifier key (unique name in the scope of the deployment) of the certificate being referenced. It must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
    md5hash String
    The Certificate md5Hash.
    publicKey String
    The Certificate public key.
    publicKeyAlgorithm String
    The Certificate public key algorithm.
    publicKeySize String
    The Certificate public key size.
    serial String
    The Certificate serial.
    sha1hash String
    The Certificate sha1 hash.
    state String
    Possible certificate lifecycle states.
    subject String
    The Certificate subject.
    subjectKeyId String
    The Certificate subject key id.
    timeCreated String
    The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    timeValidFrom String
    The time the certificate is valid from. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    timeValidTo String
    The time the certificate is valid to. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
    version String
    The Certificate version.

    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