Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of tls hosts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tls.getHosts({
hostGroupId: "527102e2-1e4f-45f4-a990-751152125da7",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tls.get_hosts(host_group_id="527102e2-1e4f-45f4-a990-751152125da7")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.GetHosts(ctx, &tls.GetHostsArgs{
HostGroupId: "527102e2-1e4f-45f4-a990-751152125da7",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Tls.GetHosts.Invoke(new()
{
HostGroupId = "527102e2-1e4f-45f4-a990-751152125da7",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.TlsFunctions;
import com.pulumi.volcengine.tls.inputs.GetHostsArgs;
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 default = TlsFunctions.getHosts(GetHostsArgs.builder()
.hostGroupId("527102e2-1e4f-45f4-a990-751152125da7")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:tls:getHosts
Arguments:
hostGroupId: 527102e2-1e4f-45f4-a990-751152125da7
Using getHosts
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 getHosts(args: GetHostsArgs, opts?: InvokeOptions): Promise<GetHostsResult>
function getHostsOutput(args: GetHostsOutputArgs, opts?: InvokeOptions): Output<GetHostsResult>def get_hosts(heartbeat_status: Optional[int] = None,
host_group_id: Optional[str] = None,
ip: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHostsResult
def get_hosts_output(heartbeat_status: Optional[pulumi.Input[int]] = None,
host_group_id: Optional[pulumi.Input[str]] = None,
ip: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHostsResult]func GetHosts(ctx *Context, args *GetHostsArgs, opts ...InvokeOption) (*GetHostsResult, error)
func GetHostsOutput(ctx *Context, args *GetHostsOutputArgs, opts ...InvokeOption) GetHostsResultOutput> Note: This function is named GetHosts in the Go SDK.
public static class GetHosts
{
public static Task<GetHostsResult> InvokeAsync(GetHostsArgs args, InvokeOptions? opts = null)
public static Output<GetHostsResult> Invoke(GetHostsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHostsResult> getHosts(GetHostsArgs args, InvokeOptions options)
public static Output<GetHostsResult> getHosts(GetHostsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:tls/getHosts:getHosts
arguments:
# arguments dictionaryThe following arguments are supported:
- Host
Group stringId - The id of host group.
- Heartbeat
Status int - The the heartbeat status.
- Ip string
- The ip address.
- Output
File string - File name where to save data source results.
- Host
Group stringId - The id of host group.
- Heartbeat
Status int - The the heartbeat status.
- Ip string
- The ip address.
- Output
File string - File name where to save data source results.
- host
Group StringId - The id of host group.
- heartbeat
Status Integer - The the heartbeat status.
- ip String
- The ip address.
- output
File String - File name where to save data source results.
- host
Group stringId - The id of host group.
- heartbeat
Status number - The the heartbeat status.
- ip string
- The ip address.
- output
File string - File name where to save data source results.
- host_
group_ strid - The id of host group.
- heartbeat_
status int - The the heartbeat status.
- ip str
- The ip address.
- output_
file str - File name where to save data source results.
- host
Group StringId - The id of host group.
- heartbeat
Status Number - The the heartbeat status.
- ip String
- The ip address.
- output
File String - File name where to save data source results.
getHosts Result
The following output properties are available:
- Host
Group stringId - The id of host group.
- Host
Infos List<GetHosts Host Info> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Heartbeat
Status int - The the heartbeat status.
- Ip string
- The ip address.
- Output
File string
- Host
Group stringId - The id of host group.
- Host
Infos []GetHosts Host Info - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Heartbeat
Status int - The the heartbeat status.
- Ip string
- The ip address.
- Output
File string
- host
Group StringId - The id of host group.
- host
Infos List<GetHosts Host Info> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- heartbeat
Status Integer - The the heartbeat status.
- ip String
- The ip address.
- output
File String
- host
Group stringId - The id of host group.
- host
Infos GetHosts Host Info[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- heartbeat
Status number - The the heartbeat status.
- ip string
- The ip address.
- output
File string
- host_
group_ strid - The id of host group.
- host_
infos Sequence[GetHosts Host Info] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- heartbeat_
status int - The the heartbeat status.
- ip str
- The ip address.
- output_
file str
- host
Group StringId - The id of host group.
- host
Infos List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- heartbeat
Status Number - The the heartbeat status.
- ip String
- The ip address.
- output
File String
Supporting Types
GetHostsHostInfo
- Heartbeat
Status int - The the heartbeat status.
- Host
Group stringId - The id of host group.
- Ip string
- The ip address.
- Log
Collector stringVersion - The version of log collector.
- Heartbeat
Status int - The the heartbeat status.
- Host
Group stringId - The id of host group.
- Ip string
- The ip address.
- Log
Collector stringVersion - The version of log collector.
- heartbeat
Status Integer - The the heartbeat status.
- host
Group StringId - The id of host group.
- ip String
- The ip address.
- log
Collector StringVersion - The version of log collector.
- heartbeat
Status number - The the heartbeat status.
- host
Group stringId - The id of host group.
- ip string
- The ip address.
- log
Collector stringVersion - The version of log collector.
- heartbeat_
status int - The the heartbeat status.
- host_
group_ strid - The id of host group.
- ip str
- The ip address.
- log_
collector_ strversion - The version of log collector.
- heartbeat
Status Number - The the heartbeat status.
- host
Group StringId - The id of host group.
- ip String
- The ip address.
- log
Collector StringVersion - The version of log collector.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
