1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PrivateDnsExtendEndPoint
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.PrivateDnsExtendEndPoint

Explore with Pulumi AI

Provides a resource to create a privatedns extend end point

Example Usage

If access_type is CLB

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const example = new tencentcloud.PrivateDnsExtendEndPoint("example", {
    endPointName: "tf-example",
    endPointRegion: "ap-jakarta",
    forwardIp: {
        accessType: "CLB",
        host: "10.0.1.12",
        port: 9000,
        vpcId: "vpc-1v2i79fc",
    },
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.PrivateDnsExtendEndPoint("example",
    end_point_name="tf-example",
    end_point_region="ap-jakarta",
    forward_ip={
        "access_type": "CLB",
        "host": "10.0.1.12",
        "port": 9000,
        "vpc_id": "vpc-1v2i79fc",
    })
Copy
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.NewPrivateDnsExtendEndPoint(ctx, "example", &tencentcloud.PrivateDnsExtendEndPointArgs{
			EndPointName:   pulumi.String("tf-example"),
			EndPointRegion: pulumi.String("ap-jakarta"),
			ForwardIp: &tencentcloud.PrivateDnsExtendEndPointForwardIpArgs{
				AccessType: pulumi.String("CLB"),
				Host:       pulumi.String("10.0.1.12"),
				Port:       pulumi.Float64(9000),
				VpcId:      pulumi.String("vpc-1v2i79fc"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.PrivateDnsExtendEndPoint("example", new()
    {
        EndPointName = "tf-example",
        EndPointRegion = "ap-jakarta",
        ForwardIp = new Tencentcloud.Inputs.PrivateDnsExtendEndPointForwardIpArgs
        {
            AccessType = "CLB",
            Host = "10.0.1.12",
            Port = 9000,
            VpcId = "vpc-1v2i79fc",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPoint;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPointArgs;
import com.pulumi.tencentcloud.inputs.PrivateDnsExtendEndPointForwardIpArgs;
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 PrivateDnsExtendEndPoint("example", PrivateDnsExtendEndPointArgs.builder()
            .endPointName("tf-example")
            .endPointRegion("ap-jakarta")
            .forwardIp(PrivateDnsExtendEndPointForwardIpArgs.builder()
                .accessType("CLB")
                .host("10.0.1.12")
                .port(9000)
                .vpcId("vpc-1v2i79fc")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:PrivateDnsExtendEndPoint
    properties:
      endPointName: tf-example
      endPointRegion: ap-jakarta
      forwardIp:
        accessType: CLB
        host: 10.0.1.12
        port: 9000
        vpcId: vpc-1v2i79fc
Copy

If access_type is CCN

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const example = new tencentcloud.PrivateDnsExtendEndPoint("example", {
    endPointName: "tf-example",
    endPointRegion: "ap-jakarta",
    forwardIp: {
        accessGatewayId: "ccn-eo13f8ub",
        accessType: "CCN",
        host: "1.1.1.1",
        port: 8080,
        vpcId: "vpc-2qjckjg2",
    },
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.PrivateDnsExtendEndPoint("example",
    end_point_name="tf-example",
    end_point_region="ap-jakarta",
    forward_ip={
        "access_gateway_id": "ccn-eo13f8ub",
        "access_type": "CCN",
        "host": "1.1.1.1",
        "port": 8080,
        "vpc_id": "vpc-2qjckjg2",
    })
Copy
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.NewPrivateDnsExtendEndPoint(ctx, "example", &tencentcloud.PrivateDnsExtendEndPointArgs{
			EndPointName:   pulumi.String("tf-example"),
			EndPointRegion: pulumi.String("ap-jakarta"),
			ForwardIp: &tencentcloud.PrivateDnsExtendEndPointForwardIpArgs{
				AccessGatewayId: pulumi.String("ccn-eo13f8ub"),
				AccessType:      pulumi.String("CCN"),
				Host:            pulumi.String("1.1.1.1"),
				Port:            pulumi.Float64(8080),
				VpcId:           pulumi.String("vpc-2qjckjg2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.PrivateDnsExtendEndPoint("example", new()
    {
        EndPointName = "tf-example",
        EndPointRegion = "ap-jakarta",
        ForwardIp = new Tencentcloud.Inputs.PrivateDnsExtendEndPointForwardIpArgs
        {
            AccessGatewayId = "ccn-eo13f8ub",
            AccessType = "CCN",
            Host = "1.1.1.1",
            Port = 8080,
            VpcId = "vpc-2qjckjg2",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPoint;
import com.pulumi.tencentcloud.PrivateDnsExtendEndPointArgs;
import com.pulumi.tencentcloud.inputs.PrivateDnsExtendEndPointForwardIpArgs;
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 PrivateDnsExtendEndPoint("example", PrivateDnsExtendEndPointArgs.builder()
            .endPointName("tf-example")
            .endPointRegion("ap-jakarta")
            .forwardIp(PrivateDnsExtendEndPointForwardIpArgs.builder()
                .accessGatewayId("ccn-eo13f8ub")
                .accessType("CCN")
                .host("1.1.1.1")
                .port(8080)
                .vpcId("vpc-2qjckjg2")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:PrivateDnsExtendEndPoint
    properties:
      endPointName: tf-example
      endPointRegion: ap-jakarta
      forwardIp:
        accessGatewayId: ccn-eo13f8ub
        accessType: CCN
        host: 1.1.1.1
        port: 8080
        vpcId: vpc-2qjckjg2
Copy

Create PrivateDnsExtendEndPoint Resource

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

Constructor syntax

new PrivateDnsExtendEndPoint(name: string, args: PrivateDnsExtendEndPointArgs, opts?: CustomResourceOptions);
@overload
def PrivateDnsExtendEndPoint(resource_name: str,
                             args: PrivateDnsExtendEndPointArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def PrivateDnsExtendEndPoint(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             end_point_name: Optional[str] = None,
                             end_point_region: Optional[str] = None,
                             forward_ip: Optional[PrivateDnsExtendEndPointForwardIpArgs] = None,
                             private_dns_extend_end_point_id: Optional[str] = None)
func NewPrivateDnsExtendEndPoint(ctx *Context, name string, args PrivateDnsExtendEndPointArgs, opts ...ResourceOption) (*PrivateDnsExtendEndPoint, error)
public PrivateDnsExtendEndPoint(string name, PrivateDnsExtendEndPointArgs args, CustomResourceOptions? opts = null)
public PrivateDnsExtendEndPoint(String name, PrivateDnsExtendEndPointArgs args)
public PrivateDnsExtendEndPoint(String name, PrivateDnsExtendEndPointArgs args, CustomResourceOptions options)
type: tencentcloud:PrivateDnsExtendEndPoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PrivateDnsExtendEndPointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PrivateDnsExtendEndPointArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PrivateDnsExtendEndPointArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PrivateDnsExtendEndPointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PrivateDnsExtendEndPointArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

EndPointName This property is required. string
Outbound endpoint name.
EndPointRegion This property is required. string
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
ForwardIp PrivateDnsExtendEndPointForwardIp
Forwarding target.
PrivateDnsExtendEndPointId string
ID of the resource.
EndPointName This property is required. string
Outbound endpoint name.
EndPointRegion This property is required. string
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
ForwardIp PrivateDnsExtendEndPointForwardIpArgs
Forwarding target.
PrivateDnsExtendEndPointId string
ID of the resource.
endPointName This property is required. String
Outbound endpoint name.
endPointRegion This property is required. String
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forwardIp PrivateDnsExtendEndPointForwardIp
Forwarding target.
privateDnsExtendEndPointId String
ID of the resource.
endPointName This property is required. string
Outbound endpoint name.
endPointRegion This property is required. string
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forwardIp PrivateDnsExtendEndPointForwardIp
Forwarding target.
privateDnsExtendEndPointId string
ID of the resource.
end_point_name This property is required. str
Outbound endpoint name.
end_point_region This property is required. str
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forward_ip PrivateDnsExtendEndPointForwardIpArgs
Forwarding target.
private_dns_extend_end_point_id str
ID of the resource.
endPointName This property is required. String
Outbound endpoint name.
endPointRegion This property is required. String
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forwardIp Property Map
Forwarding target.
privateDnsExtendEndPointId String
ID of the resource.

Outputs

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

Get an existing PrivateDnsExtendEndPoint 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?: PrivateDnsExtendEndPointState, opts?: CustomResourceOptions): PrivateDnsExtendEndPoint
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        end_point_name: Optional[str] = None,
        end_point_region: Optional[str] = None,
        forward_ip: Optional[PrivateDnsExtendEndPointForwardIpArgs] = None,
        private_dns_extend_end_point_id: Optional[str] = None) -> PrivateDnsExtendEndPoint
func GetPrivateDnsExtendEndPoint(ctx *Context, name string, id IDInput, state *PrivateDnsExtendEndPointState, opts ...ResourceOption) (*PrivateDnsExtendEndPoint, error)
public static PrivateDnsExtendEndPoint Get(string name, Input<string> id, PrivateDnsExtendEndPointState? state, CustomResourceOptions? opts = null)
public static PrivateDnsExtendEndPoint get(String name, Output<String> id, PrivateDnsExtendEndPointState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:PrivateDnsExtendEndPoint    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Outbound endpoint name.
EndPointRegion string
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
ForwardIp PrivateDnsExtendEndPointForwardIp
Forwarding target.
PrivateDnsExtendEndPointId string
ID of the resource.
EndPointName string
Outbound endpoint name.
EndPointRegion string
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
ForwardIp PrivateDnsExtendEndPointForwardIpArgs
Forwarding target.
PrivateDnsExtendEndPointId string
ID of the resource.
endPointName String
Outbound endpoint name.
endPointRegion String
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forwardIp PrivateDnsExtendEndPointForwardIp
Forwarding target.
privateDnsExtendEndPointId String
ID of the resource.
endPointName string
Outbound endpoint name.
endPointRegion string
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forwardIp PrivateDnsExtendEndPointForwardIp
Forwarding target.
privateDnsExtendEndPointId string
ID of the resource.
end_point_name str
Outbound endpoint name.
end_point_region str
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forward_ip PrivateDnsExtendEndPointForwardIpArgs
Forwarding target.
private_dns_extend_end_point_id str
ID of the resource.
endPointName String
Outbound endpoint name.
endPointRegion String
The region of the outbound endpoint must be consistent with the region of the forwarding target VIP.
forwardIp Property Map
Forwarding target.
privateDnsExtendEndPointId String
ID of the resource.

Supporting Types

PrivateDnsExtendEndPointForwardIp
, PrivateDnsExtendEndPointForwardIpArgs

AccessType This property is required. string
Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
Host This property is required. string
Forwarding target IP address.
Port This property is required. double
Specifies the forwarding IP port number.
VpcId This property is required. string
Unique VPC ID.
AccessGatewayId string
CCN id. Required when the access type is CCN.
Proto string
Specifies the forwarding target IP protocol.
SnatVipCidr string
The SNAT CIDR block of the outbound endpoint.
SnatVipSet string
The SNAT IP list of the outbound endpoint.
Vip string
Specifies the forwarding target IP proxy IP.
Vport double
Specifies the forwarding target IP proxy port.
AccessType This property is required. string
Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
Host This property is required. string
Forwarding target IP address.
Port This property is required. float64
Specifies the forwarding IP port number.
VpcId This property is required. string
Unique VPC ID.
AccessGatewayId string
CCN id. Required when the access type is CCN.
Proto string
Specifies the forwarding target IP protocol.
SnatVipCidr string
The SNAT CIDR block of the outbound endpoint.
SnatVipSet string
The SNAT IP list of the outbound endpoint.
Vip string
Specifies the forwarding target IP proxy IP.
Vport float64
Specifies the forwarding target IP proxy port.
accessType This property is required. String
Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
host This property is required. String
Forwarding target IP address.
port This property is required. Double
Specifies the forwarding IP port number.
vpcId This property is required. String
Unique VPC ID.
accessGatewayId String
CCN id. Required when the access type is CCN.
proto String
Specifies the forwarding target IP protocol.
snatVipCidr String
The SNAT CIDR block of the outbound endpoint.
snatVipSet String
The SNAT IP list of the outbound endpoint.
vip String
Specifies the forwarding target IP proxy IP.
vport Double
Specifies the forwarding target IP proxy port.
accessType This property is required. string
Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
host This property is required. string
Forwarding target IP address.
port This property is required. number
Specifies the forwarding IP port number.
vpcId This property is required. string
Unique VPC ID.
accessGatewayId string
CCN id. Required when the access type is CCN.
proto string
Specifies the forwarding target IP protocol.
snatVipCidr string
The SNAT CIDR block of the outbound endpoint.
snatVipSet string
The SNAT IP list of the outbound endpoint.
vip string
Specifies the forwarding target IP proxy IP.
vport number
Specifies the forwarding target IP proxy port.
access_type This property is required. str
Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
host This property is required. str
Forwarding target IP address.
port This property is required. float
Specifies the forwarding IP port number.
vpc_id This property is required. str
Unique VPC ID.
access_gateway_id str
CCN id. Required when the access type is CCN.
proto str
Specifies the forwarding target IP protocol.
snat_vip_cidr str
The SNAT CIDR block of the outbound endpoint.
snat_vip_set str
The SNAT IP list of the outbound endpoint.
vip str
Specifies the forwarding target IP proxy IP.
vport float
Specifies the forwarding target IP proxy port.
accessType This property is required. String
Forwarding target IP network access type. CLB: The forwarding IP is the internal CLB VIP. CCN: Forwarding IP through CCN routing.
host This property is required. String
Forwarding target IP address.
port This property is required. Number
Specifies the forwarding IP port number.
vpcId This property is required. String
Unique VPC ID.
accessGatewayId String
CCN id. Required when the access type is CCN.
proto String
Specifies the forwarding target IP protocol.
snatVipCidr String
The SNAT CIDR block of the outbound endpoint.
snatVipSet String
The SNAT IP list of the outbound endpoint.
vip String
Specifies the forwarding target IP proxy IP.
vport Number
Specifies the forwarding target IP proxy port.

Import

private dns extend end point can be imported using the id, e.g.

$ pulumi import tencentcloud:index/privateDnsExtendEndPoint:PrivateDnsExtendEndPoint example eid-960fb0ee9677
Copy

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.