tencentcloud.DasbDeviceGroupMembers
Explore with Pulumi AI
Provides a resource to create a dasb device_group_members
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleDasbDevice = new tencentcloud.DasbDevice("exampleDasbDevice", {
osName: "Linux",
ip: "192.168.0.1",
port: 80,
});
const exampleDasbDeviceGroup = new tencentcloud.DasbDeviceGroup("exampleDasbDeviceGroup", {});
const exampleDasbDeviceGroupMembers = new tencentcloud.DasbDeviceGroupMembers("exampleDasbDeviceGroupMembers", {
deviceGroupId: exampleDasbDeviceGroup.dasbDeviceGroupId,
memberIdSets: [exampleDasbDevice.dasbDeviceId],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_dasb_device = tencentcloud.DasbDevice("exampleDasbDevice",
os_name="Linux",
ip="192.168.0.1",
port=80)
example_dasb_device_group = tencentcloud.DasbDeviceGroup("exampleDasbDeviceGroup")
example_dasb_device_group_members = tencentcloud.DasbDeviceGroupMembers("exampleDasbDeviceGroupMembers",
device_group_id=example_dasb_device_group.dasb_device_group_id,
member_id_sets=[example_dasb_device.dasb_device_id])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleDasbDevice, err := tencentcloud.NewDasbDevice(ctx, "exampleDasbDevice", &tencentcloud.DasbDeviceArgs{
OsName: pulumi.String("Linux"),
Ip: pulumi.String("192.168.0.1"),
Port: pulumi.Float64(80),
})
if err != nil {
return err
}
exampleDasbDeviceGroup, err := tencentcloud.NewDasbDeviceGroup(ctx, "exampleDasbDeviceGroup", nil)
if err != nil {
return err
}
_, err = tencentcloud.NewDasbDeviceGroupMembers(ctx, "exampleDasbDeviceGroupMembers", &tencentcloud.DasbDeviceGroupMembersArgs{
DeviceGroupId: exampleDasbDeviceGroup.DasbDeviceGroupId,
MemberIdSets: pulumi.Float64Array{
exampleDasbDevice.DasbDeviceId,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleDasbDevice = new Tencentcloud.DasbDevice("exampleDasbDevice", new()
{
OsName = "Linux",
Ip = "192.168.0.1",
Port = 80,
});
var exampleDasbDeviceGroup = new Tencentcloud.DasbDeviceGroup("exampleDasbDeviceGroup");
var exampleDasbDeviceGroupMembers = new Tencentcloud.DasbDeviceGroupMembers("exampleDasbDeviceGroupMembers", new()
{
DeviceGroupId = exampleDasbDeviceGroup.DasbDeviceGroupId,
MemberIdSets = new[]
{
exampleDasbDevice.DasbDeviceId,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DasbDevice;
import com.pulumi.tencentcloud.DasbDeviceArgs;
import com.pulumi.tencentcloud.DasbDeviceGroup;
import com.pulumi.tencentcloud.DasbDeviceGroupMembers;
import com.pulumi.tencentcloud.DasbDeviceGroupMembersArgs;
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 exampleDasbDevice = new DasbDevice("exampleDasbDevice", DasbDeviceArgs.builder()
.osName("Linux")
.ip("192.168.0.1")
.port(80)
.build());
var exampleDasbDeviceGroup = new DasbDeviceGroup("exampleDasbDeviceGroup");
var exampleDasbDeviceGroupMembers = new DasbDeviceGroupMembers("exampleDasbDeviceGroupMembers", DasbDeviceGroupMembersArgs.builder()
.deviceGroupId(exampleDasbDeviceGroup.dasbDeviceGroupId())
.memberIdSets(exampleDasbDevice.dasbDeviceId())
.build());
}
}
resources:
exampleDasbDevice:
type: tencentcloud:DasbDevice
properties:
osName: Linux
ip: 192.168.0.1
port: 80
exampleDasbDeviceGroup:
type: tencentcloud:DasbDeviceGroup
exampleDasbDeviceGroupMembers:
type: tencentcloud:DasbDeviceGroupMembers
properties:
deviceGroupId: ${exampleDasbDeviceGroup.dasbDeviceGroupId}
memberIdSets:
- ${exampleDasbDevice.dasbDeviceId}
Create DasbDeviceGroupMembers Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DasbDeviceGroupMembers(name: string, args: DasbDeviceGroupMembersArgs, opts?: CustomResourceOptions);
@overload
def DasbDeviceGroupMembers(resource_name: str,
args: DasbDeviceGroupMembersArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DasbDeviceGroupMembers(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_group_id: Optional[float] = None,
member_id_sets: Optional[Sequence[float]] = None,
dasb_device_group_members_id: Optional[str] = None)
func NewDasbDeviceGroupMembers(ctx *Context, name string, args DasbDeviceGroupMembersArgs, opts ...ResourceOption) (*DasbDeviceGroupMembers, error)
public DasbDeviceGroupMembers(string name, DasbDeviceGroupMembersArgs args, CustomResourceOptions? opts = null)
public DasbDeviceGroupMembers(String name, DasbDeviceGroupMembersArgs args)
public DasbDeviceGroupMembers(String name, DasbDeviceGroupMembersArgs args, CustomResourceOptions options)
type: tencentcloud:DasbDeviceGroupMembers
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 DasbDeviceGroupMembersArgs
- 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 DasbDeviceGroupMembersArgs
- 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 DasbDeviceGroupMembersArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DasbDeviceGroupMembersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DasbDeviceGroupMembersArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DasbDeviceGroupMembers 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 DasbDeviceGroupMembers resource accepts the following input properties:
- Device
Group doubleId - Device Group ID.
- Member
Id List<double>Sets - A collection of device IDs that need to be added to the device group.
- Dasb
Device stringGroup Members Id - ID of the resource.
- Device
Group float64Id - Device Group ID.
- Member
Id []float64Sets - A collection of device IDs that need to be added to the device group.
- Dasb
Device stringGroup Members Id - ID of the resource.
- device
Group DoubleId - Device Group ID.
- member
Id List<Double>Sets - A collection of device IDs that need to be added to the device group.
- dasb
Device StringGroup Members Id - ID of the resource.
- device
Group numberId - Device Group ID.
- member
Id number[]Sets - A collection of device IDs that need to be added to the device group.
- dasb
Device stringGroup Members Id - ID of the resource.
- device_
group_ floatid - Device Group ID.
- member_
id_ Sequence[float]sets - A collection of device IDs that need to be added to the device group.
- dasb_
device_ strgroup_ members_ id - ID of the resource.
- device
Group NumberId - Device Group ID.
- member
Id List<Number>Sets - A collection of device IDs that need to be added to the device group.
- dasb
Device StringGroup Members Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DasbDeviceGroupMembers resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DasbDeviceGroupMembers Resource
Get an existing DasbDeviceGroupMembers 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?: DasbDeviceGroupMembersState, opts?: CustomResourceOptions): DasbDeviceGroupMembers
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dasb_device_group_members_id: Optional[str] = None,
device_group_id: Optional[float] = None,
member_id_sets: Optional[Sequence[float]] = None) -> DasbDeviceGroupMembers
func GetDasbDeviceGroupMembers(ctx *Context, name string, id IDInput, state *DasbDeviceGroupMembersState, opts ...ResourceOption) (*DasbDeviceGroupMembers, error)
public static DasbDeviceGroupMembers Get(string name, Input<string> id, DasbDeviceGroupMembersState? state, CustomResourceOptions? opts = null)
public static DasbDeviceGroupMembers get(String name, Output<String> id, DasbDeviceGroupMembersState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DasbDeviceGroupMembers 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.
- Dasb
Device stringGroup Members Id - ID of the resource.
- Device
Group doubleId - Device Group ID.
- Member
Id List<double>Sets - A collection of device IDs that need to be added to the device group.
- Dasb
Device stringGroup Members Id - ID of the resource.
- Device
Group float64Id - Device Group ID.
- Member
Id []float64Sets - A collection of device IDs that need to be added to the device group.
- dasb
Device StringGroup Members Id - ID of the resource.
- device
Group DoubleId - Device Group ID.
- member
Id List<Double>Sets - A collection of device IDs that need to be added to the device group.
- dasb
Device stringGroup Members Id - ID of the resource.
- device
Group numberId - Device Group ID.
- member
Id number[]Sets - A collection of device IDs that need to be added to the device group.
- dasb_
device_ strgroup_ members_ id - ID of the resource.
- device_
group_ floatid - Device Group ID.
- member_
id_ Sequence[float]sets - A collection of device IDs that need to be added to the device group.
- dasb
Device StringGroup Members Id - ID of the resource.
- device
Group NumberId - Device Group ID.
- member
Id List<Number>Sets - A collection of device IDs that need to be added to the device group.
Import
dasb device_group_members can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dasbDeviceGroupMembers:DasbDeviceGroupMembers example 53#102
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.