volcengine.tls.HostGroup
Explore with Pulumi AI
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:
- Host
Group stringName - The name of host group.
- Host
Group stringType - The type of host group. The value can be IP or Label.
- Auto
Update bool - Whether enable auto update.
- Host
Identifier string - The identifier of host.
- Host
Ip List<string>Lists - The ip list of host group.
- Iam
Project stringName - The project name of iam.
- Service
Logging bool - Whether enable service logging.
- Update
End stringTime - The update end time of log collector.
- Update
Start stringTime - The update start time of log collector.
- Host
Group stringName - The name of host group.
- Host
Group stringType - The type of host group. The value can be IP or Label.
- Auto
Update bool - Whether enable auto update.
- Host
Identifier string - The identifier of host.
- Host
Ip []stringLists - The ip list of host group.
- Iam
Project stringName - The project name of iam.
- Service
Logging bool - Whether enable service logging.
- Update
End stringTime - The update end time of log collector.
- Update
Start stringTime - The update start time of log collector.
- host
Group StringName - The name of host group.
- host
Group StringType - The type of host group. The value can be IP or Label.
- auto
Update Boolean - Whether enable auto update.
- host
Identifier String - The identifier of host.
- host
Ip List<String>Lists - The ip list of host group.
- iam
Project StringName - The project name of iam.
- service
Logging Boolean - Whether enable service logging.
- update
End StringTime - The update end time of log collector.
- update
Start StringTime - The update start time of log collector.
- host
Group stringName - The name of host group.
- host
Group stringType - The type of host group. The value can be IP or Label.
- auto
Update boolean - Whether enable auto update.
- host
Identifier string - The identifier of host.
- host
Ip string[]Lists - The ip list of host group.
- iam
Project stringName - The project name of iam.
- service
Logging boolean - Whether enable service logging.
- update
End stringTime - The update end time of log collector.
- update
Start 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.
- host
Group StringName - The name of host group.
- host
Group StringType - The type of host group. The value can be IP or Label.
- auto
Update Boolean - Whether enable auto update.
- host
Identifier String - The identifier of host.
- host
Ip List<String>Lists - The ip list of host group.
- iam
Project StringName - The project name of iam.
- service
Logging Boolean - Whether enable service logging.
- update
End StringTime - The update end time of log collector.
- update
Start 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:
- Abnormal
Heartbeat intStatus Count - The abnormal heartbeat status count of host.
- Agent
Latest stringVersion - The latest version of log collector.
- Create
Time string - The create time of host group.
- Host
Count int - The count of host.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Time string - 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.
- Abnormal
Heartbeat intStatus Count - The abnormal heartbeat status count of host.
- Agent
Latest stringVersion - The latest version of log collector.
- Create
Time string - The create time of host group.
- Host
Count int - The count of host.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Time string - 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.
- abnormal
Heartbeat IntegerStatus Count - The abnormal heartbeat status count of host.
- agent
Latest StringVersion - The latest version of log collector.
- create
Time String - The create time of host group.
- host
Count Integer - The count of host.
- id String
- The provider-assigned unique ID for this managed resource.
- modify
Time String - The modify time of host group.
- normal
Heartbeat IntegerStatus Count - The normal heartbeat status count of host.
- rule
Count Integer - The rule count of host.
- abnormal
Heartbeat numberStatus Count - The abnormal heartbeat status count of host.
- agent
Latest stringVersion - The latest version of log collector.
- create
Time string - The create time of host group.
- host
Count number - The count of host.
- id string
- The provider-assigned unique ID for this managed resource.
- modify
Time string - The modify time of host group.
- normal
Heartbeat numberStatus Count - The normal heartbeat status count of host.
- rule
Count 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.
- abnormal
Heartbeat NumberStatus Count - The abnormal heartbeat status count of host.
- agent
Latest StringVersion - The latest version of log collector.
- create
Time String - The create time of host group.
- host
Count Number - The count of host.
- id String
- The provider-assigned unique ID for this managed resource.
- modify
Time String - The modify time of host group.
- normal
Heartbeat NumberStatus Count - The normal heartbeat status count of host.
- rule
Count 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.
- Abnormal
Heartbeat intStatus Count - The abnormal heartbeat status count of host.
- Agent
Latest stringVersion - The latest version of log collector.
- Auto
Update bool - Whether enable auto update.
- Create
Time string - The create time of host group.
- Host
Count int - The count of host.
- Host
Group stringName - The name of host group.
- Host
Group stringType - The type of host group. The value can be IP or Label.
- Host
Identifier string - The identifier of host.
- Host
Ip List<string>Lists - The ip list of host group.
- Iam
Project stringName - The project name of iam.
- Modify
Time string - 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 stringTime - The update end time of log collector.
- Update
Start stringTime - The update start time of log collector.
- Abnormal
Heartbeat intStatus Count - The abnormal heartbeat status count of host.
- Agent
Latest stringVersion - The latest version of log collector.
- Auto
Update bool - Whether enable auto update.
- Create
Time string - The create time of host group.
- Host
Count int - The count of host.
- Host
Group stringName - The name of host group.
- Host
Group stringType - The type of host group. The value can be IP or Label.
- Host
Identifier string - The identifier of host.
- Host
Ip []stringLists - The ip list of host group.
- Iam
Project stringName - The project name of iam.
- Modify
Time string - 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 stringTime - The update end time of log collector.
- Update
Start stringTime - The update start time of log collector.
- abnormal
Heartbeat IntegerStatus Count - The abnormal heartbeat status count of host.
- agent
Latest StringVersion - The latest version of log collector.
- auto
Update Boolean - Whether enable auto update.
- create
Time String - The create time of host group.
- host
Count Integer - The count of host.
- host
Group StringName - The name of host group.
- host
Group StringType - The type of host group. The value can be IP or Label.
- host
Identifier String - The identifier of host.
- host
Ip List<String>Lists - The ip list of host group.
- iam
Project StringName - The project name of iam.
- modify
Time String - The modify time of host group.
- normal
Heartbeat IntegerStatus Count - The normal heartbeat status count of host.
- rule
Count Integer - The rule count of host.
- service
Logging Boolean - Whether enable service logging.
- update
End StringTime - The update end time of log collector.
- update
Start StringTime - The update start time of log collector.
- abnormal
Heartbeat numberStatus Count - The abnormal heartbeat status count of host.
- agent
Latest stringVersion - The latest version of log collector.
- auto
Update boolean - Whether enable auto update.
- create
Time string - The create time of host group.
- host
Count number - The count of host.
- host
Group stringName - The name of host group.
- host
Group stringType - The type of host group. The value can be IP or Label.
- host
Identifier string - The identifier of host.
- host
Ip string[]Lists - The ip list of host group.
- iam
Project stringName - The project name of iam.
- modify
Time string - The modify time of host group.
- normal
Heartbeat numberStatus Count - The normal heartbeat status count of host.
- rule
Count number - The rule count of host.
- service
Logging boolean - Whether enable service logging.
- update
End stringTime - The update end time of log collector.
- update
Start 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.
- abnormal
Heartbeat NumberStatus Count - The abnormal heartbeat status count of host.
- agent
Latest StringVersion - The latest version of log collector.
- auto
Update Boolean - Whether enable auto update.
- create
Time String - The create time of host group.
- host
Count Number - The count of host.
- host
Group StringName - The name of host group.
- host
Group StringType - The type of host group. The value can be IP or Label.
- host
Identifier String - The identifier of host.
- host
Ip List<String>Lists - The ip list of host group.
- iam
Project StringName - The project name of iam.
- modify
Time String - The modify time of host group.
- normal
Heartbeat NumberStatus Count - The normal heartbeat status count of host.
- rule
Count Number - The rule count of host.
- service
Logging Boolean - Whether enable service logging.
- update
End StringTime - The update end time of log collector.
- update
Start 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
volcengine
Terraform Provider.