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

volcengine.tls.HostGroup

Explore with Pulumi AI

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

    Provides a resource to manage tls host group

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Tls.HostGroup("foo", new()
        {
            AutoUpdate = false,
            HostGroupName = "tfgroup",
            HostGroupType = "Label",
            HostIdentifier = "tf-controller",
            ServiceLogging = false,
        });
    
    });
    
    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.NewHostGroup(ctx, "foo", &tls.HostGroupArgs{
    			AutoUpdate:     pulumi.Bool(false),
    			HostGroupName:  pulumi.String("tfgroup"),
    			HostGroupType:  pulumi.String("Label"),
    			HostIdentifier: pulumi.String("tf-controller"),
    			ServiceLogging: pulumi.Bool(false),
    		})
    		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.HostGroup;
    import com.pulumi.volcengine.tls.HostGroupArgs;
    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 foo = new HostGroup("foo", HostGroupArgs.builder()        
                .autoUpdate(false)
                .hostGroupName("tfgroup")
                .hostGroupType("Label")
                .hostIdentifier("tf-controller")
                .serviceLogging(false)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.tls.HostGroup("foo",
        auto_update=False,
        host_group_name="tfgroup",
        host_group_type="Label",
        host_identifier="tf-controller",
        service_logging=False)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.tls.HostGroup("foo", {
        autoUpdate: false,
        hostGroupName: "tfgroup",
        hostGroupType: "Label",
        hostIdentifier: "tf-controller",
        serviceLogging: false,
    });
    
    resources:
      foo:
        type: volcengine:tls:HostGroup
        properties:
          autoUpdate: false
          hostGroupName: tfgroup
          hostGroupType: Label
          hostIdentifier: tf-controller
          serviceLogging: false
    

    Create HostGroup Resource

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

    Constructor syntax

    new HostGroup(name: string, args: HostGroupArgs, opts?: CustomResourceOptions);
    @overload
    def HostGroup(resource_name: str,
                  args: HostGroupArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def HostGroup(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  host_group_name: Optional[str] = None,
                  host_group_type: Optional[str] = None,
                  auto_update: Optional[bool] = None,
                  host_identifier: Optional[str] = None,
                  host_ip_lists: Optional[Sequence[str]] = None,
                  iam_project_name: Optional[str] = None,
                  service_logging: Optional[bool] = None,
                  update_end_time: Optional[str] = None,
                  update_start_time: Optional[str] = None)
    func NewHostGroup(ctx *Context, name string, args HostGroupArgs, opts ...ResourceOption) (*HostGroup, error)
    public HostGroup(string name, HostGroupArgs args, CustomResourceOptions? opts = null)
    public HostGroup(String name, HostGroupArgs args)
    public HostGroup(String name, HostGroupArgs args, CustomResourceOptions options)
    
    type: volcengine:tls:HostGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HostGroupArgs
    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 HostGroupArgs
    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 HostGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostGroupArgs
    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 hostGroupResource = new Volcengine.Tls.HostGroup("hostGroupResource", new()
    {
        HostGroupName = "string",
        HostGroupType = "string",
        AutoUpdate = false,
        HostIdentifier = "string",
        HostIpLists = new[]
        {
            "string",
        },
        IamProjectName = "string",
        ServiceLogging = false,
        UpdateEndTime = "string",
        UpdateStartTime = "string",
    });
    
    example, err := tls.NewHostGroup(ctx, "hostGroupResource", &tls.HostGroupArgs{
    	HostGroupName:  pulumi.String("string"),
    	HostGroupType:  pulumi.String("string"),
    	AutoUpdate:     pulumi.Bool(false),
    	HostIdentifier: pulumi.String("string"),
    	HostIpLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IamProjectName:  pulumi.String("string"),
    	ServiceLogging:  pulumi.Bool(false),
    	UpdateEndTime:   pulumi.String("string"),
    	UpdateStartTime: pulumi.String("string"),
    })
    
    var hostGroupResource = new HostGroup("hostGroupResource", HostGroupArgs.builder()
        .hostGroupName("string")
        .hostGroupType("string")
        .autoUpdate(false)
        .hostIdentifier("string")
        .hostIpLists("string")
        .iamProjectName("string")
        .serviceLogging(false)
        .updateEndTime("string")
        .updateStartTime("string")
        .build());
    
    host_group_resource = volcengine.tls.HostGroup("hostGroupResource",
        host_group_name="string",
        host_group_type="string",
        auto_update=False,
        host_identifier="string",
        host_ip_lists=["string"],
        iam_project_name="string",
        service_logging=False,
        update_end_time="string",
        update_start_time="string")
    
    const hostGroupResource = new volcengine.tls.HostGroup("hostGroupResource", {
        hostGroupName: "string",
        hostGroupType: "string",
        autoUpdate: false,
        hostIdentifier: "string",
        hostIpLists: ["string"],
        iamProjectName: "string",
        serviceLogging: false,
        updateEndTime: "string",
        updateStartTime: "string",
    });
    
    type: volcengine:tls:HostGroup
    properties:
        autoUpdate: false
        hostGroupName: string
        hostGroupType: string
        hostIdentifier: string
        hostIpLists:
            - string
        iamProjectName: string
        serviceLogging: false
        updateEndTime: string
        updateStartTime: string
    

    HostGroup 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 HostGroup resource accepts the following input properties:

    HostGroupName string
    The name of host group.
    HostGroupType string
    The type of host group. The value can be IP or Label.
    AutoUpdate bool
    Whether enable auto update.
    HostIdentifier string
    The identifier of host.
    HostIpLists List<string>
    The ip list of host group.
    IamProjectName string
    The project name of iam.
    ServiceLogging bool
    Whether enable service logging.
    UpdateEndTime string
    The update end time of log collector.
    UpdateStartTime string
    The update start time of log collector.
    HostGroupName string
    The name of host group.
    HostGroupType string
    The type of host group. The value can be IP or Label.
    AutoUpdate bool
    Whether enable auto update.
    HostIdentifier string
    The identifier of host.
    HostIpLists []string
    The ip list of host group.
    IamProjectName string
    The project name of iam.
    ServiceLogging bool
    Whether enable service logging.
    UpdateEndTime string
    The update end time of log collector.
    UpdateStartTime string
    The update start time of log collector.
    hostGroupName String
    The name of host group.
    hostGroupType String
    The type of host group. The value can be IP or Label.
    autoUpdate Boolean
    Whether enable auto update.
    hostIdentifier String
    The identifier of host.
    hostIpLists List<String>
    The ip list of host group.
    iamProjectName String
    The project name of iam.
    serviceLogging Boolean
    Whether enable service logging.
    updateEndTime String
    The update end time of log collector.
    updateStartTime String
    The update start time of log collector.
    hostGroupName string
    The name of host group.
    hostGroupType string
    The type of host group. The value can be IP or Label.
    autoUpdate boolean
    Whether enable auto update.
    hostIdentifier string
    The identifier of host.
    hostIpLists string[]
    The ip list of host group.
    iamProjectName string
    The project name of iam.
    serviceLogging boolean
    Whether enable service logging.
    updateEndTime string
    The update end time of log collector.
    updateStartTime string
    The update start time of log collector.
    host_group_name str
    The name of host group.
    host_group_type str
    The type of host group. The value can be IP or Label.
    auto_update bool
    Whether enable auto update.
    host_identifier str
    The identifier of host.
    host_ip_lists Sequence[str]
    The ip list of host group.
    iam_project_name str
    The project name of iam.
    service_logging bool
    Whether enable service logging.
    update_end_time str
    The update end time of log collector.
    update_start_time str
    The update start time of log collector.
    hostGroupName String
    The name of host group.
    hostGroupType String
    The type of host group. The value can be IP or Label.
    autoUpdate Boolean
    Whether enable auto update.
    hostIdentifier String
    The identifier of host.
    hostIpLists List<String>
    The ip list of host group.
    iamProjectName String
    The project name of iam.
    serviceLogging Boolean
    Whether enable service logging.
    updateEndTime String
    The update end time of log collector.
    updateStartTime String
    The update start time of log collector.

    Outputs

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

    AbnormalHeartbeatStatusCount int
    The abnormal heartbeat status count of host.
    AgentLatestVersion string
    The latest version of log collector.
    CreateTime string
    The create time of host group.
    HostCount int
    The count of host.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    The modify time of host group.
    NormalHeartbeatStatusCount int
    The normal heartbeat status count of host.
    RuleCount int
    The rule count of host.
    AbnormalHeartbeatStatusCount int
    The abnormal heartbeat status count of host.
    AgentLatestVersion string
    The latest version of log collector.
    CreateTime string
    The create time of host group.
    HostCount int
    The count of host.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    The modify time of host group.
    NormalHeartbeatStatusCount int
    The normal heartbeat status count of host.
    RuleCount int
    The rule count of host.
    abnormalHeartbeatStatusCount Integer
    The abnormal heartbeat status count of host.
    agentLatestVersion String
    The latest version of log collector.
    createTime String
    The create time of host group.
    hostCount Integer
    The count of host.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    The modify time of host group.
    normalHeartbeatStatusCount Integer
    The normal heartbeat status count of host.
    ruleCount Integer
    The rule count of host.
    abnormalHeartbeatStatusCount number
    The abnormal heartbeat status count of host.
    agentLatestVersion string
    The latest version of log collector.
    createTime string
    The create time of host group.
    hostCount number
    The count of host.
    id string
    The provider-assigned unique ID for this managed resource.
    modifyTime string
    The modify time of host group.
    normalHeartbeatStatusCount number
    The normal heartbeat status count of host.
    ruleCount number
    The rule count of host.
    abnormal_heartbeat_status_count int
    The abnormal heartbeat status count of host.
    agent_latest_version str
    The latest version of log collector.
    create_time str
    The create time of host group.
    host_count int
    The count of host.
    id str
    The provider-assigned unique ID for this managed resource.
    modify_time str
    The modify time of host group.
    normal_heartbeat_status_count int
    The normal heartbeat status count of host.
    rule_count int
    The rule count of host.
    abnormalHeartbeatStatusCount Number
    The abnormal heartbeat status count of host.
    agentLatestVersion String
    The latest version of log collector.
    createTime String
    The create time of host group.
    hostCount Number
    The count of host.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    The modify time of host group.
    normalHeartbeatStatusCount Number
    The normal heartbeat status count of host.
    ruleCount Number
    The rule count of host.

    Look up Existing HostGroup Resource

    Get an existing HostGroup 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?: HostGroupState, opts?: CustomResourceOptions): HostGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            abnormal_heartbeat_status_count: Optional[int] = None,
            agent_latest_version: Optional[str] = None,
            auto_update: Optional[bool] = None,
            create_time: Optional[str] = None,
            host_count: Optional[int] = None,
            host_group_name: Optional[str] = None,
            host_group_type: Optional[str] = None,
            host_identifier: Optional[str] = None,
            host_ip_lists: Optional[Sequence[str]] = None,
            iam_project_name: Optional[str] = None,
            modify_time: Optional[str] = None,
            normal_heartbeat_status_count: Optional[int] = None,
            rule_count: Optional[int] = None,
            service_logging: Optional[bool] = None,
            update_end_time: Optional[str] = None,
            update_start_time: Optional[str] = None) -> HostGroup
    func GetHostGroup(ctx *Context, name string, id IDInput, state *HostGroupState, opts ...ResourceOption) (*HostGroup, error)
    public static HostGroup Get(string name, Input<string> id, HostGroupState? state, CustomResourceOptions? opts = null)
    public static HostGroup get(String name, Output<String> id, HostGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AbnormalHeartbeatStatusCount int
    The abnormal heartbeat status count of host.
    AgentLatestVersion string
    The latest version of log collector.
    AutoUpdate bool
    Whether enable auto update.
    CreateTime string
    The create time of host group.
    HostCount int
    The count of host.
    HostGroupName string
    The name of host group.
    HostGroupType string
    The type of host group. The value can be IP or Label.
    HostIdentifier string
    The identifier of host.
    HostIpLists List<string>
    The ip list of host group.
    IamProjectName string
    The project name of iam.
    ModifyTime string
    The modify time of host group.
    NormalHeartbeatStatusCount int
    The normal heartbeat status count of host.
    RuleCount int
    The rule count of host.
    ServiceLogging bool
    Whether enable service logging.
    UpdateEndTime string
    The update end time of log collector.
    UpdateStartTime string
    The update start time of log collector.
    AbnormalHeartbeatStatusCount int
    The abnormal heartbeat status count of host.
    AgentLatestVersion string
    The latest version of log collector.
    AutoUpdate bool
    Whether enable auto update.
    CreateTime string
    The create time of host group.
    HostCount int
    The count of host.
    HostGroupName string
    The name of host group.
    HostGroupType string
    The type of host group. The value can be IP or Label.
    HostIdentifier string
    The identifier of host.
    HostIpLists []string
    The ip list of host group.
    IamProjectName string
    The project name of iam.
    ModifyTime string
    The modify time of host group.
    NormalHeartbeatStatusCount int
    The normal heartbeat status count of host.
    RuleCount int
    The rule count of host.
    ServiceLogging bool
    Whether enable service logging.
    UpdateEndTime string
    The update end time of log collector.
    UpdateStartTime string
    The update start time of log collector.
    abnormalHeartbeatStatusCount Integer
    The abnormal heartbeat status count of host.
    agentLatestVersion String
    The latest version of log collector.
    autoUpdate Boolean
    Whether enable auto update.
    createTime String
    The create time of host group.
    hostCount Integer
    The count of host.
    hostGroupName String
    The name of host group.
    hostGroupType String
    The type of host group. The value can be IP or Label.
    hostIdentifier String
    The identifier of host.
    hostIpLists List<String>
    The ip list of host group.
    iamProjectName String
    The project name of iam.
    modifyTime String
    The modify time of host group.
    normalHeartbeatStatusCount Integer
    The normal heartbeat status count of host.
    ruleCount Integer
    The rule count of host.
    serviceLogging Boolean
    Whether enable service logging.
    updateEndTime String
    The update end time of log collector.
    updateStartTime String
    The update start time of log collector.
    abnormalHeartbeatStatusCount number
    The abnormal heartbeat status count of host.
    agentLatestVersion string
    The latest version of log collector.
    autoUpdate boolean
    Whether enable auto update.
    createTime string
    The create time of host group.
    hostCount number
    The count of host.
    hostGroupName string
    The name of host group.
    hostGroupType string
    The type of host group. The value can be IP or Label.
    hostIdentifier string
    The identifier of host.
    hostIpLists string[]
    The ip list of host group.
    iamProjectName string
    The project name of iam.
    modifyTime string
    The modify time of host group.
    normalHeartbeatStatusCount number
    The normal heartbeat status count of host.
    ruleCount number
    The rule count of host.
    serviceLogging boolean
    Whether enable service logging.
    updateEndTime string
    The update end time of log collector.
    updateStartTime string
    The update start time of log collector.
    abnormal_heartbeat_status_count int
    The abnormal heartbeat status count of host.
    agent_latest_version str
    The latest version of log collector.
    auto_update bool
    Whether enable auto update.
    create_time str
    The create time of host group.
    host_count int
    The count of host.
    host_group_name str
    The name of host group.
    host_group_type str
    The type of host group. The value can be IP or Label.
    host_identifier str
    The identifier of host.
    host_ip_lists Sequence[str]
    The ip list of host group.
    iam_project_name str
    The project name of iam.
    modify_time str
    The modify time of host group.
    normal_heartbeat_status_count int
    The normal heartbeat status count of host.
    rule_count int
    The rule count of host.
    service_logging bool
    Whether enable service logging.
    update_end_time str
    The update end time of log collector.
    update_start_time str
    The update start time of log collector.
    abnormalHeartbeatStatusCount Number
    The abnormal heartbeat status count of host.
    agentLatestVersion String
    The latest version of log collector.
    autoUpdate Boolean
    Whether enable auto update.
    createTime String
    The create time of host group.
    hostCount Number
    The count of host.
    hostGroupName String
    The name of host group.
    hostGroupType String
    The type of host group. The value can be IP or Label.
    hostIdentifier String
    The identifier of host.
    hostIpLists List<String>
    The ip list of host group.
    iamProjectName String
    The project name of iam.
    modifyTime String
    The modify time of host group.
    normalHeartbeatStatusCount Number
    The normal heartbeat status count of host.
    ruleCount Number
    The rule count of host.
    serviceLogging Boolean
    Whether enable service logging.
    updateEndTime String
    The update end time of log collector.
    updateStartTime String
    The update start time of log collector.

    Import

    Tls Host Group can be imported using the id, e.g.

     $ pulumi import volcengine:tls/hostGroup:HostGroup default edf052s21s*******dc15
    

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

    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