Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getCertificates

This data source provides the list of Certificates in Oracle Cloud Infrastructure Load Balancer service.

Lists all SSL certificates bundles associated with a given load balancer.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testCertificates = Output.Create(Oci.LoadBalancer.GetCertificates.InvokeAsync(new Oci.LoadBalancer.GetCertificatesArgs
        {
            LoadBalancerId = oci_load_balancer_load_balancer.Test_load_balancer.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/LoadBalancer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LoadBalancer.GetCertificates(ctx, &loadbalancer.GetCertificatesArgs{
			LoadBalancerId: oci_load_balancer_load_balancer.Test_load_balancer.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_certificates = oci.LoadBalancer.get_certificates(load_balancer_id=oci_load_balancer_load_balancer["test_load_balancer"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCertificates = oci.LoadBalancer.getCertificates({
    loadBalancerId: oci_load_balancer_load_balancer.test_load_balancer.id,
});

Coming soon!

Using getCertificates

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 getCertificates(args: GetCertificatesArgs, opts?: InvokeOptions): Promise<GetCertificatesResult>
function getCertificatesOutput(args: GetCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCertificatesResult>
def get_certificates(filters: Optional[Sequence[_loadbalancer.GetCertificatesFilter]] = None,
                     load_balancer_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCertificatesResult
def get_certificates_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loadbalancer.GetCertificatesFilterArgs]]]] = None,
                     load_balancer_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCertificatesResult]
func GetCertificates(ctx *Context, args *GetCertificatesArgs, opts ...InvokeOption) (*GetCertificatesResult, error)
func GetCertificatesOutput(ctx *Context, args *GetCertificatesOutputArgs, opts ...InvokeOption) GetCertificatesResultOutput

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

public static class GetCertificates 
{
    public static Task<GetCertificatesResult> InvokeAsync(GetCertificatesArgs args, InvokeOptions? opts = null)
    public static Output<GetCertificatesResult> Invoke(GetCertificatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCertificatesResult> getCertificates(GetCertificatesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:LoadBalancer/getCertificates:getCertificates
  Arguments:
    # Arguments dictionary

The following arguments are supported:

LoadBalancerId string

The OCID of the load balancer associated with the certificate bundles to be listed.

Filters List<GetCertificatesFilter>
LoadBalancerId string

The OCID of the load balancer associated with the certificate bundles to be listed.

Filters []GetCertificatesFilter
loadBalancerId String

The OCID of the load balancer associated with the certificate bundles to be listed.

filters List<GetCertificatesFilter>
loadBalancerId string

The OCID of the load balancer associated with the certificate bundles to be listed.

filters GetCertificatesFilter[]
load_balancer_id str

The OCID of the load balancer associated with the certificate bundles to be listed.

filters GetCertificatesFilter]
loadBalancerId String

The OCID of the load balancer associated with the certificate bundles to be listed.

filters List<Property Map>

getCertificates Result

The following output properties are available:

Certificates List<GetCertificatesCertificate>

The list of certificates.

Id string

The provider-assigned unique ID for this managed resource.

LoadBalancerId string
Filters List<GetCertificatesFilter>
Certificates []GetCertificatesCertificate

The list of certificates.

Id string

The provider-assigned unique ID for this managed resource.

LoadBalancerId string
Filters []GetCertificatesFilter
certificates List<GetCertificatesCertificate>

The list of certificates.

id String

The provider-assigned unique ID for this managed resource.

loadBalancerId String
filters List<GetCertificatesFilter>
certificates GetCertificatesCertificate[]

The list of certificates.

id string

The provider-assigned unique ID for this managed resource.

loadBalancerId string
filters GetCertificatesFilter[]
certificates GetCertificatesCertificate]

The list of certificates.

id str

The provider-assigned unique ID for this managed resource.

load_balancer_id str
filters GetCertificatesFilter]
certificates List<Property Map>

The list of certificates.

id String

The provider-assigned unique ID for this managed resource.

loadBalancerId String
filters List<Property Map>

Supporting Types

GetCertificatesCertificate

CaCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

CertificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

LoadBalancerId string

The OCID of the load balancer associated with the certificate bundles to be listed.

PrivateKey string
PublicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

State string
Passphrase string
CaCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

CertificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

LoadBalancerId string

The OCID of the load balancer associated with the certificate bundles to be listed.

PrivateKey string
PublicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

State string
Passphrase string
caCertificate String

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificateName String

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId String

The OCID of the load balancer associated with the certificate bundles to be listed.

privateKey String
publicCertificate String

The public certificate, in PEM format, that you received from your SSL certificate provider.

state String
passphrase String
caCertificate string

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificateName string

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId string

The OCID of the load balancer associated with the certificate bundles to be listed.

privateKey string
publicCertificate string

The public certificate, in PEM format, that you received from your SSL certificate provider.

state string
passphrase string
ca_certificate str

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificate_name str

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

load_balancer_id str

The OCID of the load balancer associated with the certificate bundles to be listed.

private_key str
public_certificate str

The public certificate, in PEM format, that you received from your SSL certificate provider.

state str
passphrase str
caCertificate String

The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.

certificateName String

A friendly name for the certificate bundle. It must be unique and it cannot be changed. Valid certificate bundle names include only alphanumeric characters, dashes, and underscores. Certificate bundle names cannot contain spaces. Avoid entering confidential information. Example: example_certificate_bundle

loadBalancerId String

The OCID of the load balancer associated with the certificate bundles to be listed.

privateKey String
publicCertificate String

The public certificate, in PEM format, that you received from your SSL certificate provider.

state String
passphrase String

GetCertificatesFilter

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.