1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApiGateway
  5. getCertificate
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi

oci.ApiGateway.getCertificate

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi

    This data source provides details about a specific Certificate resource in Oracle Cloud Infrastructure API Gateway service.

    Gets a certificate by identifier.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testCertificate = Oci.ApiGateway.GetCertificate.Invoke(new()
        {
            CertificateId = oci_apigateway_certificate.Test_certificate.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ApiGateway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ApiGateway.GetCertificate(ctx, &apigateway.GetCertificateArgs{
    			CertificateId: oci_apigateway_certificate.Test_certificate.Id,
    		}, 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.ApiGateway.ApiGatewayFunctions;
    import com.pulumi.oci.ApiGateway.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 = ApiGatewayFunctions.getCertificate(GetCertificateArgs.builder()
                .certificateId(oci_apigateway_certificate.test_certificate().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_certificate = oci.ApiGateway.get_certificate(certificate_id=oci_apigateway_certificate["test_certificate"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCertificate = oci.ApiGateway.getCertificate({
        certificateId: oci_apigateway_certificate.test_certificate.id,
    });
    
    variables:
      testCertificate:
        fn::invoke:
          Function: oci:ApiGateway:getCertificate
          Arguments:
            certificateId: ${oci_apigateway_certificate.test_certificate.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:ApiGateway/getCertificate:getCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string

    The ocid of the certificate.

    CertificateId string

    The ocid of the certificate.

    certificateId String

    The ocid of the certificate.

    certificateId string

    The ocid of the certificate.

    certificate_id str

    The ocid of the certificate.

    certificateId String

    The ocid of the certificate.

    getCertificate Result

    The following output properties are available:

    Certificate string

    The data of the leaf certificate in pem format.

    CertificateId string
    CompartmentId string

    The OCID of the compartment in which the resource is created.

    DefinedTags Dictionary<string, object>

    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

    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource

    FreeformTags Dictionary<string, object>

    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 resource.

    IntermediateCertificates string

    The intermediate certificate data associated with the certificate in pem format.

    LifecycleDetails string

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

    PrivateKey string
    State string

    The current state of the certificate.

    SubjectNames List<string>

    The entity to be secured by the certificate and additional host names.

    TimeCreated string

    The time this resource was created. An RFC3339 formatted datetime string.

    TimeNotValidAfter string

    The date and time the certificate will expire.

    TimeUpdated string

    The time this resource was last updated. An RFC3339 formatted datetime string.

    Certificate string

    The data of the leaf certificate in pem format.

    CertificateId string
    CompartmentId string

    The OCID of the compartment in which the resource is created.

    DefinedTags map[string]interface{}

    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

    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource

    FreeformTags map[string]interface{}

    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 resource.

    IntermediateCertificates string

    The intermediate certificate data associated with the certificate in pem format.

    LifecycleDetails string

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

    PrivateKey string
    State string

    The current state of the certificate.

    SubjectNames []string

    The entity to be secured by the certificate and additional host names.

    TimeCreated string

    The time this resource was created. An RFC3339 formatted datetime string.

    TimeNotValidAfter string

    The date and time the certificate will expire.

    TimeUpdated string

    The time this resource was last updated. An RFC3339 formatted datetime string.

    certificate String

    The data of the leaf certificate in pem format.

    certificateId String
    compartmentId String

    The OCID of the compartment in which the resource is created.

    definedTags Map<String,Object>

    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

    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource

    freeformTags Map<String,Object>

    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 resource.

    intermediateCertificates String

    The intermediate certificate data associated with the certificate in pem format.

    lifecycleDetails String

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

    privateKey String
    state String

    The current state of the certificate.

    subjectNames List<String>

    The entity to be secured by the certificate and additional host names.

    timeCreated String

    The time this resource was created. An RFC3339 formatted datetime string.

    timeNotValidAfter String

    The date and time the certificate will expire.

    timeUpdated String

    The time this resource was last updated. An RFC3339 formatted datetime string.

    certificate string

    The data of the leaf certificate in pem format.

    certificateId string
    compartmentId string

    The OCID of the compartment in which the resource is created.

    definedTags {[key: string]: any}

    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

    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource

    freeformTags {[key: string]: any}

    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 resource.

    intermediateCertificates string

    The intermediate certificate data associated with the certificate in pem format.

    lifecycleDetails string

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

    privateKey string
    state string

    The current state of the certificate.

    subjectNames string[]

    The entity to be secured by the certificate and additional host names.

    timeCreated string

    The time this resource was created. An RFC3339 formatted datetime string.

    timeNotValidAfter string

    The date and time the certificate will expire.

    timeUpdated string

    The time this resource was last updated. An RFC3339 formatted datetime string.

    certificate str

    The data of the leaf certificate in pem format.

    certificate_id str
    compartment_id str

    The OCID of the compartment in which the resource is created.

    defined_tags Mapping[str, Any]

    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

    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource

    freeform_tags Mapping[str, Any]

    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 resource.

    intermediate_certificates str

    The intermediate certificate data associated with the certificate in pem format.

    lifecycle_details str

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

    private_key str
    state str

    The current state of the certificate.

    subject_names Sequence[str]

    The entity to be secured by the certificate and additional host names.

    time_created str

    The time this resource was created. An RFC3339 formatted datetime string.

    time_not_valid_after str

    The date and time the certificate will expire.

    time_updated str

    The time this resource was last updated. An RFC3339 formatted datetime string.

    certificate String

    The data of the leaf certificate in pem format.

    certificateId String
    compartmentId String

    The OCID of the compartment in which the resource is created.

    definedTags Map<Any>

    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

    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource

    freeformTags Map<Any>

    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 resource.

    intermediateCertificates String

    The intermediate certificate data associated with the certificate in pem format.

    lifecycleDetails String

    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.

    privateKey String
    state String

    The current state of the certificate.

    subjectNames List<String>

    The entity to be secured by the certificate and additional host names.

    timeCreated String

    The time this resource was created. An RFC3339 formatted datetime string.

    timeNotValidAfter String

    The date and time the certificate will expire.

    timeUpdated String

    The time this resource was last updated. An RFC3339 formatted datetime string.

    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 v1.11.0 published on Wednesday, Sep 27, 2023 by Pulumi