Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Load
Balancer stringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- Filters
List<Get
Certificates Filter>
- Load
Balancer stringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- Filters
[]Get
Certificates Filter
- load
Balancer StringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- filters
List<Get
Certificates Filter>
- load
Balancer stringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- filters
Get
Certificates Filter[]
- load_
balancer_ strid - The OCID of the load balancer associated with the certificate bundles to be listed.
- filters
Sequence[loadbalancer.
Get Certificates Filter]
- load
Balancer 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<Get
Certificates Certificate> - The list of certificates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringId - Filters
List<Get
Certificates Filter>
- Certificates
[]Get
Certificates Certificate - The list of certificates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringId - Filters
[]Get
Certificates Filter
- certificates
List<Get
Certificates Certificate> - The list of certificates.
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringId - filters
List<Get
Certificates Filter>
- certificates
Get
Certificates Certificate[] - The list of certificates.
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balancer stringId - filters
Get
Certificates Filter[]
- certificates
Sequence[loadbalancer.
Get Certificates Certificate] - The list of certificates.
- id str
- The provider-assigned unique ID for this managed resource.
- load_
balancer_ strid - filters
Sequence[loadbalancer.
Get Certificates Filter]
- certificates List<Property Map>
- The list of certificates.
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringId - filters List<Property Map>
Supporting Types
GetCertificatesCertificate
- Ca
Certificate string - The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
- Certificate
Name 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
- Load
Balancer stringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- Private
Key string - Public
Certificate string - The public certificate, in PEM format, that you received from your SSL certificate provider.
- State string
- Passphrase string
- Ca
Certificate string - The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
- Certificate
Name 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
- Load
Balancer stringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- Private
Key string - Public
Certificate string - The public certificate, in PEM format, that you received from your SSL certificate provider.
- State string
- Passphrase string
- ca
Certificate String - The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
- certificate
Name 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
- load
Balancer StringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- private
Key String - public
Certificate String - The public certificate, in PEM format, that you received from your SSL certificate provider.
- state String
- passphrase String
- ca
Certificate string - The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
- certificate
Name 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
- load
Balancer stringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- private
Key string - public
Certificate 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
- ca
Certificate String - The Certificate Authority certificate, or any interim certificate, that you received from your SSL certificate provider.
- certificate
Name 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
- load
Balancer StringId - The OCID of the load balancer associated with the certificate bundles to be listed.
- private
Key String - public
Certificate 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
oci
Terraform Provider.