published on Monday, Jun 22, 2026 by tencentcloudstack
published on Monday, Jun 22, 2026 by tencentcloudstack
Provides a resource to bind devices to a BH (Bastion Host) service instance.
NOTE: This resource must exclusive in one bh resource, do not declare additional device id resources of this device elsewhere.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.BhBindDeviceResource("example", {
deviceIdSets: [
4173,
4175,
],
resourceId: "bh-saas-4ikvobas",
domainId: "net-telc7g8p",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.BhBindDeviceResource("example",
device_id_sets=[
4173,
4175,
],
resource_id="bh-saas-4ikvobas",
domain_id="net-telc7g8p")
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 {
_, err := tencentcloud.NewBhBindDeviceResource(ctx, "example", &tencentcloud.BhBindDeviceResourceArgs{
DeviceIdSets: pulumi.Float64Array{
pulumi.Float64(4173),
pulumi.Float64(4175),
},
ResourceId: pulumi.String("bh-saas-4ikvobas"),
DomainId: pulumi.String("net-telc7g8p"),
})
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 example = new Tencentcloud.BhBindDeviceResource("example", new()
{
DeviceIdSets = new[]
{
4173,
4175,
},
ResourceId = "bh-saas-4ikvobas",
DomainId = "net-telc7g8p",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BhBindDeviceResource;
import com.pulumi.tencentcloud.BhBindDeviceResourceArgs;
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 example = new BhBindDeviceResource("example", BhBindDeviceResourceArgs.builder()
.deviceIdSets(
4173.0,
4175.0)
.resourceId("bh-saas-4ikvobas")
.domainId("net-telc7g8p")
.build());
}
}
resources:
example:
type: tencentcloud:BhBindDeviceResource
properties:
deviceIdSets:
- 4173
- 4175
resourceId: bh-saas-4ikvobas
domainId: net-telc7g8p
Example coming soon!
K8S cluster managed scenario
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.BhBindDeviceResource("example", {
deviceIdSets: [3434],
resourceId: "bh-saas-sk8eyhcn",
domainId: "net-89sng6ha",
manageDimension: 1,
manageAccountId: 3970,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.BhBindDeviceResource("example",
device_id_sets=[3434],
resource_id="bh-saas-sk8eyhcn",
domain_id="net-89sng6ha",
manage_dimension=1,
manage_account_id=3970)
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 {
_, err := tencentcloud.NewBhBindDeviceResource(ctx, "example", &tencentcloud.BhBindDeviceResourceArgs{
DeviceIdSets: pulumi.Float64Array{
pulumi.Float64(3434),
},
ResourceId: pulumi.String("bh-saas-sk8eyhcn"),
DomainId: pulumi.String("net-89sng6ha"),
ManageDimension: pulumi.Float64(1),
ManageAccountId: pulumi.Float64(3970),
})
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 example = new Tencentcloud.BhBindDeviceResource("example", new()
{
DeviceIdSets = new[]
{
3434,
},
ResourceId = "bh-saas-sk8eyhcn",
DomainId = "net-89sng6ha",
ManageDimension = 1,
ManageAccountId = 3970,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BhBindDeviceResource;
import com.pulumi.tencentcloud.BhBindDeviceResourceArgs;
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 example = new BhBindDeviceResource("example", BhBindDeviceResourceArgs.builder()
.deviceIdSets(3434.0)
.resourceId("bh-saas-sk8eyhcn")
.domainId("net-89sng6ha")
.manageDimension(1.0)
.manageAccountId(3970.0)
.build());
}
}
resources:
example:
type: tencentcloud:BhBindDeviceResource
properties:
deviceIdSets:
- 3434
resourceId: bh-saas-sk8eyhcn
domainId: net-89sng6ha
manageDimension: 1
manageAccountId: 3970
Example coming soon!
Create BhBindDeviceResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BhBindDeviceResource(name: string, args: BhBindDeviceResourceArgs, opts?: CustomResourceOptions);@overload
def BhBindDeviceResource(resource_name: str,
args: BhBindDeviceResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BhBindDeviceResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_id_sets: Optional[Sequence[float]] = None,
resource_id: Optional[str] = None,
bh_bind_device_resource_id: Optional[str] = None,
domain_id: Optional[str] = None,
manage_account: Optional[str] = None,
manage_account_id: Optional[float] = None,
manage_dimension: Optional[float] = None,
manage_kubeconfig: Optional[str] = None,
namespace: Optional[str] = None,
workload: Optional[str] = None)func NewBhBindDeviceResource(ctx *Context, name string, args BhBindDeviceResourceArgs, opts ...ResourceOption) (*BhBindDeviceResource, error)public BhBindDeviceResource(string name, BhBindDeviceResourceArgs args, CustomResourceOptions? opts = null)
public BhBindDeviceResource(String name, BhBindDeviceResourceArgs args)
public BhBindDeviceResource(String name, BhBindDeviceResourceArgs args, CustomResourceOptions options)
type: tencentcloud:BhBindDeviceResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_bhbinddeviceresource" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BhBindDeviceResourceArgs
- 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 BhBindDeviceResourceArgs
- 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 BhBindDeviceResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BhBindDeviceResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BhBindDeviceResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BhBindDeviceResource 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 BhBindDeviceResource resource accepts the following input properties:
- Device
Id List<double>Sets - Device ID set.
- Resource
Id string - Bindable bastion host service ID.
- Bh
Bind stringDevice Resource Id - ID of the resource.
- Domain
Id string - Network domain ID.
- Manage
Account string - K8S cluster managed account name.
- Manage
Account doubleId - K8S cluster managed account ID.
- Manage
Dimension double - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- Manage
Kubeconfig string - K8S cluster managed account kubeconfig credential.
- Namespace string
- K8S cluster managed namespace.
- Workload string
- K8S cluster managed workload.
- Device
Id []float64Sets - Device ID set.
- Resource
Id string - Bindable bastion host service ID.
- Bh
Bind stringDevice Resource Id - ID of the resource.
- Domain
Id string - Network domain ID.
- Manage
Account string - K8S cluster managed account name.
- Manage
Account float64Id - K8S cluster managed account ID.
- Manage
Dimension float64 - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- Manage
Kubeconfig string - K8S cluster managed account kubeconfig credential.
- Namespace string
- K8S cluster managed namespace.
- Workload string
- K8S cluster managed workload.
- device_
id_ list(number)sets - Device ID set.
- resource_
id string - Bindable bastion host service ID.
- bh_
bind_ stringdevice_ resource_ id - ID of the resource.
- domain_
id string - Network domain ID.
- manage_
account string - K8S cluster managed account name.
- manage_
account_ numberid - K8S cluster managed account ID.
- manage_
dimension number - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage_
kubeconfig string - K8S cluster managed account kubeconfig credential.
- namespace string
- K8S cluster managed namespace.
- workload string
- K8S cluster managed workload.
- device
Id List<Double>Sets - Device ID set.
- resource
Id String - Bindable bastion host service ID.
- bh
Bind StringDevice Resource Id - ID of the resource.
- domain
Id String - Network domain ID.
- manage
Account String - K8S cluster managed account name.
- manage
Account DoubleId - K8S cluster managed account ID.
- manage
Dimension Double - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage
Kubeconfig String - K8S cluster managed account kubeconfig credential.
- namespace String
- K8S cluster managed namespace.
- workload String
- K8S cluster managed workload.
- device
Id number[]Sets - Device ID set.
- resource
Id string - Bindable bastion host service ID.
- bh
Bind stringDevice Resource Id - ID of the resource.
- domain
Id string - Network domain ID.
- manage
Account string - K8S cluster managed account name.
- manage
Account numberId - K8S cluster managed account ID.
- manage
Dimension number - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage
Kubeconfig string - K8S cluster managed account kubeconfig credential.
- namespace string
- K8S cluster managed namespace.
- workload string
- K8S cluster managed workload.
- device_
id_ Sequence[float]sets - Device ID set.
- resource_
id str - Bindable bastion host service ID.
- bh_
bind_ strdevice_ resource_ id - ID of the resource.
- domain_
id str - Network domain ID.
- manage_
account str - K8S cluster managed account name.
- manage_
account_ floatid - K8S cluster managed account ID.
- manage_
dimension float - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage_
kubeconfig str - K8S cluster managed account kubeconfig credential.
- namespace str
- K8S cluster managed namespace.
- workload str
- K8S cluster managed workload.
- device
Id List<Number>Sets - Device ID set.
- resource
Id String - Bindable bastion host service ID.
- bh
Bind StringDevice Resource Id - ID of the resource.
- domain
Id String - Network domain ID.
- manage
Account String - K8S cluster managed account name.
- manage
Account NumberId - K8S cluster managed account ID.
- manage
Dimension Number - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage
Kubeconfig String - K8S cluster managed account kubeconfig credential.
- namespace String
- K8S cluster managed namespace.
- workload String
- K8S cluster managed workload.
Outputs
All input properties are implicitly available as output properties. Additionally, the BhBindDeviceResource 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 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 BhBindDeviceResource Resource
Get an existing BhBindDeviceResource 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?: BhBindDeviceResourceState, opts?: CustomResourceOptions): BhBindDeviceResource@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bh_bind_device_resource_id: Optional[str] = None,
device_id_sets: Optional[Sequence[float]] = None,
domain_id: Optional[str] = None,
manage_account: Optional[str] = None,
manage_account_id: Optional[float] = None,
manage_dimension: Optional[float] = None,
manage_kubeconfig: Optional[str] = None,
namespace: Optional[str] = None,
resource_id: Optional[str] = None,
workload: Optional[str] = None) -> BhBindDeviceResourcefunc GetBhBindDeviceResource(ctx *Context, name string, id IDInput, state *BhBindDeviceResourceState, opts ...ResourceOption) (*BhBindDeviceResource, error)public static BhBindDeviceResource Get(string name, Input<string> id, BhBindDeviceResourceState? state, CustomResourceOptions? opts = null)public static BhBindDeviceResource get(String name, Output<String> id, BhBindDeviceResourceState state, CustomResourceOptions options)resources: _: type: tencentcloud:BhBindDeviceResource get: id: ${id}import {
to = tencentcloud_bhbinddeviceresource.example
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.
- Bh
Bind stringDevice Resource Id - ID of the resource.
- Device
Id List<double>Sets - Device ID set.
- Domain
Id string - Network domain ID.
- Manage
Account string - K8S cluster managed account name.
- Manage
Account doubleId - K8S cluster managed account ID.
- Manage
Dimension double - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- Manage
Kubeconfig string - K8S cluster managed account kubeconfig credential.
- Namespace string
- K8S cluster managed namespace.
- Resource
Id string - Bindable bastion host service ID.
- Workload string
- K8S cluster managed workload.
- Bh
Bind stringDevice Resource Id - ID of the resource.
- Device
Id []float64Sets - Device ID set.
- Domain
Id string - Network domain ID.
- Manage
Account string - K8S cluster managed account name.
- Manage
Account float64Id - K8S cluster managed account ID.
- Manage
Dimension float64 - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- Manage
Kubeconfig string - K8S cluster managed account kubeconfig credential.
- Namespace string
- K8S cluster managed namespace.
- Resource
Id string - Bindable bastion host service ID.
- Workload string
- K8S cluster managed workload.
- bh_
bind_ stringdevice_ resource_ id - ID of the resource.
- device_
id_ list(number)sets - Device ID set.
- domain_
id string - Network domain ID.
- manage_
account string - K8S cluster managed account name.
- manage_
account_ numberid - K8S cluster managed account ID.
- manage_
dimension number - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage_
kubeconfig string - K8S cluster managed account kubeconfig credential.
- namespace string
- K8S cluster managed namespace.
- resource_
id string - Bindable bastion host service ID.
- workload string
- K8S cluster managed workload.
- bh
Bind StringDevice Resource Id - ID of the resource.
- device
Id List<Double>Sets - Device ID set.
- domain
Id String - Network domain ID.
- manage
Account String - K8S cluster managed account name.
- manage
Account DoubleId - K8S cluster managed account ID.
- manage
Dimension Double - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage
Kubeconfig String - K8S cluster managed account kubeconfig credential.
- namespace String
- K8S cluster managed namespace.
- resource
Id String - Bindable bastion host service ID.
- workload String
- K8S cluster managed workload.
- bh
Bind stringDevice Resource Id - ID of the resource.
- device
Id number[]Sets - Device ID set.
- domain
Id string - Network domain ID.
- manage
Account string - K8S cluster managed account name.
- manage
Account numberId - K8S cluster managed account ID.
- manage
Dimension number - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage
Kubeconfig string - K8S cluster managed account kubeconfig credential.
- namespace string
- K8S cluster managed namespace.
- resource
Id string - Bindable bastion host service ID.
- workload string
- K8S cluster managed workload.
- bh_
bind_ strdevice_ resource_ id - ID of the resource.
- device_
id_ Sequence[float]sets - Device ID set.
- domain_
id str - Network domain ID.
- manage_
account str - K8S cluster managed account name.
- manage_
account_ floatid - K8S cluster managed account ID.
- manage_
dimension float - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage_
kubeconfig str - K8S cluster managed account kubeconfig credential.
- namespace str
- K8S cluster managed namespace.
- resource_
id str - Bindable bastion host service ID.
- workload str
- K8S cluster managed workload.
- bh
Bind StringDevice Resource Id - ID of the resource.
- device
Id List<Number>Sets - Device ID set.
- domain
Id String - Network domain ID.
- manage
Account String - K8S cluster managed account name.
- manage
Account NumberId - K8S cluster managed account ID.
- manage
Dimension Number - K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
- manage
Kubeconfig String - K8S cluster managed account kubeconfig credential.
- namespace String
- K8S cluster managed namespace.
- resource
Id String - Bindable bastion host service ID.
- workload String
- K8S cluster managed workload.
Import
BH bind device resource can be imported using the resource_id, e.g.
$ pulumi import tencentcloud:index/bhBindDeviceResource:BhBindDeviceResource example bh-saas-4ikvobas
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
tencentcloudTerraform Provider.
published on Monday, Jun 22, 2026 by tencentcloudstack