opentelekomcloud.VpcepEndpointV1
Explore with Pulumi AI
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:
- Service
Id string - Specifies the ID of the VPC endpoint service.
- Vpc
Id 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 (>).
- 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 string - Port
Ip string - Specifies the IP address for accessing the associated VPC endpoint service.
- Route
Tables List<string> - Lists the IDs of route tables.
- Subnet
Id 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 block198.19.128.0/20
.- Dictionary<string, string>
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint V1Timeouts - Vpcep
Endpoint stringV1Id - ID of VPC endpoint.
- Whitelists List<string>
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC endpoint
for connecting to an interface VPC endpoint service.
- Service
Id string - Specifies the ID of the VPC endpoint service.
- Vpc
Id 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 (>).
- 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 string - Port
Ip string - Specifies the IP address for accessing the associated VPC endpoint service.
- Route
Tables []string - Lists the IDs of route tables.
- Subnet
Id 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 block198.19.128.0/20
.- map[string]string
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint V1Timeouts Args - Vpcep
Endpoint stringV1Id - ID of VPC endpoint.
- Whitelists []string
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC endpoint
for connecting to an interface VPC endpoint service.
- service
Id String - Specifies the ID of the VPC endpoint service.
- vpc
Id 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 (>).
- enable
Dns Boolean - Specifies whether to create a private domain name. The default value is
false
. - enable
Whitelist 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. - policy
Statement String - port
Ip String - Specifies the IP address for accessing the associated VPC endpoint service.
- route
Tables List<String> - Lists the IDs of route tables.
- subnet
Id 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 block198.19.128.0/20
.- Map<String,String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint V1Timeouts - vpcep
Endpoint StringV1Id - ID of VPC endpoint.
- whitelists List<String>
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC endpoint
for connecting to an interface VPC endpoint service.
- service
Id string - Specifies the ID of the VPC endpoint service.
- vpc
Id 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 (>).
- enable
Dns boolean - Specifies whether to create a private domain name. The default value is
false
. - enable
Whitelist 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. - policy
Statement string - port
Ip string - Specifies the IP address for accessing the associated VPC endpoint service.
- route
Tables string[] - Lists the IDs of route tables.
- subnet
Id 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 block198.19.128.0/20
.- {[key: string]: string}
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint V1Timeouts - vpcep
Endpoint stringV1Id - ID of VPC endpoint.
- whitelists string[]
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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 block198.19.128.0/20
.- Mapping[str, str]
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint V1Timeouts Args - vpcep_
endpoint_ strv1_ id - ID of VPC endpoint.
- whitelists Sequence[str]
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC endpoint
for connecting to an interface VPC endpoint service.
- service
Id String - Specifies the ID of the VPC endpoint service.
- vpc
Id 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 (>).
- enable
Dns Boolean - Specifies whether to create a private domain name. The default value is
false
. - enable
Whitelist 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. - policy
Statement String - port
Ip String - Specifies the IP address for accessing the associated VPC endpoint service.
- route
Tables List<String> - Lists the IDs of route tables.
- subnet
Id 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 block198.19.128.0/20
.- Map<String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts Property Map
- vpcep
Endpoint StringV1Id - ID of VPC endpoint.
- whitelists List<String>
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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:
- Dns
Names List<string> - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - Id string
- The provider-assigned unique ID for this managed resource.
- Marker
Id double - Specifies the packet ID of the VPC endpoint.
- Project
Id string - Specifies the project ID.
- Service
Name string - Specifies the name of the VPC endpoint service.
- Service
Type 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 []string - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - Id string
- The provider-assigned unique ID for this managed resource.
- Marker
Id float64 - Specifies the packet ID of the VPC endpoint.
- Project
Id string - Specifies the project ID.
- Service
Name string - Specifies the name of the VPC endpoint service.
- Service
Type 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 List<String> - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - id String
- The provider-assigned unique ID for this managed resource.
- marker
Id Double - Specifies the packet ID of the VPC endpoint.
- project
Id String - Specifies the project ID.
- service
Name String - Specifies the name of the VPC endpoint service.
- service
Type 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 string[] - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - id string
- The provider-assigned unique ID for this managed resource.
- marker
Id number - Specifies the packet ID of the VPC endpoint.
- project
Id string - Specifies the project ID.
- service
Name string - Specifies the name of the VPC endpoint service.
- service
Type 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 totrue
. - 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
.
- dns
Names List<String> - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - id String
- The provider-assigned unique ID for this managed resource.
- marker
Id Number - Specifies the packet ID of the VPC endpoint.
- project
Id String - Specifies the project ID.
- service
Name String - Specifies the name of the VPC endpoint service.
- service
Type 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.
- 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 (>).
- Dns
Names List<string> - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - 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 double - Specifies the packet ID of the VPC endpoint.
- Policy
Statement string - Port
Ip string - Specifies the IP address for accessing the associated VPC endpoint service.
- Project
Id string - Specifies the project ID.
- Route
Tables List<string> - Lists the IDs of route tables.
- Service
Id string - Specifies the ID of the VPC endpoint service.
- Service
Name string - Specifies the name of the VPC endpoint service.
- Service
Type 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
. - Subnet
Id 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 block198.19.128.0/20
.- Dictionary<string, string>
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint V1Timeouts - Vpc
Id string - Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
- Vpcep
Endpoint stringV1Id - ID of VPC endpoint.
- Whitelists List<string>
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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 (>).
- Dns
Names []string - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - 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 float64 - Specifies the packet ID of the VPC endpoint.
- Policy
Statement string - Port
Ip string - Specifies the IP address for accessing the associated VPC endpoint service.
- Project
Id string - Specifies the project ID.
- Route
Tables []string - Lists the IDs of route tables.
- Service
Id string - Specifies the ID of the VPC endpoint service.
- Service
Name string - Specifies the name of the VPC endpoint service.
- Service
Type 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
. - Subnet
Id 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 block198.19.128.0/20
.- map[string]string
- The key/value pairs to associate with the VPC endpoint.
- Timeouts
Vpcep
Endpoint V1Timeouts Args - Vpc
Id string - Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
- Vpcep
Endpoint stringV1Id - ID of VPC endpoint.
- Whitelists []string
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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 (>).
- dns
Names List<String> - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - enable
Dns Boolean - Specifies whether to create a private domain name. The default value is
false
. - enable
Whitelist 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. - marker
Id Double - Specifies the packet ID of the VPC endpoint.
- policy
Statement String - port
Ip String - Specifies the IP address for accessing the associated VPC endpoint service.
- project
Id String - Specifies the project ID.
- route
Tables List<String> - Lists the IDs of route tables.
- service
Id String - Specifies the ID of the VPC endpoint service.
- service
Name String - Specifies the name of the VPC endpoint service.
- service
Type 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
. - subnet
Id 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 block198.19.128.0/20
.- Map<String,String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint V1Timeouts - vpc
Id String - Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
- vpcep
Endpoint StringV1Id - ID of VPC endpoint.
- whitelists List<String>
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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 (>).
- dns
Names string[] - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - enable
Dns boolean - Specifies whether to create a private domain name. The default value is
false
. - enable
Whitelist 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. - marker
Id number - Specifies the packet ID of the VPC endpoint.
- policy
Statement string - port
Ip string - Specifies the IP address for accessing the associated VPC endpoint service.
- project
Id string - Specifies the project ID.
- route
Tables string[] - Lists the IDs of route tables.
- service
Id string - Specifies the ID of the VPC endpoint service.
- service
Name string - Specifies the name of the VPC endpoint service.
- service
Type 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
. - subnet
Id 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 block198.19.128.0/20
.- {[key: string]: string}
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint V1Timeouts - vpc
Id string - Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
- vpcep
Endpoint stringV1Id - ID of VPC endpoint.
- whitelists string[]
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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 totrue
. - 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 block198.19.128.0/20
.- Mapping[str, str]
- The key/value pairs to associate with the VPC endpoint.
- timeouts
Vpcep
Endpoint V1Timeouts Args - vpc_
id str - Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
- vpcep_
endpoint_ strv1_ id - ID of VPC endpoint.
- whitelists Sequence[str]
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC 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 (>).
- dns
Names List<String> - Specifies the domain name for accessing the associated VPC endpoint service.
This parameter is only available when
enable_dns
is set totrue
. - enable
Dns Boolean - Specifies whether to create a private domain name. The default value is
false
. - enable
Whitelist 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. - marker
Id Number - Specifies the packet ID of the VPC endpoint.
- policy
Statement String - port
Ip String - Specifies the IP address for accessing the associated VPC endpoint service.
- project
Id String - Specifies the project ID.
- route
Tables List<String> - Lists the IDs of route tables.
- service
Id String - Specifies the ID of the VPC endpoint service.
- service
Name String - Specifies the name of the VPC endpoint service.
- service
Type 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
. - subnet
Id 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 block198.19.128.0/20
.- Map<String>
- The key/value pairs to associate with the VPC endpoint.
- timeouts Property Map
- vpc
Id String - Specifies the ID of the VPC (OpenStack router) where the VPC endpoint is to be created.
- vpcep
Endpoint StringV1Id - ID of VPC endpoint.
- whitelists List<String>
- Specifies an array of whitelisted IPs for controlling access to the VPC endpoint.
IPv4 addresses
orCIDR blocks
can be specified to control access when you create a VPC endpoint. This parameter is mandatory only when you create aVPC endpoint
for connecting to an interface VPC endpoint service.
Supporting Types
VpcepEndpointV1Timeouts, VpcepEndpointV1TimeoutsArgs
- Default string
- Default string
- default_ String
- default string
- default str
- 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.