tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClsLogsets
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of cls logsets
Example Usage
Query all cls logsets
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const logsets = tencentcloud.getClsLogsets({});
import pulumi
import pulumi_tencentcloud as tencentcloud
logsets = tencentcloud.get_cls_logsets()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetClsLogsets(ctx, &tencentcloud.GetClsLogsetsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var logsets = Tencentcloud.GetClsLogsets.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetClsLogsetsArgs;
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 logsets = TencentcloudFunctions.getClsLogsets();
}
}
variables:
logsets:
fn::invoke:
function: tencentcloud:getClsLogsets
arguments: {}
Query by filters
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const logsets = tencentcloud.getClsLogsets({
filters: [{
key: "tag:createdBy",
values: ["terraform"],
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
logsets = tencentcloud.get_cls_logsets(filters=[{
"key": "tag:createdBy",
"values": ["terraform"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetClsLogsets(ctx, &tencentcloud.GetClsLogsetsArgs{
Filters: []tencentcloud.GetClsLogsetsFilter{
{
Key: "tag:createdBy",
Values: []string{
"terraform",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var logsets = Tencentcloud.GetClsLogsets.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetClsLogsetsFilterInputArgs
{
Key = "tag:createdBy",
Values = new[]
{
"terraform",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetClsLogsetsArgs;
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 logsets = TencentcloudFunctions.getClsLogsets(GetClsLogsetsArgs.builder()
.filters(GetClsLogsetsFilterArgs.builder()
.key("tag:createdBy")
.values("terraform")
.build())
.build());
}
}
variables:
logsets:
fn::invoke:
function: tencentcloud:getClsLogsets
arguments:
filters:
- key: tag:createdBy
values:
- terraform
Using getClsLogsets
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 getClsLogsets(args: GetClsLogsetsArgs, opts?: InvokeOptions): Promise<GetClsLogsetsResult>
function getClsLogsetsOutput(args: GetClsLogsetsOutputArgs, opts?: InvokeOptions): Output<GetClsLogsetsResult>
def get_cls_logsets(filters: Optional[Sequence[GetClsLogsetsFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClsLogsetsResult
def get_cls_logsets_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetClsLogsetsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClsLogsetsResult]
func GetClsLogsets(ctx *Context, args *GetClsLogsetsArgs, opts ...InvokeOption) (*GetClsLogsetsResult, error)
func GetClsLogsetsOutput(ctx *Context, args *GetClsLogsetsOutputArgs, opts ...InvokeOption) GetClsLogsetsResultOutput
> Note: This function is named GetClsLogsets
in the Go SDK.
public static class GetClsLogsets
{
public static Task<GetClsLogsetsResult> InvokeAsync(GetClsLogsetsArgs args, InvokeOptions? opts = null)
public static Output<GetClsLogsetsResult> Invoke(GetClsLogsetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClsLogsetsResult> getClsLogsets(GetClsLogsetsArgs args, InvokeOptions options)
public static Output<GetClsLogsetsResult> getClsLogsets(GetClsLogsetsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClsLogsets:getClsLogsets
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Cls Logsets Filter> - Query by filter.
- Id string
- Result
Output stringFile - Used to save results.
- Filters
[]Get
Cls Logsets Filter - Query by filter.
- Id string
- Result
Output stringFile - Used to save results.
- filters
List<Get
Cls Logsets Filter> - Query by filter.
- id String
- result
Output StringFile - Used to save results.
- filters
Get
Cls Logsets Filter[] - Query by filter.
- id string
- result
Output stringFile - Used to save results.
- filters
Sequence[Get
Cls Logsets Filter] - Query by filter.
- id str
- result_
output_ strfile - Used to save results.
- filters List<Property Map>
- Query by filter.
- id String
- result
Output StringFile - Used to save results.
getClsLogsets Result
The following output properties are available:
- Id string
- Logsets
List<Get
Cls Logsets Logset> - logset lists.
- Filters
List<Get
Cls Logsets Filter> - Result
Output stringFile
- Id string
- Logsets
[]Get
Cls Logsets Logset - logset lists.
- Filters
[]Get
Cls Logsets Filter - Result
Output stringFile
- id String
- logsets
List<Get
Cls Logsets Logset> - logset lists.
- filters
List<Get
Cls Logsets Filter> - result
Output StringFile
- id string
- logsets
Get
Cls Logsets Logset[] - logset lists.
- filters
Get
Cls Logsets Filter[] - result
Output stringFile
- id str
- logsets
Sequence[Get
Cls Logsets Logset] - logset lists.
- filters
Sequence[Get
Cls Logsets Filter] - result_
output_ strfile
- id String
- logsets List<Property Map>
- logset lists.
- filters List<Property Map>
- result
Output StringFile
Supporting Types
GetClsLogsetsFilter
GetClsLogsetsLogset
- Assumer
Name string - Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
- Create
Time string - Create time.
- Logset
Id string - Logset Id.
- Logset
Name string - Logset name.
- Role
Name string - If
assumer_name
is not empty, it indicates the service role that created the log set. - List<Get
Cls Logsets Logset Tag> - Tags.
- Topic
Count double - Topic count.
- Assumer
Name string - Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
- Create
Time string - Create time.
- Logset
Id string - Logset Id.
- Logset
Name string - Logset name.
- Role
Name string - If
assumer_name
is not empty, it indicates the service role that created the log set. - []Get
Cls Logsets Logset Tag - Tags.
- Topic
Count float64 - Topic count.
- assumer
Name String - Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
- create
Time String - Create time.
- logset
Id String - Logset Id.
- logset
Name String - Logset name.
- role
Name String - If
assumer_name
is not empty, it indicates the service role that created the log set. - List<Get
Cls Logsets Logset Tag> - Tags.
- topic
Count Double - Topic count.
- assumer
Name string - Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
- create
Time string - Create time.
- logset
Id string - Logset Id.
- logset
Name string - Logset name.
- role
Name string - If
assumer_name
is not empty, it indicates the service role that created the log set. - Get
Cls Logsets Logset Tag[] - Tags.
- topic
Count number - Topic count.
- assumer_
name str - Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
- create_
time str - Create time.
- logset_
id str - Logset Id.
- logset_
name str - Logset name.
- role_
name str - If
assumer_name
is not empty, it indicates the service role that created the log set. - Sequence[Get
Cls Logsets Logset Tag] - Tags.
- topic_
count float - Topic count.
- assumer
Name String - Cloud product identification, when the log set is created by another cloud product, this field will display the cloud product name, such as CDN, TKE.
- create
Time String - Create time.
- logset
Id String - Logset Id.
- logset
Name String - Logset name.
- role
Name String - If
assumer_name
is not empty, it indicates the service role that created the log set. - List<Property Map>
- Tags.
- topic
Count Number - Topic count.
GetClsLogsetsLogsetTag
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack