tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClsMachineGroupConfigs
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 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:
- Group
Id string - group id.
- Id string
- Result
Output stringFile - Used to save results.
- Group
Id string - group id.
- Id string
- Result
Output stringFile - Used to save results.
- group
Id String - group id.
- id String
- result
Output StringFile - Used to save results.
- group
Id string - group id.
- id string
- result
Output stringFile - Used to save results.
- group_
id str - group id.
- id str
- result_
output_ strfile - Used to save results.
- group
Id String - group id.
- id String
- result
Output StringFile - Used to save results.
getClsMachineGroupConfigs Result
The following output properties are available:
- Configs
List<Get
Cls Machine Group Configs Config> - scrape config list.
- Group
Id string - Id string
- Result
Output stringFile
- Configs
[]Get
Cls Machine Group Configs Config - scrape config list.
- Group
Id string - Id string
- Result
Output stringFile
- configs
List<Get
Cls Machine Group Configs Config> - scrape config list.
- group
Id String - id String
- result
Output StringFile
- configs
Get
Cls Machine Group Configs Config[] - scrape config list.
- group
Id string - id string
- result
Output stringFile
- configs
Sequence[Get
Cls Machine Group Configs Config] - scrape config list.
- group_
id str - id str
- result_
output_ strfile
- configs List<Property Map>
- scrape config list.
- group
Id String - id String
- result
Output StringFile
Supporting Types
GetClsMachineGroupConfigsConfig
- Config
Id string - scrape config id.
- Create
Time string - create time.
- Exclude
Paths List<GetCls Machine Group Configs Config Exclude Path> - Collection path blocklist.
- Extract
Rules List<GetCls Machine Group Configs Config Extract Rule> - Extraction rule. If ExtractRule is set, LogType must be set.
- Log
Format string - style of log format.
- Log
Type string - log type.
- Name string
- scrape config name.
- Output string
- topicid.
- Path string
- scrape log path.
- Update
Time string - update time.
- User
Define stringRule - user define rule.
- Config
Id string - scrape config id.
- Create
Time string - create time.
- Exclude
Paths []GetCls Machine Group Configs Config Exclude Path - Collection path blocklist.
- Extract
Rules []GetCls Machine Group Configs Config Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- Log
Format string - style of log format.
- Log
Type string - log type.
- Name string
- scrape config name.
- Output string
- topicid.
- Path string
- scrape log path.
- Update
Time string - update time.
- User
Define stringRule - user define rule.
- config
Id String - scrape config id.
- create
Time String - create time.
- exclude
Paths List<GetCls Machine Group Configs Config Exclude Path> - Collection path blocklist.
- extract
Rules List<GetCls Machine Group Configs Config Extract Rule> - Extraction rule. If ExtractRule is set, LogType must be set.
- log
Format String - style of log format.
- log
Type String - log type.
- name String
- scrape config name.
- output String
- topicid.
- path String
- scrape log path.
- update
Time String - update time.
- user
Define StringRule - user define rule.
- config
Id string - scrape config id.
- create
Time string - create time.
- exclude
Paths GetCls Machine Group Configs Config Exclude Path[] - Collection path blocklist.
- extract
Rules GetCls Machine Group Configs Config Extract Rule[] - Extraction rule. If ExtractRule is set, LogType must be set.
- log
Format string - style of log format.
- log
Type string - log type.
- name string
- scrape config name.
- output string
- topicid.
- path string
- scrape log path.
- update
Time string - update time.
- user
Define stringRule - user define rule.
- config_
id str - scrape config id.
- create_
time str - create time.
- exclude_
paths Sequence[GetCls Machine Group Configs Config Exclude Path] - Collection path blocklist.
- extract_
rules Sequence[GetCls Machine Group Configs Config Extract Rule] - 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_ strrule - user define rule.
- config
Id String - scrape config id.
- create
Time String - create time.
- exclude
Paths List<Property Map> - Collection path blocklist.
- extract
Rules List<Property Map> - Extraction rule. If ExtractRule is set, LogType must be set.
- log
Format String - style of log format.
- log
Type String - log type.
- name String
- scrape config name.
- output String
- topicid.
- path String
- scrape log path.
- update
Time String - update time.
- user
Define StringRule - user define rule.
GetClsMachineGroupConfigsConfigExcludePath
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).
- Begin
Regex 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.
- Filter
Key List<GetRegexes Cls Machine Group Configs Config Extract Rule Filter Key Regex> - Log keys to be filtered and the corresponding regex.
- Is
Gbk double - GBK encoding. Default 0.
- Json
Standard 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.
- Log
Regex string - Full log matching rule, which is valid only if log_type is fullregex_log.
- List<Get
Cls Machine Group Configs Config Extract Rule Meta Tag> - metadata tags.
- Metadata
Type double - metadata type.
- Parse
Protocol string - parse protocol.
- Path
Regex string - metadata path regex.
- Protocol string
- syslog protocol, tcp or udp.
- Time
Format string - 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 string - Time field key name. time_key and time_format must appear in pair.
- Un
Match stringLog Key - Unmatched log key.
- Un
Match boolUp Load Switch - 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).
- Begin
Regex 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.
- Filter
Key []GetRegexes Cls Machine Group Configs Config Extract Rule Filter Key Regex - Log keys to be filtered and the corresponding regex.
- Is
Gbk float64 - GBK encoding. Default 0.
- Json
Standard 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.
- Log
Regex string - Full log matching rule, which is valid only if log_type is fullregex_log.
- []Get
Cls Machine Group Configs Config Extract Rule Meta Tag - metadata tags.
- Metadata
Type float64 - metadata type.
- Parse
Protocol string - parse protocol.
- Path
Regex string - metadata path regex.
- Protocol string
- syslog protocol, tcp or udp.
- Time
Format string - 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 string - Time field key name. time_key and time_format must appear in pair.
- Un
Match stringLog Key - Unmatched log key.
- Un
Match boolUp Load Switch - 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).
- begin
Regex 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.
- filter
Key List<GetRegexes Cls Machine Group Configs Config Extract Rule Filter Key Regex> - Log keys to be filtered and the corresponding regex.
- is
Gbk Double - GBK encoding. Default 0.
- json
Standard 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.
- log
Regex String - Full log matching rule, which is valid only if log_type is fullregex_log.
- List<Get
Cls Machine Group Configs Config Extract Rule Meta Tag> - metadata tags.
- metadata
Type Double - metadata type.
- parse
Protocol String - parse protocol.
- path
Regex String - metadata path regex.
- protocol String
- syslog protocol, tcp or udp.
- time
Format String - 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 String - Time field key name. time_key and time_format must appear in pair.
- un
Match StringLog Key - Unmatched log key.
- un
Match BooleanUp Load Switch - 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).
- begin
Regex 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.
- filter
Key GetRegexes Cls Machine Group Configs Config Extract Rule Filter Key Regex[] - Log keys to be filtered and the corresponding regex.
- is
Gbk number - GBK encoding. Default 0.
- json
Standard 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.
- log
Regex string - Full log matching rule, which is valid only if log_type is fullregex_log.
- Get
Cls Machine Group Configs Config Extract Rule Meta Tag[] - metadata tags.
- metadata
Type number - metadata type.
- parse
Protocol string - parse protocol.
- path
Regex string - metadata path regex.
- protocol string
- syslog protocol, tcp or udp.
- time
Format string - 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 string - Time field key name. time_key and time_format must appear in pair.
- un
Match stringLog Key - Unmatched log key.
- un
Match booleanUp Load Switch - 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_ Sequence[Getregexes Cls Machine Group Configs Config Extract Rule Filter Key Regex] - 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.
- Sequence[Get
Cls Machine Group Configs Config Extract Rule Meta Tag] - 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_ strlog_ key - Unmatched log key.
- un_
match_ boolup_ load_ switch - 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).
- begin
Regex 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.
- filter
Key List<Property Map>Regexes - Log keys to be filtered and the corresponding regex.
- is
Gbk Number - GBK encoding. Default 0.
- json
Standard 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.
- log
Regex String - Full log matching rule, which is valid only if log_type is fullregex_log.
- List<Property Map>
- metadata tags.
- metadata
Type Number - metadata type.
- parse
Protocol String - parse protocol.
- path
Regex String - metadata path regex.
- protocol String
- syslog protocol, tcp or udp.
- time
Format String - 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 String - Time field key name. time_key and time_format must appear in pair.
- un
Match StringLog Key - Unmatched log key.
- un
Match BooleanUp Load Switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
GetClsMachineGroupConfigsConfigExtractRuleFilterKeyRegex
GetClsMachineGroupConfigsConfigExtractRuleMetaTag
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