1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpcepEndpointV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.VpcepEndpointV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPCEP you can get at documentation portal

    Manages a VPC Endpoint v1 resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const sharedSubnet = opentelekomcloud.getVpcSubnetV1({
        name: "test-subnet",
    });
    const lb1 = new opentelekomcloud.LbLoadbalancerV2("lb1", {vipSubnetId: sharedSubnet.then(sharedSubnet => sharedSubnet.subnetId)});
    const service = new opentelekomcloud.VpcepServiceV1("service", {
        portId: lb1.vipPortId,
        vpcId: sharedSubnet.then(sharedSubnet => sharedSubnet.vpcId),
        serverType: "LB",
        ports: [{
            clientPort: 80,
            serverPort: 8080,
        }],
        tags: {
            key: "value",
        },
    });
    const endpoint = new opentelekomcloud.VpcepEndpointV1("endpoint", {
        serviceId: service.vpcepServiceV1Id,
        vpcId: service.vpcId,
        subnetId: sharedSubnet.then(sharedSubnet => sharedSubnet.id),
        portIp: "192.168.0.12",
        enableDns: true,
        whitelists: ["127.0.0.1"],
        tags: {
            fizz: "buzz",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    shared_subnet = opentelekomcloud.get_vpc_subnet_v1(name="test-subnet")
    lb1 = opentelekomcloud.LbLoadbalancerV2("lb1", vip_subnet_id=shared_subnet.subnet_id)
    service = opentelekomcloud.VpcepServiceV1("service",
        port_id=lb1.vip_port_id,
        vpc_id=shared_subnet.vpc_id,
        server_type="LB",
        ports=[{
            "client_port": 80,
            "server_port": 8080,
        }],
        tags={
            "key": "value",
        })
    endpoint = opentelekomcloud.VpcepEndpointV1("endpoint",
        service_id=service.vpcep_service_v1_id,
        vpc_id=service.vpc_id,
        subnet_id=shared_subnet.id,
        port_ip="192.168.0.12",
        enable_dns=True,
        whitelists=["127.0.0.1"],
        tags={
            "fizz": "buzz",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		sharedSubnet, err := opentelekomcloud.LookupVpcSubnetV1(ctx, &opentelekomcloud.LookupVpcSubnetV1Args{
    			Name: pulumi.StringRef("test-subnet"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		lb1, err := opentelekomcloud.NewLbLoadbalancerV2(ctx, "lb1", &opentelekomcloud.LbLoadbalancerV2Args{
    			VipSubnetId: pulumi.String(sharedSubnet.SubnetId),
    		})
    		if err != nil {
    			return err
    		}
    		service, err := opentelekomcloud.NewVpcepServiceV1(ctx, "service", &opentelekomcloud.VpcepServiceV1Args{
    			PortId:     lb1.VipPortId,
    			VpcId:      pulumi.String(sharedSubnet.VpcId),
    			ServerType: pulumi.String("LB"),
    			Ports: opentelekomcloud.VpcepServiceV1PortArray{
    				&opentelekomcloud.VpcepServiceV1PortArgs{
    					ClientPort: pulumi.Float64(80),
    					ServerPort: pulumi.Float64(8080),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcepEndpointV1(ctx, "endpoint", &opentelekomcloud.VpcepEndpointV1Args{
    			ServiceId: service.VpcepServiceV1Id,
    			VpcId:     service.VpcId,
    			SubnetId:  pulumi.String(sharedSubnet.Id),
    			PortIp:    pulumi.String("192.168.0.12"),
    			EnableDns: pulumi.Bool(true),
    			Whitelists: pulumi.StringArray{
    				pulumi.String("127.0.0.1"),
    			},
    			Tags: pulumi.StringMap{
    				"fizz": pulumi.String("buzz"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var sharedSubnet = Opentelekomcloud.GetVpcSubnetV1.Invoke(new()
        {
            Name = "test-subnet",
        });
    
        var lb1 = new Opentelekomcloud.LbLoadbalancerV2("lb1", new()
        {
            VipSubnetId = sharedSubnet.Apply(getVpcSubnetV1Result => getVpcSubnetV1Result.SubnetId),
        });
    
        var service = new Opentelekomcloud.VpcepServiceV1("service", new()
        {
            PortId = lb1.VipPortId,
            VpcId = sharedSubnet.Apply(getVpcSubnetV1Result => getVpcSubnetV1Result.VpcId),
            ServerType = "LB",
            Ports = new[]
            {
                new Opentelekomcloud.Inputs.VpcepServiceV1PortArgs
                {
                    ClientPort = 80,
                    ServerPort = 8080,
                },
            },
            Tags = 
            {
                { "key", "value" },
            },
        });
    
        var endpoint = new Opentelekomcloud.VpcepEndpointV1("endpoint", new()
        {
            ServiceId = service.VpcepServiceV1Id,
            VpcId = service.VpcId,
            SubnetId = sharedSubnet.Apply(getVpcSubnetV1Result => getVpcSubnetV1Result.Id),
            PortIp = "192.168.0.12",
            EnableDns = true,
            Whitelists = new[]
            {
                "127.0.0.1",
            },
            Tags = 
            {
                { "fizz", "buzz" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetVpcSubnetV1Args;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV2;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV2Args;
    import com.pulumi.opentelekomcloud.VpcepServiceV1;
    import com.pulumi.opentelekomcloud.VpcepServiceV1Args;
    import com.pulumi.opentelekomcloud.inputs.VpcepServiceV1PortArgs;
    import com.pulumi.opentelekomcloud.VpcepEndpointV1;
    import com.pulumi.opentelekomcloud.VpcepEndpointV1Args;
    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) {
            final var sharedSubnet = OpentelekomcloudFunctions.getVpcSubnetV1(GetVpcSubnetV1Args.builder()
                .name("test-subnet")
                .build());
    
            var lb1 = new LbLoadbalancerV2("lb1", LbLoadbalancerV2Args.builder()
                .vipSubnetId(sharedSubnet.applyValue(getVpcSubnetV1Result -> getVpcSubnetV1Result.subnetId()))
                .build());
    
            var service = new VpcepServiceV1("service", VpcepServiceV1Args.builder()
                .portId(lb1.vipPortId())
                .vpcId(sharedSubnet.applyValue(getVpcSubnetV1Result -> getVpcSubnetV1Result.vpcId()))
                .serverType("LB")
                .ports(VpcepServiceV1PortArgs.builder()
                    .clientPort(80)
                    .serverPort(8080)
                    .build())
                .tags(Map.of("key", "value"))
                .build());
    
            var endpoint = new VpcepEndpointV1("endpoint", VpcepEndpointV1Args.builder()
                .serviceId(service.vpcepServiceV1Id())
                .vpcId(service.vpcId())
                .subnetId(sharedSubnet.applyValue(getVpcSubnetV1Result -> getVpcSubnetV1Result.id()))
                .portIp("192.168.0.12")
                .enableDns(true)
                .whitelists("127.0.0.1")
                .tags(Map.of("fizz", "buzz"))
                .build());
    
        }
    }
    
    resources:
      lb1:
        type: opentelekomcloud:LbLoadbalancerV2
        properties:
          vipSubnetId: ${sharedSubnet.subnetId}
      service:
        type: opentelekomcloud:VpcepServiceV1
        properties:
          portId: ${lb1.vipPortId}
          vpcId: ${sharedSubnet.vpcId}
          serverType: LB
          ports:
            - clientPort: 80
              serverPort: 8080
          tags:
            key: value
      endpoint:
        type: opentelekomcloud:VpcepEndpointV1
        properties:
          serviceId: ${service.vpcepServiceV1Id}
          vpcId: ${service.vpcId}
          subnetId: ${sharedSubnet.id}
          portIp: 192.168.0.12
          enableDns: true
          whitelists:
            - 127.0.0.1
          tags:
            fizz: buzz
    variables:
      sharedSubnet:
        fn::invoke:
          function: opentelekomcloud:getVpcSubnetV1
          arguments:
            name: test-subnet
    

    Create VpcepEndpointV1 Resource

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

    Constructor syntax

    new VpcepEndpointV1(name: string, args: VpcepEndpointV1Args, opts?: CustomResourceOptions);
    @overload
    def VpcepEndpointV1(resource_name: str,
                        args: VpcepEndpointV1Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcepEndpointV1(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        service_id: Optional[str] = None,
                        vpc_id: Optional[str] = None,
                        policy_statement: Optional[str] = None,
                        description: Optional[str] = None,
                        port_ip: Optional[str] = None,
                        route_tables: Optional[Sequence[str]] = None,
                        enable_whitelist: Optional[bool] = None,
                        subnet_id: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        timeouts: Optional[VpcepEndpointV1TimeoutsArgs] = None,
                        enable_dns: Optional[bool] = None,
                        vpcep_endpoint_v1_id: Optional[str] = None,
                        whitelists: Optional[Sequence[str]] = None)
    func NewVpcepEndpointV1(ctx *Context, name string, args VpcepEndpointV1Args, opts ...ResourceOption) (*VpcepEndpointV1, error)
    public VpcepEndpointV1(string name, VpcepEndpointV1Args args, CustomResourceOptions? opts = null)
    public VpcepEndpointV1(String name, VpcepEndpointV1Args args)
    public VpcepEndpointV1(String name, VpcepEndpointV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpcepEndpointV1
    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 VpcepEndpointV1Args
    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 VpcepEndpointV1Args
    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 VpcepEndpointV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcepEndpointV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcepEndpointV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vpcepEndpointV1Resource = new Opentelekomcloud.VpcepEndpointV1("vpcepEndpointV1Resource", new()
    {
        ServiceId = "string",
        VpcId = "string",
        PolicyStatement = "string",
        Description = "string",
        PortIp = "string",
        RouteTables = new[]
        {
            "string",
        },
        EnableWhitelist = false,
        SubnetId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.VpcepEndpointV1TimeoutsArgs
        {
            Default = "string",
        },
        EnableDns = false,
        VpcepEndpointV1Id = "string",
        Whitelists = new[]
        {
            "string",
        },
    });
    
    example, err := opentelekomcloud.NewVpcepEndpointV1(ctx, "vpcepEndpointV1Resource", &opentelekomcloud.VpcepEndpointV1Args{
    	ServiceId:       pulumi.String("string"),
    	VpcId:           pulumi.String("string"),
    	PolicyStatement: pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	PortIp:          pulumi.String("string"),
    	RouteTables: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	EnableWhitelist: pulumi.Bool(false),
    	SubnetId:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.VpcepEndpointV1TimeoutsArgs{
    		Default: pulumi.String("string"),
    	},
    	EnableDns:         pulumi.Bool(false),
    	VpcepEndpointV1Id: pulumi.String("string"),
    	Whitelists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var vpcepEndpointV1Resource = new VpcepEndpointV1("vpcepEndpointV1Resource", VpcepEndpointV1Args.builder()
        .serviceId("string")
        .vpcId("string")
        .policyStatement("string")
        .description("string")
        .portIp("string")
        .routeTables("string")
        .enableWhitelist(false)
        .subnetId("string")
        .tags(Map.of("string", "string"))
        .timeouts(VpcepEndpointV1TimeoutsArgs.builder()
            .default_("string")
            .build())
        .enableDns(false)
        .vpcepEndpointV1Id("string")
        .whitelists("string")
        .build());
    
    vpcep_endpoint_v1_resource = opentelekomcloud.VpcepEndpointV1("vpcepEndpointV1Resource",
        service_id="string",
        vpc_id="string",
        policy_statement="string",
        description="string",
        port_ip="string",
        route_tables=["string"],
        enable_whitelist=False,
        subnet_id="string",
        tags={
            "string": "string",
        },
        timeouts={
            "default": "string",
        },
        enable_dns=False,
        vpcep_endpoint_v1_id="string",
        whitelists=["string"])
    
    const vpcepEndpointV1Resource = new opentelekomcloud.VpcepEndpointV1("vpcepEndpointV1Resource", {
        serviceId: "string",
        vpcId: "string",
        policyStatement: "string",
        description: "string",
        portIp: "string",
        routeTables: ["string"],
        enableWhitelist: false,
        subnetId: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            "default": "string",
        },
        enableDns: false,
        vpcepEndpointV1Id: "string",
        whitelists: ["string"],
    });
    
    type: opentelekomcloud:VpcepEndpointV1
    properties:
        description: string
        enableDns: false
        enableWhitelist: false
        policyStatement: string
        portIp: string
        routeTables:
            - string
        serviceId: string
        subnetId: string
        tags:
            string: string
        timeouts:
            default: string
        vpcId: string
        vpcepEndpointV1Id: string
        whitelists:
            - string
    

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

    ServiceId string
    Specifies the ID of the VPC endpoint service.
    VpcId string
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    Description string
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    EnableDns bool
    Specifies whether to create a private domain name. The default value is false.
    EnableWhitelist bool
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    PolicyStatement string
    PortIp string
    Specifies the IP address for accessing the associated VPC endpoint service.
    RouteTables List<string>
    Lists the IDs of route tables.
    SubnetId string

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    Tags Dictionary<string, string>
    The key/value pairs to associate with the VPC endpoint.
    Timeouts VpcepEndpointV1Timeouts
    VpcepEndpointV1Id string
    ID of VPC endpoint.
    Whitelists List<string>
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    ServiceId string
    Specifies the ID of the VPC endpoint service.
    VpcId string
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    Description string
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    EnableDns bool
    Specifies whether to create a private domain name. The default value is false.
    EnableWhitelist bool
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    PolicyStatement string
    PortIp string
    Specifies the IP address for accessing the associated VPC endpoint service.
    RouteTables []string
    Lists the IDs of route tables.
    SubnetId string

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    Tags map[string]string
    The key/value pairs to associate with the VPC endpoint.
    Timeouts VpcepEndpointV1TimeoutsArgs
    VpcepEndpointV1Id string
    ID of VPC endpoint.
    Whitelists []string
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    serviceId String
    Specifies the ID of the VPC endpoint service.
    vpcId String
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    description String
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    enableDns Boolean
    Specifies whether to create a private domain name. The default value is false.
    enableWhitelist Boolean
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    policyStatement String
    portIp String
    Specifies the IP address for accessing the associated VPC endpoint service.
    routeTables List<String>
    Lists the IDs of route tables.
    subnetId String

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags Map<String,String>
    The key/value pairs to associate with the VPC endpoint.
    timeouts VpcepEndpointV1Timeouts
    vpcepEndpointV1Id String
    ID of VPC endpoint.
    whitelists List<String>
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    serviceId string
    Specifies the ID of the VPC endpoint service.
    vpcId string
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    description string
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    enableDns boolean
    Specifies whether to create a private domain name. The default value is false.
    enableWhitelist boolean
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    policyStatement string
    portIp string
    Specifies the IP address for accessing the associated VPC endpoint service.
    routeTables string[]
    Lists the IDs of route tables.
    subnetId string

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags {[key: string]: string}
    The key/value pairs to associate with the VPC endpoint.
    timeouts VpcepEndpointV1Timeouts
    vpcepEndpointV1Id string
    ID of VPC endpoint.
    whitelists string[]
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    service_id str
    Specifies the ID of the VPC endpoint service.
    vpc_id str
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    description str
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    enable_dns bool
    Specifies whether to create a private domain name. The default value is false.
    enable_whitelist bool
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    policy_statement str
    port_ip str
    Specifies the IP address for accessing the associated VPC endpoint service.
    route_tables Sequence[str]
    Lists the IDs of route tables.
    subnet_id str

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags Mapping[str, str]
    The key/value pairs to associate with the VPC endpoint.
    timeouts VpcepEndpointV1TimeoutsArgs
    vpcep_endpoint_v1_id str
    ID of VPC endpoint.
    whitelists Sequence[str]
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    serviceId String
    Specifies the ID of the VPC endpoint service.
    vpcId String
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    description String
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    enableDns Boolean
    Specifies whether to create a private domain name. The default value is false.
    enableWhitelist Boolean
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    policyStatement String
    portIp String
    Specifies the IP address for accessing the associated VPC endpoint service.
    routeTables List<String>
    Lists the IDs of route tables.
    subnetId String

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags Map<String>
    The key/value pairs to associate with the VPC endpoint.
    timeouts Property Map
    vpcepEndpointV1Id String
    ID of VPC endpoint.
    whitelists List<String>
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcepEndpointV1 resource produces the following output properties:

    DnsNames List<string>
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    Id string
    The provider-assigned unique ID for this managed resource.
    MarkerId double
    Specifies the packet ID of the VPC endpoint.
    ProjectId string
    Specifies the project ID.
    ServiceName string
    Specifies the name of the VPC endpoint service.
    ServiceType string
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    Status string
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    DnsNames []string
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    Id string
    The provider-assigned unique ID for this managed resource.
    MarkerId float64
    Specifies the packet ID of the VPC endpoint.
    ProjectId string
    Specifies the project ID.
    ServiceName string
    Specifies the name of the VPC endpoint service.
    ServiceType string
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    Status string
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    dnsNames List<String>
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    id String
    The provider-assigned unique ID for this managed resource.
    markerId Double
    Specifies the packet ID of the VPC endpoint.
    projectId String
    Specifies the project ID.
    serviceName String
    Specifies the name of the VPC endpoint service.
    serviceType String
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status String
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    dnsNames string[]
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    id string
    The provider-assigned unique ID for this managed resource.
    markerId number
    Specifies the packet ID of the VPC endpoint.
    projectId string
    Specifies the project ID.
    serviceName string
    Specifies the name of the VPC endpoint service.
    serviceType string
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status string
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    dns_names Sequence[str]
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    id str
    The provider-assigned unique ID for this managed resource.
    marker_id float
    Specifies the packet ID of the VPC endpoint.
    project_id str
    Specifies the project ID.
    service_name str
    Specifies the name of the VPC endpoint service.
    service_type str
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status str
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    dnsNames List<String>
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    id String
    The provider-assigned unique ID for this managed resource.
    markerId Number
    Specifies the packet ID of the VPC endpoint.
    projectId String
    Specifies the project ID.
    serviceName String
    Specifies the name of the VPC endpoint service.
    serviceType String
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status String
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.

    Look up Existing VpcepEndpointV1 Resource

    Get an existing VpcepEndpointV1 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?: VpcepEndpointV1State, opts?: CustomResourceOptions): VpcepEndpointV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            dns_names: Optional[Sequence[str]] = None,
            enable_dns: Optional[bool] = None,
            enable_whitelist: Optional[bool] = None,
            marker_id: Optional[float] = None,
            policy_statement: Optional[str] = None,
            port_ip: Optional[str] = None,
            project_id: Optional[str] = None,
            route_tables: Optional[Sequence[str]] = None,
            service_id: Optional[str] = None,
            service_name: Optional[str] = None,
            service_type: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[VpcepEndpointV1TimeoutsArgs] = None,
            vpc_id: Optional[str] = None,
            vpcep_endpoint_v1_id: Optional[str] = None,
            whitelists: Optional[Sequence[str]] = None) -> VpcepEndpointV1
    func GetVpcepEndpointV1(ctx *Context, name string, id IDInput, state *VpcepEndpointV1State, opts ...ResourceOption) (*VpcepEndpointV1, error)
    public static VpcepEndpointV1 Get(string name, Input<string> id, VpcepEndpointV1State? state, CustomResourceOptions? opts = null)
    public static VpcepEndpointV1 get(String name, Output<String> id, VpcepEndpointV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpcepEndpointV1    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:
    Description string
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    DnsNames List<string>
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    EnableDns bool
    Specifies whether to create a private domain name. The default value is false.
    EnableWhitelist bool
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    MarkerId double
    Specifies the packet ID of the VPC endpoint.
    PolicyStatement string
    PortIp string
    Specifies the IP address for accessing the associated VPC endpoint service.
    ProjectId string
    Specifies the project ID.
    RouteTables List<string>
    Lists the IDs of route tables.
    ServiceId string
    Specifies the ID of the VPC endpoint service.
    ServiceName string
    Specifies the name of the VPC endpoint service.
    ServiceType string
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    Status string
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    SubnetId string

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    Tags Dictionary<string, string>
    The key/value pairs to associate with the VPC endpoint.
    Timeouts VpcepEndpointV1Timeouts
    VpcId string
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    VpcepEndpointV1Id string
    ID of VPC endpoint.
    Whitelists List<string>
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    Description string
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    DnsNames []string
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    EnableDns bool
    Specifies whether to create a private domain name. The default value is false.
    EnableWhitelist bool
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    MarkerId float64
    Specifies the packet ID of the VPC endpoint.
    PolicyStatement string
    PortIp string
    Specifies the IP address for accessing the associated VPC endpoint service.
    ProjectId string
    Specifies the project ID.
    RouteTables []string
    Lists the IDs of route tables.
    ServiceId string
    Specifies the ID of the VPC endpoint service.
    ServiceName string
    Specifies the name of the VPC endpoint service.
    ServiceType string
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    Status string
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    SubnetId string

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    Tags map[string]string
    The key/value pairs to associate with the VPC endpoint.
    Timeouts VpcepEndpointV1TimeoutsArgs
    VpcId string
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    VpcepEndpointV1Id string
    ID of VPC endpoint.
    Whitelists []string
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    description String
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    dnsNames List<String>
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    enableDns Boolean
    Specifies whether to create a private domain name. The default value is false.
    enableWhitelist Boolean
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    markerId Double
    Specifies the packet ID of the VPC endpoint.
    policyStatement String
    portIp String
    Specifies the IP address for accessing the associated VPC endpoint service.
    projectId String
    Specifies the project ID.
    routeTables List<String>
    Lists the IDs of route tables.
    serviceId String
    Specifies the ID of the VPC endpoint service.
    serviceName String
    Specifies the name of the VPC endpoint service.
    serviceType String
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status String
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    subnetId String

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags Map<String,String>
    The key/value pairs to associate with the VPC endpoint.
    timeouts VpcepEndpointV1Timeouts
    vpcId String
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    vpcepEndpointV1Id String
    ID of VPC endpoint.
    whitelists List<String>
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    description string
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    dnsNames string[]
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    enableDns boolean
    Specifies whether to create a private domain name. The default value is false.
    enableWhitelist boolean
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    markerId number
    Specifies the packet ID of the VPC endpoint.
    policyStatement string
    portIp string
    Specifies the IP address for accessing the associated VPC endpoint service.
    projectId string
    Specifies the project ID.
    routeTables string[]
    Lists the IDs of route tables.
    serviceId string
    Specifies the ID of the VPC endpoint service.
    serviceName string
    Specifies the name of the VPC endpoint service.
    serviceType string
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status string
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    subnetId string

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags {[key: string]: string}
    The key/value pairs to associate with the VPC endpoint.
    timeouts VpcepEndpointV1Timeouts
    vpcId string
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    vpcepEndpointV1Id string
    ID of VPC endpoint.
    whitelists string[]
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    description str
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    dns_names Sequence[str]
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    enable_dns bool
    Specifies whether to create a private domain name. The default value is false.
    enable_whitelist bool
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    marker_id float
    Specifies the packet ID of the VPC endpoint.
    policy_statement str
    port_ip str
    Specifies the IP address for accessing the associated VPC endpoint service.
    project_id str
    Specifies the project ID.
    route_tables Sequence[str]
    Lists the IDs of route tables.
    service_id str
    Specifies the ID of the VPC endpoint service.
    service_name str
    Specifies the name of the VPC endpoint service.
    service_type str
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status str
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    subnet_id str

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags Mapping[str, str]
    The key/value pairs to associate with the VPC endpoint.
    timeouts VpcepEndpointV1TimeoutsArgs
    vpc_id str
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    vpcep_endpoint_v1_id str
    ID of VPC endpoint.
    whitelists Sequence[str]
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.
    description String
    Specifies the description of the VPC endpoint. The value can contain characters such as letters and digits, but cannot contain less than signs (<) and great than signs (>).
    dnsNames List<String>
    Specifies the domain name for accessing the associated VPC endpoint service. This parameter is only available when enable_dns is set to true.
    enableDns Boolean
    Specifies whether to create a private domain name. The default value is false.
    enableWhitelist Boolean
    Specifies whether to enable access control. This parameter is available only if you create a VPC endpoint for connecting to an interface VPC endpoint service.
    markerId Number
    Specifies the packet ID of the VPC endpoint.
    policyStatement String
    portIp String
    Specifies the IP address for accessing the associated VPC endpoint service.
    projectId String
    Specifies the project ID.
    routeTables List<String>
    Lists the IDs of route tables.
    serviceId String
    Specifies the ID of the VPC endpoint service.
    serviceName String
    Specifies the name of the VPC endpoint service.
    serviceType String
    Specifies the type of the VPC endpoint service that is associated with the VPC endpoint.
    status String
    The status of the VPC endpoint. The value can be pendingAcceptance, creating, accepted, rejected, failed, deleting.
    subnetId String

    The value must be the ID of the subnet (OpenStack network) created in the VPC specified by vpc_id and in the format of the UUID. This parameter is mandatory only if you create a VPC endpoint for connecting to an interface VPC endpoint service.

    ~> The CIDR block of the VPC subnet cannot overlap with 198.19.128.0/20. The destination address of the custom route in the VPC route table cannot overlap with the CIDR block 198.19.128.0/20.

    tags Map<String>
    The key/value pairs to associate with the VPC endpoint.
    timeouts Property Map
    vpcId String
    Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
    vpcepEndpointV1Id String
    ID of VPC endpoint.
    whitelists List<String>
    Specifies an array of whitelisted IPs for controlling access to the VPC endpoint. IPv4 addresses or CIDR blocks can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    Supporting Types

    VpcepEndpointV1Timeouts, VpcepEndpointV1TimeoutsArgs

    Default string
    Default string
    default_ String
    default string
    default String

    Import

    VPC endpoint can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/vpcepEndpointV1:VpcepEndpointV1 endpoint 71ba78a2-d847-4882-8fd0-42c5854c1cbc
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud