1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. tls
  6. Host
Viewing docs for bytepluscc v0.0.42
published on Monday, Jul 20, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.42
published on Monday, Jul 20, 2026 by Byteplus

    Host in the log service, used to manage server nodes for log collection

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const tLSHostDemo = new bytepluscc.tls.Host("TLSHostDemo", {
        hostGroupId: "cef95463-1bc0-410f-9c4b-3114xxxxxx",
        ip: "192.168.1.3",
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    t_ls_host_demo = bytepluscc.tls.Host("TLSHostDemo",
        host_group_id="cef95463-1bc0-410f-9c4b-3114xxxxxx",
        ip="192.168.1.3")
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/tls"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.NewHost(ctx, "TLSHostDemo", &tls.HostArgs{
    			HostGroupId: pulumi.String("cef95463-1bc0-410f-9c4b-3114xxxxxx"),
    			Ip:          pulumi.String("192.168.1.3"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var tLSHostDemo = new Bytepluscc.Tls.Host("TLSHostDemo", new()
        {
            HostGroupId = "cef95463-1bc0-410f-9c4b-3114xxxxxx",
            Ip = "192.168.1.3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.tls.Host;
    import com.byteplus.bytepluscc.tls.HostArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 tLSHostDemo = new Host("tLSHostDemo", HostArgs.builder()
                .hostGroupId("cef95463-1bc0-410f-9c4b-3114xxxxxx")
                .ip("192.168.1.3")
                .build());
    
        }
    }
    
    resources:
      tLSHostDemo:
        type: bytepluscc:tls:Host
        name: TLSHostDemo
        properties:
          hostGroupId: cef95463-1bc0-410f-9c4b-3114xxxxxx
          ip: 192.168.1.3
    
    pulumi {
      required_providers {
        bytepluscc = {
          source = "pulumi/bytepluscc"
        }
      }
    }
    
    resource "bytepluscc_tls_host" "TLSHostDemo" {
      host_group_id = "cef95463-1bc0-410f-9c4b-3114xxxxxx"
      ip            = "192.168.1.3"
    }
    

    Create Host Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Host(name: string, args: HostArgs, opts?: CustomResourceOptions);
    @overload
    def Host(resource_name: str,
             args: HostArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Host(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             host_group_id: Optional[str] = None,
             ip: Optional[str] = None)
    func NewHost(ctx *Context, name string, args HostArgs, opts ...ResourceOption) (*Host, error)
    public Host(string name, HostArgs args, CustomResourceOptions? opts = null)
    public Host(String name, HostArgs args)
    public Host(String name, HostArgs args, CustomResourceOptions options)
    
    type: bytepluscc:tls:Host
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_tls_host" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var hostResource = new Bytepluscc.Tls.Host("hostResource", new()
    {
        HostGroupId = "string",
        Ip = "string",
    });
    
    example, err := tls.NewHost(ctx, "hostResource", &tls.HostArgs{
    	HostGroupId: pulumi.String("string"),
    	Ip:          pulumi.String("string"),
    })
    
    resource "bytepluscc_tls_host" "hostResource" {
      lifecycle {
        create_before_destroy = true
      }
      host_group_id = "string"
      ip            = "string"
    }
    
    var hostResource = new Host("hostResource", HostArgs.builder()
        .hostGroupId("string")
        .ip("string")
        .build());
    
    host_resource = bytepluscc.tls.Host("hostResource",
        host_group_id="string",
        ip="string")
    
    const hostResource = new bytepluscc.tls.Host("hostResource", {
        hostGroupId: "string",
        ip: "string",
    });
    
    type: bytepluscc:tls:Host
    properties:
        hostGroupId: string
        ip: string
    

    Host Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Host resource accepts the following input properties:

    HostGroupId string
    Machine group ID to which the host belongs
    Ip string
    Host IP address
    HostGroupId string
    Machine group ID to which the host belongs
    Ip string
    Host IP address
    host_group_id string
    Machine group ID to which the host belongs
    ip string
    Host IP address
    hostGroupId String
    Machine group ID to which the host belongs
    ip String
    Host IP address
    hostGroupId string
    Machine group ID to which the host belongs
    ip string
    Host IP address
    host_group_id str
    Machine group ID to which the host belongs
    ip str
    Host IP address
    hostGroupId String
    Machine group ID to which the host belongs
    ip String
    Host IP address

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Host resource produces the following output properties:

    HeartbeatStatus int
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    Id string
    The provider-assigned unique ID for this managed resource.
    LogCollectorVersion string
    Log collector version
    HeartbeatStatus int
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    Id string
    The provider-assigned unique ID for this managed resource.
    LogCollectorVersion string
    Log collector version
    heartbeat_status number
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    id string
    The provider-assigned unique ID for this managed resource.
    log_collector_version string
    Log collector version
    heartbeatStatus Integer
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    id String
    The provider-assigned unique ID for this managed resource.
    logCollectorVersion String
    Log collector version
    heartbeatStatus number
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    id string
    The provider-assigned unique ID for this managed resource.
    logCollectorVersion string
    Log collector version
    heartbeat_status int
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    id str
    The provider-assigned unique ID for this managed resource.
    log_collector_version str
    Log collector version
    heartbeatStatus Number
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    id String
    The provider-assigned unique ID for this managed resource.
    logCollectorVersion String
    Log collector version

    Look up Existing Host Resource

    Get an existing Host resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HostState, opts?: CustomResourceOptions): Host
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            heartbeat_status: Optional[int] = None,
            host_group_id: Optional[str] = None,
            ip: Optional[str] = None,
            log_collector_version: Optional[str] = None) -> Host
    func GetHost(ctx *Context, name string, id IDInput, state *HostState, opts ...ResourceOption) (*Host, error)
    public static Host Get(string name, Input<string> id, HostState? state, CustomResourceOptions? opts = null)
    public static Host get(String name, Output<String> id, HostState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:tls:Host    get:      id: ${id}
    import {
      to = bytepluscc_tls_host.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    HeartbeatStatus int
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    HostGroupId string
    Machine group ID to which the host belongs
    Ip string
    Host IP address
    LogCollectorVersion string
    Log collector version
    HeartbeatStatus int
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    HostGroupId string
    Machine group ID to which the host belongs
    Ip string
    Host IP address
    LogCollectorVersion string
    Log collector version
    heartbeat_status number
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    host_group_id string
    Machine group ID to which the host belongs
    ip string
    Host IP address
    log_collector_version string
    Log collector version
    heartbeatStatus Integer
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    hostGroupId String
    Machine group ID to which the host belongs
    ip String
    Host IP address
    logCollectorVersion String
    Log collector version
    heartbeatStatus number
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    hostGroupId string
    Machine group ID to which the host belongs
    ip string
    Host IP address
    logCollectorVersion string
    Log collector version
    heartbeat_status int
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    host_group_id str
    Machine group ID to which the host belongs
    ip str
    Host IP address
    log_collector_version str
    Log collector version
    heartbeatStatus Number
    Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
    hostGroupId String
    Machine group ID to which the host belongs
    ip String
    Host IP address
    logCollectorVersion String
    Log collector version

    Import

    $ pulumi import bytepluscc:tls/host:Host example "host_group_id|ip"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.42
    published on Monday, Jul 20, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial