ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud
ucloud.getLbSsls
Explore with Pulumi AI
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
[]
. - Name
Regex string - A regex string to filter resulting LB SSL by name.
- Output
File 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
[]
. - Name
Regex string - A regex string to filter resulting LB SSL by name.
- Output
File 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
[]
. - name
Regex String - A regex string to filter resulting LB SSL by name.
- output
File 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
[]
. - name
Regex string - A regex string to filter resulting LB SSL by name.
- output
File 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
[]
. - name
Regex String - A regex string to filter resulting LB SSL by name.
- output
File 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>
- Lb
Ssls List<GetLb Ssls Lb Ssl> - It is a nested type which documented below.
- Total
Count double - Total number of LB SSL certificate resources that satisfy the condition.
- Name
Regex string - Output
File string
- Id string
- The ID of LB SSL certificate resource.
- Ids []string
- Lb
Ssls []GetLb Ssls Lb Ssl - It is a nested type which documented below.
- Total
Count float64 - Total number of LB SSL certificate resources that satisfy the condition.
- Name
Regex string - Output
File string
- id String
- The ID of LB SSL certificate resource.
- ids List<String>
- lb
Ssls List<GetLb Ssls Lb Ssl> - It is a nested type which documented below.
- total
Count Double - Total number of LB SSL certificate resources that satisfy the condition.
- name
Regex String - output
File String
- id string
- The ID of LB SSL certificate resource.
- ids string[]
- lb
Ssls GetLb Ssls Lb Ssl[] - It is a nested type which documented below.
- total
Count number - Total number of LB SSL certificate resources that satisfy the condition.
- name
Regex string - output
File string
- id str
- The ID of LB SSL certificate resource.
- ids Sequence[str]
- lb_
ssls Sequence[GetLb Ssls Lb Ssl] - 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>
- lb
Ssls List<Property Map> - It is a nested type which documented below.
- total
Count Number - Total number of LB SSL certificate resources that satisfy the condition.
- name
Regex String - output
File String
Supporting Types
GetLbSslsLbSsl
- Create
Time 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 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 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 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.
- create
Time 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.