1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PrivateDnsInboundEndpoint
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.PrivateDnsInboundEndpoint

Start a Neo task
Explain and create a tencentcloud.PrivateDnsInboundEndpoint resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Provides a resource to create a Private Dns inbound endpoint

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.PrivateDnsInboundEndpoint("example", {
        endpointName: "tf-example",
        endpointRegion: "ap-guangzhou",
        endpointVpc: "vpc-i5yyodl9",
        subnetIps: [
            {
                subnetId: "subnet-hhi88a58",
                subnetVip: "10.0.30.2",
            },
            {
                subnetId: "subnet-5rrirqyc",
                subnetVip: "10.0.0.11",
            },
            {
                subnetId: "subnet-60ut6n10",
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.PrivateDnsInboundEndpoint("example",
        endpoint_name="tf-example",
        endpoint_region="ap-guangzhou",
        endpoint_vpc="vpc-i5yyodl9",
        subnet_ips=[
            {
                "subnet_id": "subnet-hhi88a58",
                "subnet_vip": "10.0.30.2",
            },
            {
                "subnet_id": "subnet-5rrirqyc",
                "subnet_vip": "10.0.0.11",
            },
            {
                "subnet_id": "subnet-60ut6n10",
            },
        ])
    
    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.NewPrivateDnsInboundEndpoint(ctx, "example", &tencentcloud.PrivateDnsInboundEndpointArgs{
    			EndpointName:   pulumi.String("tf-example"),
    			EndpointRegion: pulumi.String("ap-guangzhou"),
    			EndpointVpc:    pulumi.String("vpc-i5yyodl9"),
    			SubnetIps: tencentcloud.PrivateDnsInboundEndpointSubnetIpArray{
    				&tencentcloud.PrivateDnsInboundEndpointSubnetIpArgs{
    					SubnetId:  pulumi.String("subnet-hhi88a58"),
    					SubnetVip: pulumi.String("10.0.30.2"),
    				},
    				&tencentcloud.PrivateDnsInboundEndpointSubnetIpArgs{
    					SubnetId:  pulumi.String("subnet-5rrirqyc"),
    					SubnetVip: pulumi.String("10.0.0.11"),
    				},
    				&tencentcloud.PrivateDnsInboundEndpointSubnetIpArgs{
    					SubnetId: pulumi.String("subnet-60ut6n10"),
    				},
    			},
    		})
    		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.PrivateDnsInboundEndpoint("example", new()
        {
            EndpointName = "tf-example",
            EndpointRegion = "ap-guangzhou",
            EndpointVpc = "vpc-i5yyodl9",
            SubnetIps = new[]
            {
                new Tencentcloud.Inputs.PrivateDnsInboundEndpointSubnetIpArgs
                {
                    SubnetId = "subnet-hhi88a58",
                    SubnetVip = "10.0.30.2",
                },
                new Tencentcloud.Inputs.PrivateDnsInboundEndpointSubnetIpArgs
                {
                    SubnetId = "subnet-5rrirqyc",
                    SubnetVip = "10.0.0.11",
                },
                new Tencentcloud.Inputs.PrivateDnsInboundEndpointSubnetIpArgs
                {
                    SubnetId = "subnet-60ut6n10",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PrivateDnsInboundEndpoint;
    import com.pulumi.tencentcloud.PrivateDnsInboundEndpointArgs;
    import com.pulumi.tencentcloud.inputs.PrivateDnsInboundEndpointSubnetIpArgs;
    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 PrivateDnsInboundEndpoint("example", PrivateDnsInboundEndpointArgs.builder()
                .endpointName("tf-example")
                .endpointRegion("ap-guangzhou")
                .endpointVpc("vpc-i5yyodl9")
                .subnetIps(            
                    PrivateDnsInboundEndpointSubnetIpArgs.builder()
                        .subnetId("subnet-hhi88a58")
                        .subnetVip("10.0.30.2")
                        .build(),
                    PrivateDnsInboundEndpointSubnetIpArgs.builder()
                        .subnetId("subnet-5rrirqyc")
                        .subnetVip("10.0.0.11")
                        .build(),
                    PrivateDnsInboundEndpointSubnetIpArgs.builder()
                        .subnetId("subnet-60ut6n10")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:PrivateDnsInboundEndpoint
        properties:
          endpointName: tf-example
          endpointRegion: ap-guangzhou
          endpointVpc: vpc-i5yyodl9
          subnetIps:
            - subnetId: subnet-hhi88a58
              subnetVip: 10.0.30.2
            - subnetId: subnet-5rrirqyc
              subnetVip: 10.0.0.11
            - subnetId: subnet-60ut6n10
    

    Create PrivateDnsInboundEndpoint Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PrivateDnsInboundEndpoint(name: string, args: PrivateDnsInboundEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateDnsInboundEndpoint(resource_name: str,
                                  args: PrivateDnsInboundEndpointArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateDnsInboundEndpoint(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  endpoint_name: Optional[str] = None,
                                  endpoint_region: Optional[str] = None,
                                  endpoint_vpc: Optional[str] = None,
                                  subnet_ips: Optional[Sequence[PrivateDnsInboundEndpointSubnetIpArgs]] = None,
                                  private_dns_inbound_endpoint_id: Optional[str] = None)
    func NewPrivateDnsInboundEndpoint(ctx *Context, name string, args PrivateDnsInboundEndpointArgs, opts ...ResourceOption) (*PrivateDnsInboundEndpoint, error)
    public PrivateDnsInboundEndpoint(string name, PrivateDnsInboundEndpointArgs args, CustomResourceOptions? opts = null)
    public PrivateDnsInboundEndpoint(String name, PrivateDnsInboundEndpointArgs args)
    public PrivateDnsInboundEndpoint(String name, PrivateDnsInboundEndpointArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PrivateDnsInboundEndpoint
    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 PrivateDnsInboundEndpointArgs
    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 PrivateDnsInboundEndpointArgs
    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 PrivateDnsInboundEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateDnsInboundEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateDnsInboundEndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PrivateDnsInboundEndpoint 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 PrivateDnsInboundEndpoint resource accepts the following input properties:

    EndpointName string
    Name.
    EndpointRegion string
    Region.
    EndpointVpc string
    VPC ID.
    SubnetIps List<PrivateDnsInboundEndpointSubnetIp>
    Subnet information.
    PrivateDnsInboundEndpointId string
    ID of the resource.
    EndpointName string
    Name.
    EndpointRegion string
    Region.
    EndpointVpc string
    VPC ID.
    SubnetIps []PrivateDnsInboundEndpointSubnetIpArgs
    Subnet information.
    PrivateDnsInboundEndpointId string
    ID of the resource.
    endpointName String
    Name.
    endpointRegion String
    Region.
    endpointVpc String
    VPC ID.
    subnetIps List<PrivateDnsInboundEndpointSubnetIp>
    Subnet information.
    privateDnsInboundEndpointId String
    ID of the resource.
    endpointName string
    Name.
    endpointRegion string
    Region.
    endpointVpc string
    VPC ID.
    subnetIps PrivateDnsInboundEndpointSubnetIp[]
    Subnet information.
    privateDnsInboundEndpointId string
    ID of the resource.
    endpointName String
    Name.
    endpointRegion String
    Region.
    endpointVpc String
    VPC ID.
    subnetIps List<Property Map>
    Subnet information.
    privateDnsInboundEndpointId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivateDnsInboundEndpoint 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 PrivateDnsInboundEndpoint Resource

    Get an existing PrivateDnsInboundEndpoint 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?: PrivateDnsInboundEndpointState, opts?: CustomResourceOptions): PrivateDnsInboundEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint_name: Optional[str] = None,
            endpoint_region: Optional[str] = None,
            endpoint_vpc: Optional[str] = None,
            private_dns_inbound_endpoint_id: Optional[str] = None,
            subnet_ips: Optional[Sequence[PrivateDnsInboundEndpointSubnetIpArgs]] = None) -> PrivateDnsInboundEndpoint
    func GetPrivateDnsInboundEndpoint(ctx *Context, name string, id IDInput, state *PrivateDnsInboundEndpointState, opts ...ResourceOption) (*PrivateDnsInboundEndpoint, error)
    public static PrivateDnsInboundEndpoint Get(string name, Input<string> id, PrivateDnsInboundEndpointState? state, CustomResourceOptions? opts = null)
    public static PrivateDnsInboundEndpoint get(String name, Output<String> id, PrivateDnsInboundEndpointState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PrivateDnsInboundEndpoint    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.
    The following state arguments are supported:
    EndpointName string
    Name.
    EndpointRegion string
    Region.
    EndpointVpc string
    VPC ID.
    PrivateDnsInboundEndpointId string
    ID of the resource.
    SubnetIps List<PrivateDnsInboundEndpointSubnetIp>
    Subnet information.
    EndpointName string
    Name.
    EndpointRegion string
    Region.
    EndpointVpc string
    VPC ID.
    PrivateDnsInboundEndpointId string
    ID of the resource.
    SubnetIps []PrivateDnsInboundEndpointSubnetIpArgs
    Subnet information.
    endpointName String
    Name.
    endpointRegion String
    Region.
    endpointVpc String
    VPC ID.
    privateDnsInboundEndpointId String
    ID of the resource.
    subnetIps List<PrivateDnsInboundEndpointSubnetIp>
    Subnet information.
    endpointName string
    Name.
    endpointRegion string
    Region.
    endpointVpc string
    VPC ID.
    privateDnsInboundEndpointId string
    ID of the resource.
    subnetIps PrivateDnsInboundEndpointSubnetIp[]
    Subnet information.
    endpointName String
    Name.
    endpointRegion String
    Region.
    endpointVpc String
    VPC ID.
    privateDnsInboundEndpointId String
    ID of the resource.
    subnetIps List<Property Map>
    Subnet information.

    Supporting Types

    PrivateDnsInboundEndpointSubnetIp, PrivateDnsInboundEndpointSubnetIpArgs

    SubnetId string
    Subnet ID.
    SubnetVip string
    IP address.
    SubnetId string
    Subnet ID.
    SubnetVip string
    IP address.
    subnetId String
    Subnet ID.
    subnetVip String
    IP address.
    subnetId string
    Subnet ID.
    subnetVip string
    IP address.
    subnet_id str
    Subnet ID.
    subnet_vip str
    IP address.
    subnetId String
    Subnet ID.
    subnetVip String
    IP address.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate