1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. BhBindDeviceResource
Viewing docs for tencentcloud 1.83.2
published on Monday, Jun 15, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.2
published on Monday, Jun 15, 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:

    DeviceIdSets List<double>
    Device ID set.
    ResourceId string
    Bindable bastion host service ID.
    BhBindDeviceResourceId string
    ID of the resource.
    DomainId string
    Network domain ID.
    ManageAccount string
    K8S cluster managed account name.
    ManageAccountId double
    K8S cluster managed account ID.
    ManageDimension double
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    ManageKubeconfig string
    K8S cluster managed account kubeconfig credential.
    Namespace string
    K8S cluster managed namespace.
    Workload string
    K8S cluster managed workload.
    DeviceIdSets []float64
    Device ID set.
    ResourceId string
    Bindable bastion host service ID.
    BhBindDeviceResourceId string
    ID of the resource.
    DomainId string
    Network domain ID.
    ManageAccount string
    K8S cluster managed account name.
    ManageAccountId float64
    K8S cluster managed account ID.
    ManageDimension float64
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    ManageKubeconfig string
    K8S cluster managed account kubeconfig credential.
    Namespace string
    K8S cluster managed namespace.
    Workload string
    K8S cluster managed workload.
    device_id_sets list(number)
    Device ID set.
    resource_id string
    Bindable bastion host service ID.
    bh_bind_device_resource_id string
    ID of the resource.
    domain_id string
    Network domain ID.
    manage_account string
    K8S cluster managed account name.
    manage_account_id number
    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.
    deviceIdSets List<Double>
    Device ID set.
    resourceId String
    Bindable bastion host service ID.
    bhBindDeviceResourceId String
    ID of the resource.
    domainId String
    Network domain ID.
    manageAccount String
    K8S cluster managed account name.
    manageAccountId Double
    K8S cluster managed account ID.
    manageDimension Double
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    manageKubeconfig String
    K8S cluster managed account kubeconfig credential.
    namespace String
    K8S cluster managed namespace.
    workload String
    K8S cluster managed workload.
    deviceIdSets number[]
    Device ID set.
    resourceId string
    Bindable bastion host service ID.
    bhBindDeviceResourceId string
    ID of the resource.
    domainId string
    Network domain ID.
    manageAccount string
    K8S cluster managed account name.
    manageAccountId number
    K8S cluster managed account ID.
    manageDimension number
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    manageKubeconfig string
    K8S cluster managed account kubeconfig credential.
    namespace string
    K8S cluster managed namespace.
    workload string
    K8S cluster managed workload.
    device_id_sets Sequence[float]
    Device ID set.
    resource_id str
    Bindable bastion host service ID.
    bh_bind_device_resource_id str
    ID of the resource.
    domain_id str
    Network domain ID.
    manage_account str
    K8S cluster managed account name.
    manage_account_id float
    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.
    deviceIdSets List<Number>
    Device ID set.
    resourceId String
    Bindable bastion host service ID.
    bhBindDeviceResourceId String
    ID of the resource.
    domainId String
    Network domain ID.
    manageAccount String
    K8S cluster managed account name.
    manageAccountId Number
    K8S cluster managed account ID.
    manageDimension Number
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    manageKubeconfig 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) -> BhBindDeviceResource
    func 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.
    The following state arguments are supported:
    BhBindDeviceResourceId string
    ID of the resource.
    DeviceIdSets List<double>
    Device ID set.
    DomainId string
    Network domain ID.
    ManageAccount string
    K8S cluster managed account name.
    ManageAccountId double
    K8S cluster managed account ID.
    ManageDimension double
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    ManageKubeconfig string
    K8S cluster managed account kubeconfig credential.
    Namespace string
    K8S cluster managed namespace.
    ResourceId string
    Bindable bastion host service ID.
    Workload string
    K8S cluster managed workload.
    BhBindDeviceResourceId string
    ID of the resource.
    DeviceIdSets []float64
    Device ID set.
    DomainId string
    Network domain ID.
    ManageAccount string
    K8S cluster managed account name.
    ManageAccountId float64
    K8S cluster managed account ID.
    ManageDimension float64
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    ManageKubeconfig string
    K8S cluster managed account kubeconfig credential.
    Namespace string
    K8S cluster managed namespace.
    ResourceId string
    Bindable bastion host service ID.
    Workload string
    K8S cluster managed workload.
    bh_bind_device_resource_id string
    ID of the resource.
    device_id_sets list(number)
    Device ID set.
    domain_id string
    Network domain ID.
    manage_account string
    K8S cluster managed account name.
    manage_account_id number
    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.
    bhBindDeviceResourceId String
    ID of the resource.
    deviceIdSets List<Double>
    Device ID set.
    domainId String
    Network domain ID.
    manageAccount String
    K8S cluster managed account name.
    manageAccountId Double
    K8S cluster managed account ID.
    manageDimension Double
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    manageKubeconfig String
    K8S cluster managed account kubeconfig credential.
    namespace String
    K8S cluster managed namespace.
    resourceId String
    Bindable bastion host service ID.
    workload String
    K8S cluster managed workload.
    bhBindDeviceResourceId string
    ID of the resource.
    deviceIdSets number[]
    Device ID set.
    domainId string
    Network domain ID.
    manageAccount string
    K8S cluster managed account name.
    manageAccountId number
    K8S cluster managed account ID.
    manageDimension number
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    manageKubeconfig string
    K8S cluster managed account kubeconfig credential.
    namespace string
    K8S cluster managed namespace.
    resourceId string
    Bindable bastion host service ID.
    workload string
    K8S cluster managed workload.
    bh_bind_device_resource_id str
    ID of the resource.
    device_id_sets Sequence[float]
    Device ID set.
    domain_id str
    Network domain ID.
    manage_account str
    K8S cluster managed account name.
    manage_account_id float
    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.
    bhBindDeviceResourceId String
    ID of the resource.
    deviceIdSets List<Number>
    Device ID set.
    domainId String
    Network domain ID.
    manageAccount String
    K8S cluster managed account name.
    manageAccountId Number
    K8S cluster managed account ID.
    manageDimension Number
    K8S cluster managed account dimension. 1-cluster, 2-namespace, 3-workload.
    manageKubeconfig String
    K8S cluster managed account kubeconfig credential.
    namespace String
    K8S cluster managed namespace.
    resourceId 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 tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.2
    published on Monday, Jun 15, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial