1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LtsGroupV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.LtsGroupV2

Explore with Pulumi AI

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

Manages a log group resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const test = new opentelekomcloud.LtsGroupV2("test", {
    groupName: "log_group_1",
    ttlInDays: 30,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

test = opentelekomcloud.LtsGroupV2("test",
    group_name="log_group_1",
    ttl_in_days=30)
Copy
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.NewLtsGroupV2(ctx, "test", &opentelekomcloud.LtsGroupV2Args{
			GroupName: pulumi.String("log_group_1"),
			TtlInDays: pulumi.Float64(30),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var test = new Opentelekomcloud.LtsGroupV2("test", new()
    {
        GroupName = "log_group_1",
        TtlInDays = 30,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsGroupV2;
import com.pulumi.opentelekomcloud.LtsGroupV2Args;
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) {
        var test = new LtsGroupV2("test", LtsGroupV2Args.builder()
            .groupName("log_group_1")
            .ttlInDays(30)
            .build());

    }
}
Copy
resources:
  test:
    type: opentelekomcloud:LtsGroupV2
    properties:
      groupName: log_group_1
      ttlInDays: 30
Copy

Create LtsGroupV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LtsGroupV2(name: string, args: LtsGroupV2Args, opts?: CustomResourceOptions);
@overload
def LtsGroupV2(resource_name: str,
               args: LtsGroupV2Args,
               opts: Optional[ResourceOptions] = None)

@overload
def LtsGroupV2(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               group_name: Optional[str] = None,
               ttl_in_days: Optional[float] = None,
               group_alias: Optional[str] = None,
               lts_group_v2_id: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
func NewLtsGroupV2(ctx *Context, name string, args LtsGroupV2Args, opts ...ResourceOption) (*LtsGroupV2, error)
public LtsGroupV2(string name, LtsGroupV2Args args, CustomResourceOptions? opts = null)
public LtsGroupV2(String name, LtsGroupV2Args args)
public LtsGroupV2(String name, LtsGroupV2Args args, CustomResourceOptions options)
type: opentelekomcloud:LtsGroupV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LtsGroupV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LtsGroupV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LtsGroupV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LtsGroupV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LtsGroupV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var ltsGroupV2Resource = new Opentelekomcloud.LtsGroupV2("ltsGroupV2Resource", new()
{
    GroupName = "string",
    TtlInDays = 0,
    GroupAlias = "string",
    LtsGroupV2Id = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := opentelekomcloud.NewLtsGroupV2(ctx, "ltsGroupV2Resource", &opentelekomcloud.LtsGroupV2Args{
GroupName: pulumi.String("string"),
TtlInDays: pulumi.Float64(0),
GroupAlias: pulumi.String("string"),
LtsGroupV2Id: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
Copy
var ltsGroupV2Resource = new LtsGroupV2("ltsGroupV2Resource", LtsGroupV2Args.builder()
    .groupName("string")
    .ttlInDays(0)
    .groupAlias("string")
    .ltsGroupV2Id("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
lts_group_v2_resource = opentelekomcloud.LtsGroupV2("ltsGroupV2Resource",
    group_name="string",
    ttl_in_days=0,
    group_alias="string",
    lts_group_v2_id="string",
    tags={
        "string": "string",
    })
Copy
const ltsGroupV2Resource = new opentelekomcloud.LtsGroupV2("ltsGroupV2Resource", {
    groupName: "string",
    ttlInDays: 0,
    groupAlias: "string",
    ltsGroupV2Id: "string",
    tags: {
        string: "string",
    },
});
Copy
type: opentelekomcloud:LtsGroupV2
properties:
    groupAlias: string
    groupName: string
    ltsGroupV2Id: string
    tags:
        string: string
    ttlInDays: 0
Copy

LtsGroupV2 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LtsGroupV2 resource accepts the following input properties:

GroupName This property is required. string
Specifies the log group name. Changing this parameter will create a new resource.
TtlInDays This property is required. double
Specifies the log expiration time(days). The value is range from 1 to 365.
GroupAlias string
LtsGroupV2Id string
The log group ID.
Tags Dictionary<string, string>
Specifies the key/value pairs to associate with the log group.
GroupName This property is required. string
Specifies the log group name. Changing this parameter will create a new resource.
TtlInDays This property is required. float64
Specifies the log expiration time(days). The value is range from 1 to 365.
GroupAlias string
LtsGroupV2Id string
The log group ID.
Tags map[string]string
Specifies the key/value pairs to associate with the log group.
groupName This property is required. String
Specifies the log group name. Changing this parameter will create a new resource.
ttlInDays This property is required. Double
Specifies the log expiration time(days). The value is range from 1 to 365.
groupAlias String
ltsGroupV2Id String
The log group ID.
tags Map<String,String>
Specifies the key/value pairs to associate with the log group.
groupName This property is required. string
Specifies the log group name. Changing this parameter will create a new resource.
ttlInDays This property is required. number
Specifies the log expiration time(days). The value is range from 1 to 365.
groupAlias string
ltsGroupV2Id string
The log group ID.
tags {[key: string]: string}
Specifies the key/value pairs to associate with the log group.
group_name This property is required. str
Specifies the log group name. Changing this parameter will create a new resource.
ttl_in_days This property is required. float
Specifies the log expiration time(days). The value is range from 1 to 365.
group_alias str
lts_group_v2_id str
The log group ID.
tags Mapping[str, str]
Specifies the key/value pairs to associate with the log group.
groupName This property is required. String
Specifies the log group name. Changing this parameter will create a new resource.
ttlInDays This property is required. Number
Specifies the log expiration time(days). The value is range from 1 to 365.
groupAlias String
ltsGroupV2Id String
The log group ID.
tags Map<String>
Specifies the key/value pairs to associate with the log group.

Outputs

All input properties are implicitly available as output properties. Additionally, the LtsGroupV2 resource produces the following output properties:

CreatedAt string
The creation time of the log group.
EnterpriseProjectId string
Shows the enterprise project ID to which the log group belongs.
Id string
The provider-assigned unique ID for this managed resource.
Region string
Shows the region in the log group resource created.
CreatedAt string
The creation time of the log group.
EnterpriseProjectId string
Shows the enterprise project ID to which the log group belongs.
Id string
The provider-assigned unique ID for this managed resource.
Region string
Shows the region in the log group resource created.
createdAt String
The creation time of the log group.
enterpriseProjectId String
Shows the enterprise project ID to which the log group belongs.
id String
The provider-assigned unique ID for this managed resource.
region String
Shows the region in the log group resource created.
createdAt string
The creation time of the log group.
enterpriseProjectId string
Shows the enterprise project ID to which the log group belongs.
id string
The provider-assigned unique ID for this managed resource.
region string
Shows the region in the log group resource created.
created_at str
The creation time of the log group.
enterprise_project_id str
Shows the enterprise project ID to which the log group belongs.
id str
The provider-assigned unique ID for this managed resource.
region str
Shows the region in the log group resource created.
createdAt String
The creation time of the log group.
enterpriseProjectId String
Shows the enterprise project ID to which the log group belongs.
id String
The provider-assigned unique ID for this managed resource.
region String
Shows the region in the log group resource created.

Look up Existing LtsGroupV2 Resource

Get an existing LtsGroupV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LtsGroupV2State, opts?: CustomResourceOptions): LtsGroupV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        group_alias: Optional[str] = None,
        group_name: Optional[str] = None,
        lts_group_v2_id: Optional[str] = None,
        region: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        ttl_in_days: Optional[float] = None) -> LtsGroupV2
func GetLtsGroupV2(ctx *Context, name string, id IDInput, state *LtsGroupV2State, opts ...ResourceOption) (*LtsGroupV2, error)
public static LtsGroupV2 Get(string name, Input<string> id, LtsGroupV2State? state, CustomResourceOptions? opts = null)
public static LtsGroupV2 get(String name, Output<String> id, LtsGroupV2State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:LtsGroupV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
The creation time of the log group.
EnterpriseProjectId string
Shows the enterprise project ID to which the log group belongs.
GroupAlias string
GroupName string
Specifies the log group name. Changing this parameter will create a new resource.
LtsGroupV2Id string
The log group ID.
Region string
Shows the region in the log group resource created.
Tags Dictionary<string, string>
Specifies the key/value pairs to associate with the log group.
TtlInDays double
Specifies the log expiration time(days). The value is range from 1 to 365.
CreatedAt string
The creation time of the log group.
EnterpriseProjectId string
Shows the enterprise project ID to which the log group belongs.
GroupAlias string
GroupName string
Specifies the log group name. Changing this parameter will create a new resource.
LtsGroupV2Id string
The log group ID.
Region string
Shows the region in the log group resource created.
Tags map[string]string
Specifies the key/value pairs to associate with the log group.
TtlInDays float64
Specifies the log expiration time(days). The value is range from 1 to 365.
createdAt String
The creation time of the log group.
enterpriseProjectId String
Shows the enterprise project ID to which the log group belongs.
groupAlias String
groupName String
Specifies the log group name. Changing this parameter will create a new resource.
ltsGroupV2Id String
The log group ID.
region String
Shows the region in the log group resource created.
tags Map<String,String>
Specifies the key/value pairs to associate with the log group.
ttlInDays Double
Specifies the log expiration time(days). The value is range from 1 to 365.
createdAt string
The creation time of the log group.
enterpriseProjectId string
Shows the enterprise project ID to which the log group belongs.
groupAlias string
groupName string
Specifies the log group name. Changing this parameter will create a new resource.
ltsGroupV2Id string
The log group ID.
region string
Shows the region in the log group resource created.
tags {[key: string]: string}
Specifies the key/value pairs to associate with the log group.
ttlInDays number
Specifies the log expiration time(days). The value is range from 1 to 365.
created_at str
The creation time of the log group.
enterprise_project_id str
Shows the enterprise project ID to which the log group belongs.
group_alias str
group_name str
Specifies the log group name. Changing this parameter will create a new resource.
lts_group_v2_id str
The log group ID.
region str
Shows the region in the log group resource created.
tags Mapping[str, str]
Specifies the key/value pairs to associate with the log group.
ttl_in_days float
Specifies the log expiration time(days). The value is range from 1 to 365.
createdAt String
The creation time of the log group.
enterpriseProjectId String
Shows the enterprise project ID to which the log group belongs.
groupAlias String
groupName String
Specifies the log group name. Changing this parameter will create a new resource.
ltsGroupV2Id String
The log group ID.
region String
Shows the region in the log group resource created.
tags Map<String>
Specifies the key/value pairs to associate with the log group.
ttlInDays Number
Specifies the log expiration time(days). The value is range from 1 to 365.

Import

The log group can be imported using the id, e.g.

bash

$ pulumi import opentelekomcloud:index/ltsGroupV2:LtsGroupV2 test <id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.