1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LoadBalancer
  5. getCertificates
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.LoadBalancer.getCertificates

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

    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[_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 Sequence[loadbalancer.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 Sequence[loadbalancer.GetCertificatesCertificate]
    The list of certificates.
    id str
    The provider-assigned unique ID for this managed resource.
    load_balancer_id str
    filters Sequence[loadbalancer.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
    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.3.0 published on Wednesday, Jul 17, 2024 by Pulumi