tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClsMachines
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 machines
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const group = new tencentcloud.ClsMachineGroup("group", {
groupName: "tf-describe-mg-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 machines = tencentcloud.getClsMachinesOutput({
groupId: group.clsMachineGroupId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
group = tencentcloud.ClsMachineGroup("group",
group_name="tf-describe-mg-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",
],
})
machines = tencentcloud.get_cls_machines_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-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.GetClsMachinesOutput(ctx, tencentcloud.GetClsMachinesOutputArgs{
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-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 machines = Tencentcloud.GetClsMachines.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.GetClsMachinesArgs;
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-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 machines = TencentcloudFunctions.getClsMachines(GetClsMachinesArgs.builder()
.groupId(group.clsMachineGroupId())
.build());
}
}
resources:
group:
type: tencentcloud:ClsMachineGroup
properties:
groupName: tf-describe-mg-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:
machines:
fn::invoke:
function: tencentcloud:getClsMachines
arguments:
groupId: ${group.clsMachineGroupId}
Using getClsMachines
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 getClsMachines(args: GetClsMachinesArgs, opts?: InvokeOptions): Promise<GetClsMachinesResult>
function getClsMachinesOutput(args: GetClsMachinesOutputArgs, opts?: InvokeOptions): Output<GetClsMachinesResult>
def get_cls_machines(group_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClsMachinesResult
def get_cls_machines_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[GetClsMachinesResult]
func GetClsMachines(ctx *Context, args *GetClsMachinesArgs, opts ...InvokeOption) (*GetClsMachinesResult, error)
func GetClsMachinesOutput(ctx *Context, args *GetClsMachinesOutputArgs, opts ...InvokeOption) GetClsMachinesResultOutput
> Note: This function is named GetClsMachines
in the Go SDK.
public static class GetClsMachines
{
public static Task<GetClsMachinesResult> InvokeAsync(GetClsMachinesArgs args, InvokeOptions? opts = null)
public static Output<GetClsMachinesResult> Invoke(GetClsMachinesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClsMachinesResult> getClsMachines(GetClsMachinesArgs args, InvokeOptions options)
public static Output<GetClsMachinesResult> getClsMachines(GetClsMachinesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClsMachines:getClsMachines
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.
getClsMachines Result
The following output properties are available:
- Group
Id string - Id string
- Machines
List<Get
Cls Machines Machine> - Info of Machines.
- Result
Output stringFile
- Group
Id string - Id string
- Machines
[]Get
Cls Machines Machine - Info of Machines.
- Result
Output stringFile
- group
Id String - id String
- machines
List<Get
Cls Machines Machine> - Info of Machines.
- result
Output StringFile
- group
Id string - id string
- machines
Get
Cls Machines Machine[] - Info of Machines.
- result
Output stringFile
- group_
id str - id str
- machines
Sequence[Get
Cls Machines Machine] - Info of Machines.
- result_
output_ strfile
- group
Id String - id String
- machines List<Property Map>
- Info of Machines.
- result
Output StringFile
Supporting Types
GetClsMachinesMachine
- Auto
Update double - if open auto update flag.
- Err
Code double - code of update operation.
- Err
Msg string - msg of update operation.
- Ip string
- ip of machine.
- Offline
Time string - offline time of machine.
- Status double
- status of machine.
- Update
Status double - machine update status.
- Version string
- current machine version.
- Auto
Update float64 - if open auto update flag.
- Err
Code float64 - code of update operation.
- Err
Msg string - msg of update operation.
- Ip string
- ip of machine.
- Offline
Time string - offline time of machine.
- Status float64
- status of machine.
- Update
Status float64 - machine update status.
- Version string
- current machine version.
- auto
Update Double - if open auto update flag.
- err
Code Double - code of update operation.
- err
Msg String - msg of update operation.
- ip String
- ip of machine.
- offline
Time String - offline time of machine.
- status Double
- status of machine.
- update
Status Double - machine update status.
- version String
- current machine version.
- auto
Update number - if open auto update flag.
- err
Code number - code of update operation.
- err
Msg string - msg of update operation.
- ip string
- ip of machine.
- offline
Time string - offline time of machine.
- status number
- status of machine.
- update
Status number - machine update status.
- version string
- current machine version.
- auto_
update float - if open auto update flag.
- err_
code float - code of update operation.
- err_
msg str - msg of update operation.
- ip str
- ip of machine.
- offline_
time str - offline time of machine.
- status float
- status of machine.
- update_
status float - machine update status.
- version str
- current machine version.
- auto
Update Number - if open auto update flag.
- err
Code Number - code of update operation.
- err
Msg String - msg of update operation.
- ip String
- ip of machine.
- offline
Time String - offline time of machine.
- status Number
- status of machine.
- update
Status Number - machine update status.
- version String
- current machine version.
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