1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getLbCertificateV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getLbCertificateV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the certificate details in FlexibleEngine Elastic Load Balance (ELB).

    Example Usage

    The following example shows how one might accept a certificate name as a variable to fetch this data source.

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const certName = config.requireObject("certName");
    const byName = flexibleengine.getLbCertificateV2({
        name: certName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cert_name = config.require_object("certName")
    by_name = flexibleengine.get_lb_certificate_v2(name=cert_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		certName := cfg.RequireObject("certName")
    		_, err := flexibleengine.LookupLbCertificateV2(ctx, &flexibleengine.LookupLbCertificateV2Args{
    			Name: pulumi.StringRef(certName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var certName = config.RequireObject<dynamic>("certName");
        var byName = Flexibleengine.GetLbCertificateV2.Invoke(new()
        {
            Name = certName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetLbCertificateV2Args;
    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 config = ctx.config();
            final var certName = config.get("certName");
            final var byName = FlexibleengineFunctions.getLbCertificateV2(GetLbCertificateV2Args.builder()
                .name(certName)
                .build());
    
        }
    }
    
    configuration:
      certName:
        type: dynamic
    variables:
      byName:
        fn::invoke:
          function: flexibleengine:getLbCertificateV2
          arguments:
            name: ${certName}
    

    Using getLbCertificateV2

    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 getLbCertificateV2(args: GetLbCertificateV2Args, opts?: InvokeOptions): Promise<GetLbCertificateV2Result>
    function getLbCertificateV2Output(args: GetLbCertificateV2OutputArgs, opts?: InvokeOptions): Output<GetLbCertificateV2Result>
    def get_lb_certificate_v2(description: Optional[str] = None,
                              domain: Optional[str] = None,
                              id: Optional[str] = None,
                              name: Optional[str] = None,
                              type: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetLbCertificateV2Result
    def get_lb_certificate_v2_output(description: Optional[pulumi.Input[str]] = None,
                              domain: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              type: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetLbCertificateV2Result]
    func LookupLbCertificateV2(ctx *Context, args *LookupLbCertificateV2Args, opts ...InvokeOption) (*LookupLbCertificateV2Result, error)
    func LookupLbCertificateV2Output(ctx *Context, args *LookupLbCertificateV2OutputArgs, opts ...InvokeOption) LookupLbCertificateV2ResultOutput

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

    public static class GetLbCertificateV2 
    {
        public static Task<GetLbCertificateV2Result> InvokeAsync(GetLbCertificateV2Args args, InvokeOptions? opts = null)
        public static Output<GetLbCertificateV2Result> Invoke(GetLbCertificateV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLbCertificateV2Result> getLbCertificateV2(GetLbCertificateV2Args args, InvokeOptions options)
    public static Output<GetLbCertificateV2Result> getLbCertificateV2(GetLbCertificateV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getLbCertificateV2:getLbCertificateV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Human-readable description for the Certificate.
    Domain string
    The domain of the Certificate.
    Id string
    The id of the specific Certificate to retrieve.
    Name string
    Human-readable name for the Certificate. Does not have to be unique.
    Type string
    Description string
    Human-readable description for the Certificate.
    Domain string
    The domain of the Certificate.
    Id string
    The id of the specific Certificate to retrieve.
    Name string
    Human-readable name for the Certificate. Does not have to be unique.
    Type string
    description String
    Human-readable description for the Certificate.
    domain String
    The domain of the Certificate.
    id String
    The id of the specific Certificate to retrieve.
    name String
    Human-readable name for the Certificate. Does not have to be unique.
    type String
    description string
    Human-readable description for the Certificate.
    domain string
    The domain of the Certificate.
    id string
    The id of the specific Certificate to retrieve.
    name string
    Human-readable name for the Certificate. Does not have to be unique.
    type string
    description str
    Human-readable description for the Certificate.
    domain str
    The domain of the Certificate.
    id str
    The id of the specific Certificate to retrieve.
    name str
    Human-readable name for the Certificate. Does not have to be unique.
    type str
    description String
    Human-readable description for the Certificate.
    domain String
    The domain of the Certificate.
    id String
    The id of the specific Certificate to retrieve.
    name String
    Human-readable name for the Certificate. Does not have to be unique.
    type String

    getLbCertificateV2 Result

    The following output properties are available:

    Certificate string
    The public encrypted key of the Certificate, PEM format.
    CreateTime string
    Indicates the creation time.
    Description string
    Domain string
    Id string
    Name string
    PrivateKey string
    The private encrypted key of the Certificate, PEM format.
    Type string
    UpdateTime string
    Indicates the update time.
    Certificate string
    The public encrypted key of the Certificate, PEM format.
    CreateTime string
    Indicates the creation time.
    Description string
    Domain string
    Id string
    Name string
    PrivateKey string
    The private encrypted key of the Certificate, PEM format.
    Type string
    UpdateTime string
    Indicates the update time.
    certificate String
    The public encrypted key of the Certificate, PEM format.
    createTime String
    Indicates the creation time.
    description String
    domain String
    id String
    name String
    privateKey String
    The private encrypted key of the Certificate, PEM format.
    type String
    updateTime String
    Indicates the update time.
    certificate string
    The public encrypted key of the Certificate, PEM format.
    createTime string
    Indicates the creation time.
    description string
    domain string
    id string
    name string
    privateKey string
    The private encrypted key of the Certificate, PEM format.
    type string
    updateTime string
    Indicates the update time.
    certificate str
    The public encrypted key of the Certificate, PEM format.
    create_time str
    Indicates the creation time.
    description str
    domain str
    id str
    name str
    private_key str
    The private encrypted key of the Certificate, PEM format.
    type str
    update_time str
    Indicates the update time.
    certificate String
    The public encrypted key of the Certificate, PEM format.
    createTime String
    Indicates the creation time.
    description String
    domain String
    id String
    name String
    privateKey String
    The private encrypted key of the Certificate, PEM format.
    type String
    updateTime String
    Indicates the update time.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud