opentelekomcloud.LtsHostGroupV3
Explore with Pulumi AI
Up-to-date reference of API arguments for LTS host group you can get at documentation portal
Manages an LTS host group resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const groupName = config.requireObject("groupName");
const hostIds = config.requireObject<Array<string>>("hostIds");
const test = new opentelekomcloud.LtsHostGroupV3("test", {
type: "linux",
hostIds: hostIds,
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
group_name = config.require_object("groupName")
host_ids = config.require_object("hostIds")
test = opentelekomcloud.LtsHostGroupV3("test",
type="linux",
host_ids=host_ids,
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
groupName := cfg.RequireObject("groupName")
hostIds := cfg.Require("hostIds")
_, err := opentelekomcloud.NewLtsHostGroupV3(ctx, "test", &opentelekomcloud.LtsHostGroupV3Args{
Type: pulumi.String("linux"),
HostIds: hostIds,
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var groupName = config.RequireObject<dynamic>("groupName");
var hostIds = config.RequireObject<string[]>("hostIds");
var test = new Opentelekomcloud.LtsHostGroupV3("test", new()
{
Type = "linux",
HostIds = hostIds,
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsHostGroupV3;
import com.pulumi.opentelekomcloud.LtsHostGroupV3Args;
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 config = ctx.config();
final var groupName = config.get("groupName");
final var hostIds = config.get("hostIds");
var test = new LtsHostGroupV3("test", LtsHostGroupV3Args.builder()
.type("linux")
.hostIds(hostIds)
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
configuration:
groupName:
type: dynamic
hostIds:
type: list(string)
resources:
test:
type: opentelekomcloud:LtsHostGroupV3
properties:
type: linux
hostIds: ${hostIds}
tags:
foo: bar
key: value
Create LtsHostGroupV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LtsHostGroupV3(name: string, args: LtsHostGroupV3Args, opts?: CustomResourceOptions);
@overload
def LtsHostGroupV3(resource_name: str,
args: LtsHostGroupV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def LtsHostGroupV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
agent_access_type: Optional[str] = None,
host_ids: Optional[Sequence[str]] = None,
labels: Optional[Sequence[str]] = None,
lts_host_group_v3_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[LtsHostGroupV3TimeoutsArgs] = None)
func NewLtsHostGroupV3(ctx *Context, name string, args LtsHostGroupV3Args, opts ...ResourceOption) (*LtsHostGroupV3, error)
public LtsHostGroupV3(string name, LtsHostGroupV3Args args, CustomResourceOptions? opts = null)
public LtsHostGroupV3(String name, LtsHostGroupV3Args args)
public LtsHostGroupV3(String name, LtsHostGroupV3Args args, CustomResourceOptions options)
type: opentelekomcloud:LtsHostGroupV3
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 LtsHostGroupV3Args
- 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 LtsHostGroupV3Args
- 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 LtsHostGroupV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LtsHostGroupV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LtsHostGroupV3Args
- 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 ltsHostGroupV3Resource = new Opentelekomcloud.LtsHostGroupV3("ltsHostGroupV3Resource", new()
{
Type = "string",
AgentAccessType = "string",
HostIds = new[]
{
"string",
},
Labels = new[]
{
"string",
},
LtsHostGroupV3Id = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.LtsHostGroupV3TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewLtsHostGroupV3(ctx, "ltsHostGroupV3Resource", &opentelekomcloud.LtsHostGroupV3Args{
Type: pulumi.String("string"),
AgentAccessType: pulumi.String("string"),
HostIds: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringArray{
pulumi.String("string"),
},
LtsHostGroupV3Id: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.LtsHostGroupV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var ltsHostGroupV3Resource = new LtsHostGroupV3("ltsHostGroupV3Resource", LtsHostGroupV3Args.builder()
.type("string")
.agentAccessType("string")
.hostIds("string")
.labels("string")
.ltsHostGroupV3Id("string")
.name("string")
.tags(Map.of("string", "string"))
.timeouts(LtsHostGroupV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
lts_host_group_v3_resource = opentelekomcloud.LtsHostGroupV3("ltsHostGroupV3Resource",
type="string",
agent_access_type="string",
host_ids=["string"],
labels=["string"],
lts_host_group_v3_id="string",
name="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const ltsHostGroupV3Resource = new opentelekomcloud.LtsHostGroupV3("ltsHostGroupV3Resource", {
type: "string",
agentAccessType: "string",
hostIds: ["string"],
labels: ["string"],
ltsHostGroupV3Id: "string",
name: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:LtsHostGroupV3
properties:
agentAccessType: string
hostIds:
- string
labels:
- string
ltsHostGroupV3Id: string
name: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
type: string
LtsHostGroupV3 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 LtsHostGroupV3 resource accepts the following input properties:
- Type string
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- Agent
Access stringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- Host
Ids List<string> - Specifies the ID list of hosts to join the host group.
- Labels List<string>
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- Lts
Host stringGroup V3Id - The resource ID.
- Name string
- Specifies the name of the host group.
- Dictionary<string, string>
- Specifies the key/value to attach to the host group.
- Timeouts
Lts
Host Group V3Timeouts
- Type string
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- Agent
Access stringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- Host
Ids []string - Specifies the ID list of hosts to join the host group.
- Labels []string
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- Lts
Host stringGroup V3Id - The resource ID.
- Name string
- Specifies the name of the host group.
- map[string]string
- Specifies the key/value to attach to the host group.
- Timeouts
Lts
Host Group V3Timeouts Args
- type String
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- agent
Access StringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- host
Ids List<String> - Specifies the ID list of hosts to join the host group.
- labels List<String>
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts
Host StringGroup V3Id - The resource ID.
- name String
- Specifies the name of the host group.
- Map<String,String>
- Specifies the key/value to attach to the host group.
- timeouts
Lts
Host Group V3Timeouts
- type string
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- agent
Access stringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- host
Ids string[] - Specifies the ID list of hosts to join the host group.
- labels string[]
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts
Host stringGroup V3Id - The resource ID.
- name string
- Specifies the name of the host group.
- {[key: string]: string}
- Specifies the key/value to attach to the host group.
- timeouts
Lts
Host Group V3Timeouts
- type str
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- agent_
access_ strtype - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- host_
ids Sequence[str] - Specifies the ID list of hosts to join the host group.
- labels Sequence[str]
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts_
host_ strgroup_ v3_ id - The resource ID.
- name str
- Specifies the name of the host group.
- Mapping[str, str]
- Specifies the key/value to attach to the host group.
- timeouts
Lts
Host Group V3Timeouts Args
- type String
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- agent
Access StringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- host
Ids List<String> - Specifies the ID list of hosts to join the host group.
- labels List<String>
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts
Host StringGroup V3Id - The resource ID.
- name String
- Specifies the name of the host group.
- Map<String>
- Specifies the key/value to attach to the host group.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the LtsHostGroupV3 resource produces the following output properties:
- created_
at str - The creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Shows the region in the host group resource created.
- updated_
at str - The latest update time.
Look up Existing LtsHostGroupV3 Resource
Get an existing LtsHostGroupV3 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?: LtsHostGroupV3State, opts?: CustomResourceOptions): LtsHostGroupV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_access_type: Optional[str] = None,
created_at: Optional[str] = None,
host_ids: Optional[Sequence[str]] = None,
labels: Optional[Sequence[str]] = None,
lts_host_group_v3_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[LtsHostGroupV3TimeoutsArgs] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> LtsHostGroupV3
func GetLtsHostGroupV3(ctx *Context, name string, id IDInput, state *LtsHostGroupV3State, opts ...ResourceOption) (*LtsHostGroupV3, error)
public static LtsHostGroupV3 Get(string name, Input<string> id, LtsHostGroupV3State? state, CustomResourceOptions? opts = null)
public static LtsHostGroupV3 get(String name, Output<String> id, LtsHostGroupV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:LtsHostGroupV3 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.
- Agent
Access stringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- Created
At string - The creation time.
- Host
Ids List<string> - Specifies the ID list of hosts to join the host group.
- Labels List<string>
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- Lts
Host stringGroup V3Id - The resource ID.
- Name string
- Specifies the name of the host group.
- Region string
- Shows the region in the host group resource created.
- Dictionary<string, string>
- Specifies the key/value to attach to the host group.
- Timeouts
Lts
Host Group V3Timeouts - Type string
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- Updated
At string - The latest update time.
- Agent
Access stringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- Created
At string - The creation time.
- Host
Ids []string - Specifies the ID list of hosts to join the host group.
- Labels []string
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- Lts
Host stringGroup V3Id - The resource ID.
- Name string
- Specifies the name of the host group.
- Region string
- Shows the region in the host group resource created.
- map[string]string
- Specifies the key/value to attach to the host group.
- Timeouts
Lts
Host Group V3Timeouts Args - Type string
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- Updated
At string - The latest update time.
- agent
Access StringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- created
At String - The creation time.
- host
Ids List<String> - Specifies the ID list of hosts to join the host group.
- labels List<String>
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts
Host StringGroup V3Id - The resource ID.
- name String
- Specifies the name of the host group.
- region String
- Shows the region in the host group resource created.
- Map<String,String>
- Specifies the key/value to attach to the host group.
- timeouts
Lts
Host Group V3Timeouts - type String
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- updated
At String - The latest update time.
- agent
Access stringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- created
At string - The creation time.
- host
Ids string[] - Specifies the ID list of hosts to join the host group.
- labels string[]
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts
Host stringGroup V3Id - The resource ID.
- name string
- Specifies the name of the host group.
- region string
- Shows the region in the host group resource created.
- {[key: string]: string}
- Specifies the key/value to attach to the host group.
- timeouts
Lts
Host Group V3Timeouts - type string
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- updated
At string - The latest update time.
- agent_
access_ strtype - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- created_
at str - The creation time.
- host_
ids Sequence[str] - Specifies the ID list of hosts to join the host group.
- labels Sequence[str]
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts_
host_ strgroup_ v3_ id - The resource ID.
- name str
- Specifies the name of the host group.
- region str
- Shows the region in the host group resource created.
- Mapping[str, str]
- Specifies the key/value to attach to the host group.
- timeouts
Lts
Host Group V3Timeouts Args - type str
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- updated_
at str - The latest update time.
- agent
Access StringType - Specifies the type of the host group.
The default value is
IP
. The valid values are as follows:IP
LABEL
- created
At String - The creation time.
- host
Ids List<String> - Specifies the ID list of hosts to join the host group.
- labels List<String>
Specifies the custom label list of the host group. This parameter is required when
agent_access_type
is set to LABEL.Currently, a maximum of
10
labels can be created.- lts
Host StringGroup V3Id - The resource ID.
- name String
- Specifies the name of the host group.
- region String
- Shows the region in the host group resource created.
- Map<String>
- Specifies the key/value to attach to the host group.
- timeouts Property Map
- type String
Specifies the type of the host. The value can be
linux
andwindows
.Changing this parameter will create a new resource.
- updated
At String - The latest update time.
Supporting Types
LtsHostGroupV3Timeouts, LtsHostGroupV3TimeoutsArgs
Import
The host group can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/ltsHostGroupV3:LtsHostGroupV3 test <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.