1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClsMachineGroupConfigs
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getClsMachineGroupConfigs

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of cls machine_group_configs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const group = new tencentcloud.ClsMachineGroup("group", {
        groupName: "tf-describe-mg-config-test",
        serviceLogging: true,
        autoUpdate: true,
        updateEndTime: "19:05:00",
        updateStartTime: "17:05:00",
        machineGroupType: {
            type: "ip",
            values: [
                "192.168.1.1",
                "192.168.1.2",
            ],
        },
    });
    const machineGroupConfigs = tencentcloud.getClsMachineGroupConfigsOutput({
        groupId: group.clsMachineGroupId,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    group = tencentcloud.ClsMachineGroup("group",
        group_name="tf-describe-mg-config-test",
        service_logging=True,
        auto_update=True,
        update_end_time="19:05:00",
        update_start_time="17:05:00",
        machine_group_type={
            "type": "ip",
            "values": [
                "192.168.1.1",
                "192.168.1.2",
            ],
        })
    machine_group_configs = tencentcloud.get_cls_machine_group_configs_output(group_id=group.cls_machine_group_id)
    
    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 {
    		group, err := tencentcloud.NewClsMachineGroup(ctx, "group", &tencentcloud.ClsMachineGroupArgs{
    			GroupName:       pulumi.String("tf-describe-mg-config-test"),
    			ServiceLogging:  pulumi.Bool(true),
    			AutoUpdate:      pulumi.Bool(true),
    			UpdateEndTime:   pulumi.String("19:05:00"),
    			UpdateStartTime: pulumi.String("17:05:00"),
    			MachineGroupType: &tencentcloud.ClsMachineGroupMachineGroupTypeArgs{
    				Type: pulumi.String("ip"),
    				Values: pulumi.StringArray{
    					pulumi.String("192.168.1.1"),
    					pulumi.String("192.168.1.2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetClsMachineGroupConfigsOutput(ctx, tencentcloud.GetClsMachineGroupConfigsOutputArgs{
    			GroupId: group.ClsMachineGroupId,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @group = new Tencentcloud.ClsMachineGroup("group", new()
        {
            GroupName = "tf-describe-mg-config-test",
            ServiceLogging = true,
            AutoUpdate = true,
            UpdateEndTime = "19:05:00",
            UpdateStartTime = "17:05:00",
            MachineGroupType = new Tencentcloud.Inputs.ClsMachineGroupMachineGroupTypeArgs
            {
                Type = "ip",
                Values = new[]
                {
                    "192.168.1.1",
                    "192.168.1.2",
                },
            },
        });
    
        var machineGroupConfigs = Tencentcloud.GetClsMachineGroupConfigs.Invoke(new()
        {
            GroupId = @group.ClsMachineGroupId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClsMachineGroup;
    import com.pulumi.tencentcloud.ClsMachineGroupArgs;
    import com.pulumi.tencentcloud.inputs.ClsMachineGroupMachineGroupTypeArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetClsMachineGroupConfigsArgs;
    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 group = new ClsMachineGroup("group", ClsMachineGroupArgs.builder()
                .groupName("tf-describe-mg-config-test")
                .serviceLogging(true)
                .autoUpdate(true)
                .updateEndTime("19:05:00")
                .updateStartTime("17:05:00")
                .machineGroupType(ClsMachineGroupMachineGroupTypeArgs.builder()
                    .type("ip")
                    .values(                
                        "192.168.1.1",
                        "192.168.1.2")
                    .build())
                .build());
    
            final var machineGroupConfigs = TencentcloudFunctions.getClsMachineGroupConfigs(GetClsMachineGroupConfigsArgs.builder()
                .groupId(group.clsMachineGroupId())
                .build());
    
        }
    }
    
    resources:
      group:
        type: tencentcloud:ClsMachineGroup
        properties:
          groupName: tf-describe-mg-config-test
          serviceLogging: true
          autoUpdate: true
          updateEndTime: 19:05:00
          updateStartTime: 17:05:00
          machineGroupType:
            type: ip
            values:
              - 192.168.1.1
              - 192.168.1.2
    variables:
      machineGroupConfigs:
        fn::invoke:
          function: tencentcloud:getClsMachineGroupConfigs
          arguments:
            groupId: ${group.clsMachineGroupId}
    

    Using getClsMachineGroupConfigs

    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 getClsMachineGroupConfigs(args: GetClsMachineGroupConfigsArgs, opts?: InvokeOptions): Promise<GetClsMachineGroupConfigsResult>
    function getClsMachineGroupConfigsOutput(args: GetClsMachineGroupConfigsOutputArgs, opts?: InvokeOptions): Output<GetClsMachineGroupConfigsResult>
    def get_cls_machine_group_configs(group_id: Optional[str] = None,
                                      id: Optional[str] = None,
                                      result_output_file: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetClsMachineGroupConfigsResult
    def get_cls_machine_group_configs_output(group_id: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      result_output_file: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetClsMachineGroupConfigsResult]
    func GetClsMachineGroupConfigs(ctx *Context, args *GetClsMachineGroupConfigsArgs, opts ...InvokeOption) (*GetClsMachineGroupConfigsResult, error)
    func GetClsMachineGroupConfigsOutput(ctx *Context, args *GetClsMachineGroupConfigsOutputArgs, opts ...InvokeOption) GetClsMachineGroupConfigsResultOutput

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

    public static class GetClsMachineGroupConfigs 
    {
        public static Task<GetClsMachineGroupConfigsResult> InvokeAsync(GetClsMachineGroupConfigsArgs args, InvokeOptions? opts = null)
        public static Output<GetClsMachineGroupConfigsResult> Invoke(GetClsMachineGroupConfigsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClsMachineGroupConfigsResult> getClsMachineGroupConfigs(GetClsMachineGroupConfigsArgs args, InvokeOptions options)
    public static Output<GetClsMachineGroupConfigsResult> getClsMachineGroupConfigs(GetClsMachineGroupConfigsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClsMachineGroupConfigs:getClsMachineGroupConfigs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GroupId string
    group id.
    Id string
    ResultOutputFile string
    Used to save results.
    GroupId string
    group id.
    Id string
    ResultOutputFile string
    Used to save results.
    groupId String
    group id.
    id String
    resultOutputFile String
    Used to save results.
    groupId string
    group id.
    id string
    resultOutputFile string
    Used to save results.
    group_id str
    group id.
    id str
    result_output_file str
    Used to save results.
    groupId String
    group id.
    id String
    resultOutputFile String
    Used to save results.

    getClsMachineGroupConfigs Result

    The following output properties are available:

    configs List<Property Map>
    scrape config list.
    groupId String
    id String
    resultOutputFile String

    Supporting Types

    GetClsMachineGroupConfigsConfig

    ConfigId string
    scrape config id.
    CreateTime string
    create time.
    ExcludePaths List<GetClsMachineGroupConfigsConfigExcludePath>
    Collection path blocklist.
    ExtractRules List<GetClsMachineGroupConfigsConfigExtractRule>
    Extraction rule. If ExtractRule is set, LogType must be set.
    LogFormat string
    style of log format.
    LogType string
    log type.
    Name string
    scrape config name.
    Output string
    topicid.
    Path string
    scrape log path.
    UpdateTime string
    update time.
    UserDefineRule string
    user define rule.
    ConfigId string
    scrape config id.
    CreateTime string
    create time.
    ExcludePaths []GetClsMachineGroupConfigsConfigExcludePath
    Collection path blocklist.
    ExtractRules []GetClsMachineGroupConfigsConfigExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    LogFormat string
    style of log format.
    LogType string
    log type.
    Name string
    scrape config name.
    Output string
    topicid.
    Path string
    scrape log path.
    UpdateTime string
    update time.
    UserDefineRule string
    user define rule.
    configId String
    scrape config id.
    createTime String
    create time.
    excludePaths List<GetClsMachineGroupConfigsConfigExcludePath>
    Collection path blocklist.
    extractRules List<GetClsMachineGroupConfigsConfigExtractRule>
    Extraction rule. If ExtractRule is set, LogType must be set.
    logFormat String
    style of log format.
    logType String
    log type.
    name String
    scrape config name.
    output String
    topicid.
    path String
    scrape log path.
    updateTime String
    update time.
    userDefineRule String
    user define rule.
    configId string
    scrape config id.
    createTime string
    create time.
    excludePaths GetClsMachineGroupConfigsConfigExcludePath[]
    Collection path blocklist.
    extractRules GetClsMachineGroupConfigsConfigExtractRule[]
    Extraction rule. If ExtractRule is set, LogType must be set.
    logFormat string
    style of log format.
    logType string
    log type.
    name string
    scrape config name.
    output string
    topicid.
    path string
    scrape log path.
    updateTime string
    update time.
    userDefineRule string
    user define rule.
    config_id str
    scrape config id.
    create_time str
    create time.
    exclude_paths Sequence[GetClsMachineGroupConfigsConfigExcludePath]
    Collection path blocklist.
    extract_rules Sequence[GetClsMachineGroupConfigsConfigExtractRule]
    Extraction rule. If ExtractRule is set, LogType must be set.
    log_format str
    style of log format.
    log_type str
    log type.
    name str
    scrape config name.
    output str
    topicid.
    path str
    scrape log path.
    update_time str
    update time.
    user_define_rule str
    user define rule.
    configId String
    scrape config id.
    createTime String
    create time.
    excludePaths List<Property Map>
    Collection path blocklist.
    extractRules List<Property Map>
    Extraction rule. If ExtractRule is set, LogType must be set.
    logFormat String
    style of log format.
    logType String
    log type.
    name String
    scrape config name.
    output String
    topicid.
    path String
    scrape log path.
    updateTime String
    update time.
    userDefineRule String
    user define rule.

    GetClsMachineGroupConfigsConfigExcludePath

    Type string
    Type. Valid values: File, Path.
    Value string
    tag value.
    Type string
    Type. Valid values: File, Path.
    Value string
    tag value.
    type String
    Type. Valid values: File, Path.
    value String
    tag value.
    type string
    Type. Valid values: File, Path.
    value string
    tag value.
    type str
    Type. Valid values: File, Path.
    value str
    tag value.
    type String
    Type. Valid values: File, Path.
    value String
    tag value.

    GetClsMachineGroupConfigsConfigExtractRule

    Address string
    syslog system log collection specifies the address and port that the collector listens to.
    Backtracking double
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    BeginRegex string
    First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
    Delimiter string
    Delimiter for delimited log, which is valid only if log_type is delimiter_log.
    FilterKeyRegexes List<GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex>
    Log keys to be filtered and the corresponding regex.
    IsGbk double
    GBK encoding. Default 0.
    JsonStandard double
    standard json. Default 0.
    Keys List<string>
    Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
    LogRegex string
    Full log matching rule, which is valid only if log_type is fullregex_log.
    MetaTags List<GetClsMachineGroupConfigsConfigExtractRuleMetaTag>
    metadata tags.
    MetadataType double
    metadata type.
    ParseProtocol string
    parse protocol.
    PathRegex string
    metadata path regex.
    Protocol string
    syslog protocol, tcp or udp.
    TimeFormat string
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    TimeKey string
    Time field key name. time_key and time_format must appear in pair.
    UnMatchLogKey string
    Unmatched log key.
    UnMatchUpLoadSwitch bool
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
    Address string
    syslog system log collection specifies the address and port that the collector listens to.
    Backtracking float64
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    BeginRegex string
    First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
    Delimiter string
    Delimiter for delimited log, which is valid only if log_type is delimiter_log.
    FilterKeyRegexes []GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex
    Log keys to be filtered and the corresponding regex.
    IsGbk float64
    GBK encoding. Default 0.
    JsonStandard float64
    standard json. Default 0.
    Keys []string
    Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
    LogRegex string
    Full log matching rule, which is valid only if log_type is fullregex_log.
    MetaTags []GetClsMachineGroupConfigsConfigExtractRuleMetaTag
    metadata tags.
    MetadataType float64
    metadata type.
    ParseProtocol string
    parse protocol.
    PathRegex string
    metadata path regex.
    Protocol string
    syslog protocol, tcp or udp.
    TimeFormat string
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    TimeKey string
    Time field key name. time_key and time_format must appear in pair.
    UnMatchLogKey string
    Unmatched log key.
    UnMatchUpLoadSwitch bool
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
    address String
    syslog system log collection specifies the address and port that the collector listens to.
    backtracking Double
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    beginRegex String
    First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
    delimiter String
    Delimiter for delimited log, which is valid only if log_type is delimiter_log.
    filterKeyRegexes List<GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex>
    Log keys to be filtered and the corresponding regex.
    isGbk Double
    GBK encoding. Default 0.
    jsonStandard Double
    standard json. Default 0.
    keys List<String>
    Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
    logRegex String
    Full log matching rule, which is valid only if log_type is fullregex_log.
    metaTags List<GetClsMachineGroupConfigsConfigExtractRuleMetaTag>
    metadata tags.
    metadataType Double
    metadata type.
    parseProtocol String
    parse protocol.
    pathRegex String
    metadata path regex.
    protocol String
    syslog protocol, tcp or udp.
    timeFormat String
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    timeKey String
    Time field key name. time_key and time_format must appear in pair.
    unMatchLogKey String
    Unmatched log key.
    unMatchUpLoadSwitch Boolean
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
    address string
    syslog system log collection specifies the address and port that the collector listens to.
    backtracking number
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    beginRegex string
    First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
    delimiter string
    Delimiter for delimited log, which is valid only if log_type is delimiter_log.
    filterKeyRegexes GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex[]
    Log keys to be filtered and the corresponding regex.
    isGbk number
    GBK encoding. Default 0.
    jsonStandard number
    standard json. Default 0.
    keys string[]
    Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
    logRegex string
    Full log matching rule, which is valid only if log_type is fullregex_log.
    metaTags GetClsMachineGroupConfigsConfigExtractRuleMetaTag[]
    metadata tags.
    metadataType number
    metadata type.
    parseProtocol string
    parse protocol.
    pathRegex string
    metadata path regex.
    protocol string
    syslog protocol, tcp or udp.
    timeFormat string
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    timeKey string
    Time field key name. time_key and time_format must appear in pair.
    unMatchLogKey string
    Unmatched log key.
    unMatchUpLoadSwitch boolean
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
    address str
    syslog system log collection specifies the address and port that the collector listens to.
    backtracking float
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    begin_regex str
    First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
    delimiter str
    Delimiter for delimited log, which is valid only if log_type is delimiter_log.
    filter_key_regexes Sequence[GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex]
    Log keys to be filtered and the corresponding regex.
    is_gbk float
    GBK encoding. Default 0.
    json_standard float
    standard json. Default 0.
    keys Sequence[str]
    Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
    log_regex str
    Full log matching rule, which is valid only if log_type is fullregex_log.
    meta_tags Sequence[GetClsMachineGroupConfigsConfigExtractRuleMetaTag]
    metadata tags.
    metadata_type float
    metadata type.
    parse_protocol str
    parse protocol.
    path_regex str
    metadata path regex.
    protocol str
    syslog protocol, tcp or udp.
    time_format str
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    time_key str
    Time field key name. time_key and time_format must appear in pair.
    un_match_log_key str
    Unmatched log key.
    un_match_up_load_switch bool
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
    address String
    syslog system log collection specifies the address and port that the collector listens to.
    backtracking Number
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    beginRegex String
    First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
    delimiter String
    Delimiter for delimited log, which is valid only if log_type is delimiter_log.
    filterKeyRegexes List<Property Map>
    Log keys to be filtered and the corresponding regex.
    isGbk Number
    GBK encoding. Default 0.
    jsonStandard Number
    standard json. Default 0.
    keys List<String>
    Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
    logRegex String
    Full log matching rule, which is valid only if log_type is fullregex_log.
    metaTags List<Property Map>
    metadata tags.
    metadataType Number
    metadata type.
    parseProtocol String
    parse protocol.
    pathRegex String
    metadata path regex.
    protocol String
    syslog protocol, tcp or udp.
    timeFormat String
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    timeKey String
    Time field key name. time_key and time_format must appear in pair.
    unMatchLogKey String
    Unmatched log key.
    unMatchUpLoadSwitch Boolean
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.

    GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex

    Key string
    tag key.
    Regex string
    Filter rule regex corresponding to key.
    Key string
    tag key.
    Regex string
    Filter rule regex corresponding to key.
    key String
    tag key.
    regex String
    Filter rule regex corresponding to key.
    key string
    tag key.
    regex string
    Filter rule regex corresponding to key.
    key str
    tag key.
    regex str
    Filter rule regex corresponding to key.
    key String
    tag key.
    regex String
    Filter rule regex corresponding to key.

    GetClsMachineGroupConfigsConfigExtractRuleMetaTag

    Key string
    tag key.
    Value string
    tag value.
    Key string
    tag key.
    Value string
    tag value.
    key String
    tag key.
    value String
    tag value.
    key string
    tag key.
    value string
    tag value.
    key str
    tag key.
    value str
    tag value.
    key String
    tag key.
    value String
    tag value.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack