1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getLtsGroupsV2
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for LTS Groups you can get at documentation portal

    Use this data source to get the list of LTS log groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = opentelekomcloud.getLtsGroupsV2({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.get_lts_groups_v2()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetLtsGroupsV2(ctx, &opentelekomcloud.GetLtsGroupsV2Args{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Opentelekomcloud.GetLtsGroupsV2.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetLtsGroupsV2Args;
    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 test = OpentelekomcloudFunctions.getLtsGroupsV2(GetLtsGroupsV2Args.builder()
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getLtsGroupsV2
          arguments: {}
    
    Example coming soon!
    

    Using getLtsGroupsV2

    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 getLtsGroupsV2(args: GetLtsGroupsV2Args, opts?: InvokeOptions): Promise<GetLtsGroupsV2Result>
    function getLtsGroupsV2Output(args: GetLtsGroupsV2OutputArgs, opts?: InvokeOutputOptions): Output<GetLtsGroupsV2Result>
    def get_lts_groups_v2(group_id: Optional[str] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetLtsGroupsV2Result
    def get_lts_groups_v2_output(group_id: pulumi.Input[Optional[str]] = None,
                          id: pulumi.Input[Optional[str]] = None,
                          name: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetLtsGroupsV2Result]
    func GetLtsGroupsV2(ctx *Context, args *GetLtsGroupsV2Args, opts ...InvokeOption) (*GetLtsGroupsV2Result, error)
    func GetLtsGroupsV2Output(ctx *Context, args *GetLtsGroupsV2OutputArgs, opts ...InvokeOption) GetLtsGroupsV2ResultOutput

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

    public static class GetLtsGroupsV2 
    {
        public static Task<GetLtsGroupsV2Result> InvokeAsync(GetLtsGroupsV2Args args, InvokeOptions? opts = null)
        public static Output<GetLtsGroupsV2Result> Invoke(GetLtsGroupsV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetLtsGroupsV2Result> Invoke(GetLtsGroupsV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetLtsGroupsV2Result> getLtsGroupsV2(GetLtsGroupsV2Args args, InvokeOptions options)
    public static Output<GetLtsGroupsV2Result> getLtsGroupsV2(GetLtsGroupsV2Args args, InvokeOptions options)
    public static Output<GetLtsGroupsV2Result> getLtsGroupsV2(GetLtsGroupsV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getLtsGroupsV2:getLtsGroupsV2
      arguments:
        # arguments dictionary
    data "opentelekomcloud_get_lts_groups_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    GroupId string
    Specifies the exact log group ID to match.
    Id string
    The log group ID.
    Name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    GroupId string
    Specifies the exact log group ID to match.
    Id string
    The log group ID.
    Name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    group_id string
    Specifies the exact log group ID to match.
    id string
    The log group ID.
    name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    groupId String
    Specifies the exact log group ID to match.
    id String
    The log group ID.
    name String

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    groupId string
    Specifies the exact log group ID to match.
    id string
    The log group ID.
    name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    group_id str
    Specifies the exact log group ID to match.
    id str
    The log group ID.
    name str

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    groupId String
    Specifies the exact log group ID to match.
    id String
    The log group ID.
    name String

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    getLtsGroupsV2 Result

    The following output properties are available:

    Groups List<GetLtsGroupsV2Group>
    All log groups that match the filter parameters.
    Id string
    The log group ID.
    Region string
    Region in which to query the resources are placed.
    GroupId string
    Name string
    The log group name.
    Groups []GetLtsGroupsV2Group
    All log groups that match the filter parameters.
    Id string
    The log group ID.
    Region string
    Region in which to query the resources are placed.
    GroupId string
    Name string
    The log group name.
    groups list(object)
    All log groups that match the filter parameters.
    id string
    The log group ID.
    region string
    Region in which to query the resources are placed.
    group_id string
    name string
    The log group name.
    groups List<GetLtsGroupsV2Group>
    All log groups that match the filter parameters.
    id String
    The log group ID.
    region String
    Region in which to query the resources are placed.
    groupId String
    name String
    The log group name.
    groups GetLtsGroupsV2Group[]
    All log groups that match the filter parameters.
    id string
    The log group ID.
    region string
    Region in which to query the resources are placed.
    groupId string
    name string
    The log group name.
    groups Sequence[GetLtsGroupsV2Group]
    All log groups that match the filter parameters.
    id str
    The log group ID.
    region str
    Region in which to query the resources are placed.
    group_id str
    name str
    The log group name.
    groups List<Property Map>
    All log groups that match the filter parameters.
    id String
    The log group ID.
    region String
    Region in which to query the resources are placed.
    groupId String
    name String
    The log group name.

    Supporting Types

    GetLtsGroupsV2Group

    CreatedAt string
    The creation time of the log group, in RFC3339 format.
    EnterpriseProjectId string
    The enterprise project ID to which the log group belongs.
    Id string
    The log group ID.
    Name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    Tags Dictionary<string, string>
    The key/value pairs to associate with the log group.
    TtlInDays double
    The log expiration time(days).
    CreatedAt string
    The creation time of the log group, in RFC3339 format.
    EnterpriseProjectId string
    The enterprise project ID to which the log group belongs.
    Id string
    The log group ID.
    Name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    Tags map[string]string
    The key/value pairs to associate with the log group.
    TtlInDays float64
    The log expiration time(days).
    created_at string
    The creation time of the log group, in RFC3339 format.
    enterprise_project_id string
    The enterprise project ID to which the log group belongs.
    id string
    The log group ID.
    name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    tags map(string)
    The key/value pairs to associate with the log group.
    ttl_in_days number
    The log expiration time(days).
    createdAt String
    The creation time of the log group, in RFC3339 format.
    enterpriseProjectId String
    The enterprise project ID to which the log group belongs.
    id String
    The log group ID.
    name String

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    tags Map<String,String>
    The key/value pairs to associate with the log group.
    ttlInDays Double
    The log expiration time(days).
    createdAt string
    The creation time of the log group, in RFC3339 format.
    enterpriseProjectId string
    The enterprise project ID to which the log group belongs.
    id string
    The log group ID.
    name string

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    tags {[key: string]: string}
    The key/value pairs to associate with the log group.
    ttlInDays number
    The log expiration time(days).
    created_at str
    The creation time of the log group, in RFC3339 format.
    enterprise_project_id str
    The enterprise project ID to which the log group belongs.
    id str
    The log group ID.
    name str

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    tags Mapping[str, str]
    The key/value pairs to associate with the log group.
    ttl_in_days float
    The log expiration time(days).
    createdAt String
    The creation time of the log group, in RFC3339 format.
    enterpriseProjectId String
    The enterprise project ID to which the log group belongs.
    id String
    The log group ID.
    name String

    Specifies the exact log group name to match.

    If both arguments are specified, a log group must match both values.

    tags Map<String>
    The key/value pairs to associate with the log group.
    ttlInDays Number
    The log expiration time(days).

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.8
    published on Thursday, Sep 10, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial