1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. Hosts
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.tls.Hosts

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of tls hosts

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Tls.Hosts.Invoke(new()
        {
            HostGroupId = "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.Hosts(ctx, &tls.HostsArgs{
    			HostGroupId: "527102e2-1e4f-45f4-a990-751152125da7",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.HostsArgs;
    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.Hosts(HostsArgs.builder()
                .hostGroupId("527102e2-1e4f-45f4-a990-751152125da7")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.tls.hosts(host_group_id="527102e2-1e4f-45f4-a990-751152125da7")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.tls.Hosts({
        hostGroupId: "527102e2-1e4f-45f4-a990-751152125da7",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:tls:Hosts
          Arguments:
            hostGroupId: 527102e2-1e4f-45f4-a990-751152125da7
    

    Using Hosts

    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 hosts(args: HostsArgs, opts?: InvokeOptions): Promise<HostsResult>
    function hostsOutput(args: HostsOutputArgs, opts?: InvokeOptions): Output<HostsResult>
    def 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) -> HostsResult
    def 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[HostsResult]
    func Hosts(ctx *Context, args *HostsArgs, opts ...InvokeOption) (*HostsResult, error)
    func HostsOutput(ctx *Context, args *HostsOutputArgs, opts ...InvokeOption) HostsResultOutput
    public static class Hosts 
    {
        public static Task<HostsResult> InvokeAsync(HostsArgs args, InvokeOptions? opts = null)
        public static Output<HostsResult> Invoke(HostsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<HostsResult> hosts(HostsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:tls:Hosts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    HostGroupId string
    The id of host group.
    HeartbeatStatus int
    The the heartbeat status.
    Ip string
    The ip address.
    OutputFile string
    File name where to save data source results.
    HostGroupId string
    The id of host group.
    HeartbeatStatus int
    The the heartbeat status.
    Ip string
    The ip address.
    OutputFile string
    File name where to save data source results.
    hostGroupId String
    The id of host group.
    heartbeatStatus Integer
    The the heartbeat status.
    ip String
    The ip address.
    outputFile String
    File name where to save data source results.
    hostGroupId string
    The id of host group.
    heartbeatStatus number
    The the heartbeat status.
    ip string
    The ip address.
    outputFile string
    File name where to save data source results.
    host_group_id str
    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.
    hostGroupId String
    The id of host group.
    heartbeatStatus Number
    The the heartbeat status.
    ip String
    The ip address.
    outputFile String
    File name where to save data source results.

    Hosts Result

    The following output properties are available:

    HostGroupId string
    The id of host group.
    HostInfos List<HostsHostInfo>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    HeartbeatStatus int
    The the heartbeat status.
    Ip string
    The ip address.
    OutputFile string
    HostGroupId string
    The id of host group.
    HostInfos []HostsHostInfo
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    HeartbeatStatus int
    The the heartbeat status.
    Ip string
    The ip address.
    OutputFile string
    hostGroupId String
    The id of host group.
    hostInfos List<HostsHostInfo>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    heartbeatStatus Integer
    The the heartbeat status.
    ip String
    The ip address.
    outputFile String
    hostGroupId string
    The id of host group.
    hostInfos HostsHostInfo[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    heartbeatStatus number
    The the heartbeat status.
    ip string
    The ip address.
    outputFile string
    host_group_id str
    The id of host group.
    host_infos Sequence[HostsHostInfo]
    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
    hostGroupId String
    The id of host group.
    hostInfos List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    heartbeatStatus Number
    The the heartbeat status.
    ip String
    The ip address.
    outputFile String

    Supporting Types

    HostsHostInfo

    HeartbeatStatus int
    The the heartbeat status.
    HostGroupId string
    The id of host group.
    Ip string
    The ip address.
    LogCollectorVersion string
    The version of log collector.
    HeartbeatStatus int
    The the heartbeat status.
    HostGroupId string
    The id of host group.
    Ip string
    The ip address.
    LogCollectorVersion string
    The version of log collector.
    heartbeatStatus Integer
    The the heartbeat status.
    hostGroupId String
    The id of host group.
    ip String
    The ip address.
    logCollectorVersion String
    The version of log collector.
    heartbeatStatus number
    The the heartbeat status.
    hostGroupId string
    The id of host group.
    ip string
    The ip address.
    logCollectorVersion string
    The version of log collector.
    heartbeat_status int
    The the heartbeat status.
    host_group_id str
    The id of host group.
    ip str
    The ip address.
    log_collector_version str
    The version of log collector.
    heartbeatStatus Number
    The the heartbeat status.
    hostGroupId String
    The id of host group.
    ip String
    The ip address.
    logCollectorVersion String
    The version of log collector.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine