Viewing docs for tencentcloud 1.83.23
published on Friday, Aug 14, 2026 by tencentcloudstack
published on Friday, Aug 14, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.23
published on Friday, Aug 14, 2026 by tencentcloudstack
published on Friday, Aug 14, 2026 by tencentcloudstack
Use this data source to query detailed information of cls machine_groups
Example Usage
Query all machine groups
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getClsMachineGroups({});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cls_machine_groups()
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.GetClsMachineGroups(ctx, &tencentcloud.GetClsMachineGroupsArgs{}, 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 example = Tencentcloud.GetClsMachineGroups.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.GetClsMachineGroupsArgs;
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 example = TencentcloudFunctions.getClsMachineGroups(GetClsMachineGroupsArgs.builder()
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getClsMachineGroups
arguments: {}
Example coming soon!
Query machine group by filters
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getClsMachineGroups({
filters: [
{
name: "machineGroupId",
values: ["76e09d6f-e0c5-4103-bd6e-22bdbf63a76e"],
},
{
name: "machineGroupName",
values: ["cls-m26ybna6"],
},
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cls_machine_groups(filters=[
{
"name": "machineGroupId",
"values": ["76e09d6f-e0c5-4103-bd6e-22bdbf63a76e"],
},
{
"name": "machineGroupName",
"values": ["cls-m26ybna6"],
},
])
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.GetClsMachineGroups(ctx, &tencentcloud.GetClsMachineGroupsArgs{
Filters: []tencentcloud.GetClsMachineGroupsFilter{
{
Name: "machineGroupId",
Values: []string{
"76e09d6f-e0c5-4103-bd6e-22bdbf63a76e",
},
},
{
Name: "machineGroupName",
Values: []string{
"cls-m26ybna6",
},
},
},
}, 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 example = Tencentcloud.GetClsMachineGroups.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetClsMachineGroupsFilterInputArgs
{
Name = "machineGroupId",
Values = new[]
{
"76e09d6f-e0c5-4103-bd6e-22bdbf63a76e",
},
},
new Tencentcloud.Inputs.GetClsMachineGroupsFilterInputArgs
{
Name = "machineGroupName",
Values = new[]
{
"cls-m26ybna6",
},
},
},
});
});
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.GetClsMachineGroupsArgs;
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 example = TencentcloudFunctions.getClsMachineGroups(GetClsMachineGroupsArgs.builder()
.filters(
GetClsMachineGroupsFilterArgs.builder()
.name("machineGroupId")
.values("76e09d6f-e0c5-4103-bd6e-22bdbf63a76e")
.build(),
GetClsMachineGroupsFilterArgs.builder()
.name("machineGroupName")
.values("cls-m26ybna6")
.build())
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getClsMachineGroups
arguments:
filters:
- name: machineGroupId
values:
- 76e09d6f-e0c5-4103-bd6e-22bdbf63a76e
- name: machineGroupName
values:
- cls-m26ybna6
Example coming soon!
Using getClsMachineGroups
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 getClsMachineGroups(args: GetClsMachineGroupsArgs, opts?: InvokeOptions): Promise<GetClsMachineGroupsResult>
function getClsMachineGroupsOutput(args: GetClsMachineGroupsOutputArgs, opts?: InvokeOptions): Output<GetClsMachineGroupsResult>def get_cls_machine_groups(filters: Optional[Sequence[GetClsMachineGroupsFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClsMachineGroupsResult
def get_cls_machine_groups_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetClsMachineGroupsFilterArgs]]]] = None,
id: pulumi.Input[Optional[str]] = None,
result_output_file: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClsMachineGroupsResult]func GetClsMachineGroups(ctx *Context, args *GetClsMachineGroupsArgs, opts ...InvokeOption) (*GetClsMachineGroupsResult, error)
func GetClsMachineGroupsOutput(ctx *Context, args *GetClsMachineGroupsOutputArgs, opts ...InvokeOption) GetClsMachineGroupsResultOutput> Note: This function is named GetClsMachineGroups in the Go SDK.
public static class GetClsMachineGroups
{
public static Task<GetClsMachineGroupsResult> InvokeAsync(GetClsMachineGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetClsMachineGroupsResult> Invoke(GetClsMachineGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClsMachineGroupsResult> getClsMachineGroups(GetClsMachineGroupsArgs args, InvokeOptions options)
public static Output<GetClsMachineGroupsResult> getClsMachineGroups(GetClsMachineGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClsMachineGroups:getClsMachineGroups
arguments:
# arguments dictionarydata "tencentcloud_get_cls_machine_groups" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Cls Machine Groups Filter> - Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - Id string
- Result
Output stringFile - Used to save results.
- Filters
[]Get
Cls Machine Groups Filter - Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - Id string
- Result
Output stringFile - Used to save results.
- filters list(object)
- Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - id string
- result_
output_ stringfile - Used to save results.
- filters
List<Get
Cls Machine Groups Filter> - Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - id String
- result
Output StringFile - Used to save results.
- filters
Get
Cls Machine Groups Filter[] - Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - id string
- result
Output stringFile - Used to save results.
- filters
Sequence[Get
Cls Machine Groups Filter] - Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - id str
- result_
output_ strfile - Used to save results.
- filters List<Property Map>
- Filter conditions. Maximum 10 filters, each with up to 5 values. Supported keys:
machineGroupName,machineGroupId,osType,tagKey,tag:tagKey. - id String
- result
Output StringFile - Used to save results.
getClsMachineGroups Result
The following output properties are available:
- Id string
- Machine
Groups List<GetCls Machine Groups Machine Group> - List of cls machine groups.
- Filters
List<Get
Cls Machine Groups Filter> - Result
Output stringFile
- Id string
- Machine
Groups []GetCls Machine Groups Machine Group - List of cls machine groups.
- Filters
[]Get
Cls Machine Groups Filter - Result
Output stringFile
- id string
- machine_
groups list(object) - List of cls machine groups.
- filters list(object)
- result_
output_ stringfile
- id String
- machine
Groups List<GetCls Machine Groups Machine Group> - List of cls machine groups.
- filters
List<Get
Cls Machine Groups Filter> - result
Output StringFile
- id string
- machine
Groups GetCls Machine Groups Machine Group[] - List of cls machine groups.
- filters
Get
Cls Machine Groups Filter[] - result
Output stringFile
- id str
- machine_
groups Sequence[GetCls Machine Groups Machine Group] - List of cls machine groups.
- filters
Sequence[Get
Cls Machine Groups Filter] - result_
output_ strfile
- id String
- machine
Groups List<Property Map> - List of cls machine groups.
- filters List<Property Map>
- result
Output StringFile
Supporting Types
GetClsMachineGroupsFilter
GetClsMachineGroupsMachineGroup
- Auto
Update string - Whether machine group auto update is enabled.
- Create
Time string - Creation time.
- Delay
Cleanup doubleTime - Machine offline periodic cleanup time, in days.
- Group
Id string - Machine group ID.
- Group
Name string - Machine group name.
- Machine
Group List<GetTypes Cls Machine Groups Machine Group Machine Group Type> - Machine group type.
-
List<Get
Cls Machine Groups Machine Group Meta Tag> - Machine group metadata tag list.
- Os
Type double - Operating system type. 0: Linux, 1: Windows.
- Service
Logging bool - Whether service logging is enabled.
-
List<Get
Cls Machine Groups Machine Group Tag> - Tag list.
- Update
End stringTime - Upgrade end time.
- Update
Start stringTime - Upgrade start time.
- Auto
Update string - Whether machine group auto update is enabled.
- Create
Time string - Creation time.
- Delay
Cleanup float64Time - Machine offline periodic cleanup time, in days.
- Group
Id string - Machine group ID.
- Group
Name string - Machine group name.
- Machine
Group []GetTypes Cls Machine Groups Machine Group Machine Group Type - Machine group type.
-
[]Get
Cls Machine Groups Machine Group Meta Tag - Machine group metadata tag list.
- Os
Type float64 - Operating system type. 0: Linux, 1: Windows.
- Service
Logging bool - Whether service logging is enabled.
-
[]Get
Cls Machine Groups Machine Group Tag - Tag list.
- Update
End stringTime - Upgrade end time.
- Update
Start stringTime - Upgrade start time.
- auto_
update string - Whether machine group auto update is enabled.
- create_
time string - Creation time.
- delay_
cleanup_ numbertime - Machine offline periodic cleanup time, in days.
- group_
id string - Machine group ID.
- group_
name string - Machine group name.
- machine_
group_ list(object)types - Machine group type.
- list(object)
- Machine group metadata tag list.
- os_
type number - Operating system type. 0: Linux, 1: Windows.
- service_
logging bool - Whether service logging is enabled.
- list(object)
- Tag list.
- update_
end_ stringtime - Upgrade end time.
- update_
start_ stringtime - Upgrade start time.
- auto
Update String - Whether machine group auto update is enabled.
- create
Time String - Creation time.
- delay
Cleanup DoubleTime - Machine offline periodic cleanup time, in days.
- group
Id String - Machine group ID.
- group
Name String - Machine group name.
- machine
Group List<GetTypes Cls Machine Groups Machine Group Machine Group Type> - Machine group type.
-
List<Get
Cls Machine Groups Machine Group Meta Tag> - Machine group metadata tag list.
- os
Type Double - Operating system type. 0: Linux, 1: Windows.
- service
Logging Boolean - Whether service logging is enabled.
-
List<Get
Cls Machine Groups Machine Group Tag> - Tag list.
- update
End StringTime - Upgrade end time.
- update
Start StringTime - Upgrade start time.
- auto
Update string - Whether machine group auto update is enabled.
- create
Time string - Creation time.
- delay
Cleanup numberTime - Machine offline periodic cleanup time, in days.
- group
Id string - Machine group ID.
- group
Name string - Machine group name.
- machine
Group GetTypes Cls Machine Groups Machine Group Machine Group Type[] - Machine group type.
-
Get
Cls Machine Groups Machine Group Meta Tag[] - Machine group metadata tag list.
- os
Type number - Operating system type. 0: Linux, 1: Windows.
- service
Logging boolean - Whether service logging is enabled.
-
Get
Cls Machine Groups Machine Group Tag[] - Tag list.
- update
End stringTime - Upgrade end time.
- update
Start stringTime - Upgrade start time.
- auto_
update str - Whether machine group auto update is enabled.
- create_
time str - Creation time.
- delay_
cleanup_ floattime - Machine offline periodic cleanup time, in days.
- group_
id str - Machine group ID.
- group_
name str - Machine group name.
- machine_
group_ Sequence[Gettypes Cls Machine Groups Machine Group Machine Group Type] - Machine group type.
-
Sequence[Get
Cls Machine Groups Machine Group Meta Tag] - Machine group metadata tag list.
- os_
type float - Operating system type. 0: Linux, 1: Windows.
- service_
logging bool - Whether service logging is enabled.
-
Sequence[Get
Cls Machine Groups Machine Group Tag] - Tag list.
- update_
end_ strtime - Upgrade end time.
- update_
start_ strtime - Upgrade start time.
- auto
Update String - Whether machine group auto update is enabled.
- create
Time String - Creation time.
- delay
Cleanup NumberTime - Machine offline periodic cleanup time, in days.
- group
Id String - Machine group ID.
- group
Name String - Machine group name.
- machine
Group List<Property Map>Types - Machine group type.
- List<Property Map>
- Machine group metadata tag list.
- os
Type Number - Operating system type. 0: Linux, 1: Windows.
- service
Logging Boolean - Whether service logging is enabled.
- List<Property Map>
- Tag list.
- update
End StringTime - Upgrade end time.
- update
Start StringTime - Upgrade start time.
GetClsMachineGroupsMachineGroupMachineGroupType
GetClsMachineGroupsMachineGroupMetaTag
GetClsMachineGroupsMachineGroupTag
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.83.23
published on Friday, Aug 14, 2026 by tencentcloudstack
published on Friday, Aug 14, 2026 by tencentcloudstack