1. Packages
  2. Ucloud Provider
  3. API Docs
  4. getLbSsls
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.getLbSsls

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    This data source provides a list of Load Balancer SSL certificate resources according to their Load Balancer SSL certificate resource ID and name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const example = ucloud.getLbSsls({});
    export const first = example.then(example => example.lbSsls?.[0]?.id);
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    example = ucloud.get_lb_ssls()
    pulumi.export("first", example.lb_ssls[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ucloud.GetLbSsls(ctx, &ucloud.GetLbSslsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("first", example.LbSsls[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ucloud.GetLbSsls.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["first"] = example.Apply(getLbSslsResult => getLbSslsResult.LbSsls[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.UcloudFunctions;
    import com.pulumi.ucloud.inputs.GetLbSslsArgs;
    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 example = UcloudFunctions.getLbSsls();
    
            ctx.export("first", example.applyValue(getLbSslsResult -> getLbSslsResult.lbSsls()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ucloud:getLbSsls
          arguments: {}
    outputs:
      first: ${example.lbSsls[0].id}
    

    Using getLbSsls

    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 getLbSsls(args: GetLbSslsArgs, opts?: InvokeOptions): Promise<GetLbSslsResult>
    function getLbSslsOutput(args: GetLbSslsOutputArgs, opts?: InvokeOptions): Output<GetLbSslsResult>
    def get_lb_ssls(id: Optional[str] = None,
                    ids: Optional[Sequence[str]] = None,
                    name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetLbSslsResult
    def get_lb_ssls_output(id: Optional[pulumi.Input[str]] = None,
                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetLbSslsResult]
    func GetLbSsls(ctx *Context, args *GetLbSslsArgs, opts ...InvokeOption) (*GetLbSslsResult, error)
    func GetLbSslsOutput(ctx *Context, args *GetLbSslsOutputArgs, opts ...InvokeOption) GetLbSslsResultOutput

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

    public static class GetLbSsls 
    {
        public static Task<GetLbSslsResult> InvokeAsync(GetLbSslsArgs args, InvokeOptions? opts = null)
        public static Output<GetLbSslsResult> Invoke(GetLbSslsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLbSslsResult> getLbSsls(GetLbSslsArgs args, InvokeOptions options)
    public static Output<GetLbSslsResult> getLbSsls(GetLbSslsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ucloud:index/getLbSsls:getLbSsls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of LB SSL certificate resource.
    Ids List<string>
    A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is [].
    NameRegex string
    A regex string to filter resulting LB SSL by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Id string
    The ID of LB SSL certificate resource.
    Ids []string
    A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is [].
    NameRegex string
    A regex string to filter resulting LB SSL by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    id String
    The ID of LB SSL certificate resource.
    ids List<String>
    A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is [].
    nameRegex String
    A regex string to filter resulting LB SSL by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    id string
    The ID of LB SSL certificate resource.
    ids string[]
    A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is [].
    nameRegex string
    A regex string to filter resulting LB SSL by name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    id str
    The ID of LB SSL certificate resource.
    ids Sequence[str]
    A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is [].
    name_regex str
    A regex string to filter resulting LB SSL by name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    id String
    The ID of LB SSL certificate resource.
    ids List<String>
    A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is [].
    nameRegex String
    A regex string to filter resulting LB SSL by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getLbSsls Result

    The following output properties are available:

    Id string
    The ID of LB SSL certificate resource.
    Ids List<string>
    LbSsls List<GetLbSslsLbSsl>
    It is a nested type which documented below.
    TotalCount double
    Total number of LB SSL certificate resources that satisfy the condition.
    NameRegex string
    OutputFile string
    Id string
    The ID of LB SSL certificate resource.
    Ids []string
    LbSsls []GetLbSslsLbSsl
    It is a nested type which documented below.
    TotalCount float64
    Total number of LB SSL certificate resources that satisfy the condition.
    NameRegex string
    OutputFile string
    id String
    The ID of LB SSL certificate resource.
    ids List<String>
    lbSsls List<GetLbSslsLbSsl>
    It is a nested type which documented below.
    totalCount Double
    Total number of LB SSL certificate resources that satisfy the condition.
    nameRegex String
    outputFile String
    id string
    The ID of LB SSL certificate resource.
    ids string[]
    lbSsls GetLbSslsLbSsl[]
    It is a nested type which documented below.
    totalCount number
    Total number of LB SSL certificate resources that satisfy the condition.
    nameRegex string
    outputFile string
    id str
    The ID of LB SSL certificate resource.
    ids Sequence[str]
    lb_ssls Sequence[GetLbSslsLbSsl]
    It is a nested type which documented below.
    total_count float
    Total number of LB SSL certificate resources that satisfy the condition.
    name_regex str
    output_file str
    id String
    The ID of LB SSL certificate resource.
    ids List<String>
    lbSsls List<Property Map>
    It is a nested type which documented below.
    totalCount Number
    Total number of LB SSL certificate resources that satisfy the condition.
    nameRegex String
    outputFile String

    Supporting Types

    GetLbSslsLbSsl

    CreateTime string
    The time of creation for lb ssl, formatted in RFC3339 time string.
    Id string
    The ID of LB SSL certificate resource.
    Name string
    The name of LB SSL certificate resource.
    CreateTime string
    The time of creation for lb ssl, formatted in RFC3339 time string.
    Id string
    The ID of LB SSL certificate resource.
    Name string
    The name of LB SSL certificate resource.
    createTime String
    The time of creation for lb ssl, formatted in RFC3339 time string.
    id String
    The ID of LB SSL certificate resource.
    name String
    The name of LB SSL certificate resource.
    createTime string
    The time of creation for lb ssl, formatted in RFC3339 time string.
    id string
    The ID of LB SSL certificate resource.
    name string
    The name of LB SSL certificate resource.
    create_time str
    The time of creation for lb ssl, formatted in RFC3339 time string.
    id str
    The ID of LB SSL certificate resource.
    name str
    The name of LB SSL certificate resource.
    createTime String
    The time of creation for lb ssl, formatted in RFC3339 time string.
    id String
    The ID of LB SSL certificate resource.
    name String
    The name of LB SSL certificate resource.

    Package Details

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