Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LoadBalancer.getCertificates
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCertificates = oci.LoadBalancer.getCertificates({
    loadBalancerId: testLoadBalancer.id,
});
import pulumi
import pulumi_oci as oci
test_certificates = oci.LoadBalancer.get_certificates(load_balancer_id=test_load_balancer["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testLoadBalancer.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 testCertificates = Oci.LoadBalancer.GetCertificates.Invoke(new()
    {
        LoadBalancerId = testLoadBalancer.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LoadBalancer.LoadBalancerFunctions;
import com.pulumi.oci.LoadBalancer.inputs.GetCertificatesArgs;
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 testCertificates = LoadBalancerFunctions.getCertificates(GetCertificatesArgs.builder()
            .loadBalancerId(testLoadBalancer.id())
            .build());
    }
}
variables:
  testCertificates:
    fn::invoke:
      function: oci:LoadBalancer:getCertificates
      arguments:
        loadBalancerId: ${testLoadBalancer.id}
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[GetCertificatesFilter]] = None,
                     load_balancer_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCertificatesResult
def get_certificates_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[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)
public static Output<GetCertificatesResult> getCertificates(GetCertificatesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LoadBalancer/getCertificates:getCertificates
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LoadBalancer stringId 
- The OCID of the load balancer associated with the certificate bundles to be listed.
- Filters
List<GetCertificates Filter> 
- LoadBalancer stringId 
- The OCID of the load balancer associated with the certificate bundles to be listed.
- Filters
[]GetCertificates Filter 
- loadBalancer StringId 
- The OCID of the load balancer associated with the certificate bundles to be listed.
- filters
List<GetCertificates Filter> 
- loadBalancer stringId 
- The OCID of the load balancer associated with the certificate bundles to be listed.
- filters
GetCertificates Filter[] 
- load_balancer_ strid 
- The OCID of the load balancer associated with the certificate bundles to be listed.
- filters
Sequence[GetCertificates Filter] 
- loadBalancer StringId 
- 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<GetCertificates Certificate> 
- The list of certificates.
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringId 
- Filters
List<GetCertificates Filter> 
- Certificates
[]GetCertificates Certificate 
- The list of certificates.
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringId 
- Filters
[]GetCertificates Filter 
- certificates
List<GetCertificates Certificate> 
- The list of certificates.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringId 
- filters
List<GetCertificates Filter> 
- certificates
GetCertificates Certificate[] 
- The list of certificates.
- id string
- The provider-assigned unique ID for this managed resource.
- loadBalancer stringId 
- filters
GetCertificates Filter[] 
- certificates
Sequence[GetCertificates Certificate] 
- The list of certificates.
- id str
- The provider-assigned unique ID for this managed resource.
- load_balancer_ strid 
- filters
Sequence[GetCertificates Filter] 
- certificates List<Property Map>
- The list of certificates.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringId 
- 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
- LoadBalancer stringId 
- 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
- LoadBalancer stringId 
- 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
- loadBalancer StringId 
- 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
- loadBalancer stringId 
- 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_ strid 
- 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
- loadBalancer StringId 
- 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  
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.