volcengine.tls.HostGroup
Explore with Pulumi AI
Provides a resource to manage tls host group
Example Usage
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,
});
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)
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
	})
}
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 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());
    }
}
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:
- HostGroup stringName 
- The name of host group.
- HostGroup stringType 
- The type of host group. The value can be IP or Label.
- AutoUpdate bool
- Whether enable auto update.
- HostIdentifier string
- The identifier of host.
- HostIp List<string>Lists 
- The ip list of host group.
- IamProject stringName 
- The project name of iam.
- ServiceLogging bool
- Whether enable service logging.
- UpdateEnd stringTime 
- The update end time of log collector.
- UpdateStart stringTime 
- The update start time of log collector.
- HostGroup stringName 
- The name of host group.
- HostGroup stringType 
- The type of host group. The value can be IP or Label.
- AutoUpdate bool
- Whether enable auto update.
- HostIdentifier string
- The identifier of host.
- HostIp []stringLists 
- The ip list of host group.
- IamProject stringName 
- The project name of iam.
- ServiceLogging bool
- Whether enable service logging.
- UpdateEnd stringTime 
- The update end time of log collector.
- UpdateStart stringTime 
- The update start time of log collector.
- hostGroup StringName 
- The name of host group.
- hostGroup StringType 
- The type of host group. The value can be IP or Label.
- autoUpdate Boolean
- Whether enable auto update.
- hostIdentifier String
- The identifier of host.
- hostIp List<String>Lists 
- The ip list of host group.
- iamProject StringName 
- The project name of iam.
- serviceLogging Boolean
- Whether enable service logging.
- updateEnd StringTime 
- The update end time of log collector.
- updateStart StringTime 
- The update start time of log collector.
- hostGroup stringName 
- The name of host group.
- hostGroup stringType 
- The type of host group. The value can be IP or Label.
- autoUpdate boolean
- Whether enable auto update.
- hostIdentifier string
- The identifier of host.
- hostIp string[]Lists 
- The ip list of host group.
- iamProject stringName 
- The project name of iam.
- serviceLogging boolean
- Whether enable service logging.
- updateEnd stringTime 
- The update end time of log collector.
- updateStart stringTime 
- The update start time of log collector.
- host_group_ strname 
- The name of host group.
- host_group_ strtype 
- 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_ Sequence[str]lists 
- The ip list of host group.
- iam_project_ strname 
- The project name of iam.
- service_logging bool
- Whether enable service logging.
- update_end_ strtime 
- The update end time of log collector.
- update_start_ strtime 
- The update start time of log collector.
- hostGroup StringName 
- The name of host group.
- hostGroup StringType 
- The type of host group. The value can be IP or Label.
- autoUpdate Boolean
- Whether enable auto update.
- hostIdentifier String
- The identifier of host.
- hostIp List<String>Lists 
- The ip list of host group.
- iamProject StringName 
- The project name of iam.
- serviceLogging Boolean
- Whether enable service logging.
- updateEnd StringTime 
- The update end time of log collector.
- updateStart StringTime 
- 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:
- AbnormalHeartbeat intStatus Count 
- The abnormal heartbeat status count of host.
- AgentLatest stringVersion 
- 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.
- NormalHeartbeat intStatus Count 
- The normal heartbeat status count of host.
- RuleCount int
- The rule count of host.
- AbnormalHeartbeat intStatus Count 
- The abnormal heartbeat status count of host.
- AgentLatest stringVersion 
- 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.
- NormalHeartbeat intStatus Count 
- The normal heartbeat status count of host.
- RuleCount int
- The rule count of host.
- abnormalHeartbeat IntegerStatus Count 
- The abnormal heartbeat status count of host.
- agentLatest StringVersion 
- 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.
- normalHeartbeat IntegerStatus Count 
- The normal heartbeat status count of host.
- ruleCount Integer
- The rule count of host.
- abnormalHeartbeat numberStatus Count 
- The abnormal heartbeat status count of host.
- agentLatest stringVersion 
- 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.
- normalHeartbeat numberStatus Count 
- The normal heartbeat status count of host.
- ruleCount number
- The rule count of host.
- abnormal_heartbeat_ intstatus_ count 
- The abnormal heartbeat status count of host.
- agent_latest_ strversion 
- 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_ intstatus_ count 
- The normal heartbeat status count of host.
- rule_count int
- The rule count of host.
- abnormalHeartbeat NumberStatus Count 
- The abnormal heartbeat status count of host.
- agentLatest StringVersion 
- 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.
- normalHeartbeat NumberStatus Count 
- 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) -> HostGroupfunc 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)resources:  _:    type: volcengine:tls:HostGroup    get:      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.
- AbnormalHeartbeat intStatus Count 
- The abnormal heartbeat status count of host.
- AgentLatest stringVersion 
- 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.
- HostGroup stringName 
- The name of host group.
- HostGroup stringType 
- The type of host group. The value can be IP or Label.
- HostIdentifier string
- The identifier of host.
- HostIp List<string>Lists 
- The ip list of host group.
- IamProject stringName 
- The project name of iam.
- ModifyTime string
- The modify time of host group.
- NormalHeartbeat intStatus Count 
- The normal heartbeat status count of host.
- RuleCount int
- The rule count of host.
- ServiceLogging bool
- Whether enable service logging.
- UpdateEnd stringTime 
- The update end time of log collector.
- UpdateStart stringTime 
- The update start time of log collector.
- AbnormalHeartbeat intStatus Count 
- The abnormal heartbeat status count of host.
- AgentLatest stringVersion 
- 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.
- HostGroup stringName 
- The name of host group.
- HostGroup stringType 
- The type of host group. The value can be IP or Label.
- HostIdentifier string
- The identifier of host.
- HostIp []stringLists 
- The ip list of host group.
- IamProject stringName 
- The project name of iam.
- ModifyTime string
- The modify time of host group.
- NormalHeartbeat intStatus Count 
- The normal heartbeat status count of host.
- RuleCount int
- The rule count of host.
- ServiceLogging bool
- Whether enable service logging.
- UpdateEnd stringTime 
- The update end time of log collector.
- UpdateStart stringTime 
- The update start time of log collector.
- abnormalHeartbeat IntegerStatus Count 
- The abnormal heartbeat status count of host.
- agentLatest StringVersion 
- 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.
- hostGroup StringName 
- The name of host group.
- hostGroup StringType 
- The type of host group. The value can be IP or Label.
- hostIdentifier String
- The identifier of host.
- hostIp List<String>Lists 
- The ip list of host group.
- iamProject StringName 
- The project name of iam.
- modifyTime String
- The modify time of host group.
- normalHeartbeat IntegerStatus Count 
- The normal heartbeat status count of host.
- ruleCount Integer
- The rule count of host.
- serviceLogging Boolean
- Whether enable service logging.
- updateEnd StringTime 
- The update end time of log collector.
- updateStart StringTime 
- The update start time of log collector.
- abnormalHeartbeat numberStatus Count 
- The abnormal heartbeat status count of host.
- agentLatest stringVersion 
- 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.
- hostGroup stringName 
- The name of host group.
- hostGroup stringType 
- The type of host group. The value can be IP or Label.
- hostIdentifier string
- The identifier of host.
- hostIp string[]Lists 
- The ip list of host group.
- iamProject stringName 
- The project name of iam.
- modifyTime string
- The modify time of host group.
- normalHeartbeat numberStatus Count 
- The normal heartbeat status count of host.
- ruleCount number
- The rule count of host.
- serviceLogging boolean
- Whether enable service logging.
- updateEnd stringTime 
- The update end time of log collector.
- updateStart stringTime 
- The update start time of log collector.
- abnormal_heartbeat_ intstatus_ count 
- The abnormal heartbeat status count of host.
- agent_latest_ strversion 
- 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_ strname 
- The name of host group.
- host_group_ strtype 
- The type of host group. The value can be IP or Label.
- host_identifier str
- The identifier of host.
- host_ip_ Sequence[str]lists 
- The ip list of host group.
- iam_project_ strname 
- The project name of iam.
- modify_time str
- The modify time of host group.
- normal_heartbeat_ intstatus_ count 
- The normal heartbeat status count of host.
- rule_count int
- The rule count of host.
- service_logging bool
- Whether enable service logging.
- update_end_ strtime 
- The update end time of log collector.
- update_start_ strtime 
- The update start time of log collector.
- abnormalHeartbeat NumberStatus Count 
- The abnormal heartbeat status count of host.
- agentLatest StringVersion 
- 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.
- hostGroup StringName 
- The name of host group.
- hostGroup StringType 
- The type of host group. The value can be IP or Label.
- hostIdentifier String
- The identifier of host.
- hostIp List<String>Lists 
- The ip list of host group.
- iamProject StringName 
- The project name of iam.
- modifyTime String
- The modify time of host group.
- normalHeartbeat NumberStatus Count 
- The normal heartbeat status count of host.
- ruleCount Number
- The rule count of host.
- serviceLogging Boolean
- Whether enable service logging.
- updateEnd StringTime 
- The update end time of log collector.
- updateStart StringTime 
- 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 volcengineTerraform Provider.