1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getLtsGroupsV2
opentelekomcloud 1.36.40 published on Friday, Jun 6, 2025 by opentelekomcloud

opentelekomcloud.getLtsGroupsV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.40 published on Friday, Jun 6, 2025 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();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getLtsGroupsV2
          arguments: {}
    

    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?: InvokeOptions): Output<GetLtsGroupsV2Result>
    def get_lts_groups_v2(id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetLtsGroupsV2Result
    def get_lts_groups_v2_output(id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = 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 CompletableFuture<GetLtsGroupsV2Result> getLtsGroupsV2(GetLtsGroupsV2Args args, InvokeOptions options)
    public static Output<GetLtsGroupsV2Result> getLtsGroupsV2(GetLtsGroupsV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getLtsGroupsV2:getLtsGroupsV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The log group ID.
    Id string
    The log group ID.
    id String
    The log group ID.
    id string
    The log group ID.
    id str
    The log group ID.
    id String
    The log group ID.

    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.
    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.
    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.
    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.
    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.
    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.

    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
    The log group name.
    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
    The log group name.
    Tags map[string]string
    The key/value pairs to associate with the log group.
    TtlInDays float64
    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
    The log group name.
    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
    The log group name.
    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
    The log group name.
    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
    The log group name.
    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.40 published on Friday, Jun 6, 2025 by opentelekomcloud