published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
开启公网访问,以便 VPC 外的设备来访问 Redis 实例。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const redisEndpointPublicAddressDemo = new bytepluscc.redis.EndpointPublicAddress("RedisEndpointPublicAddressDemo", {
instanceId: "redis-cnlfii2cw1xxxxxx",
port: 6379,
eipId: "eip-w08rcc38bsw0865yxxxxx",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
redis_endpoint_public_address_demo = bytepluscc.redis.EndpointPublicAddress("RedisEndpointPublicAddressDemo",
instance_id="redis-cnlfii2cw1xxxxxx",
port=6379,
eip_id="eip-w08rcc38bsw0865yxxxxx")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/redis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.NewEndpointPublicAddress(ctx, "RedisEndpointPublicAddressDemo", &redis.EndpointPublicAddressArgs{
InstanceId: pulumi.String("redis-cnlfii2cw1xxxxxx"),
Port: pulumi.Int(6379),
EipId: pulumi.String("eip-w08rcc38bsw0865yxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var redisEndpointPublicAddressDemo = new Bytepluscc.Redis.EndpointPublicAddress("RedisEndpointPublicAddressDemo", new()
{
InstanceId = "redis-cnlfii2cw1xxxxxx",
Port = 6379,
EipId = "eip-w08rcc38bsw0865yxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.redis.EndpointPublicAddress;
import com.byteplus.bytepluscc.redis.EndpointPublicAddressArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var redisEndpointPublicAddressDemo = new EndpointPublicAddress("redisEndpointPublicAddressDemo", EndpointPublicAddressArgs.builder()
.instanceId("redis-cnlfii2cw1xxxxxx")
.port(6379)
.eipId("eip-w08rcc38bsw0865yxxxxx")
.build());
}
}
resources:
redisEndpointPublicAddressDemo:
type: bytepluscc:redis:EndpointPublicAddress
name: RedisEndpointPublicAddressDemo
properties:
instanceId: redis-cnlfii2cw1xxxxxx
port: 6379
eipId: eip-w08rcc38bsw0865yxxxxx
Create EndpointPublicAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointPublicAddress(name: string, args: EndpointPublicAddressArgs, opts?: CustomResourceOptions);@overload
def EndpointPublicAddress(resource_name: str,
args: EndpointPublicAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EndpointPublicAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
eip_id: Optional[str] = None,
instance_id: Optional[str] = None,
new_address_prefix: Optional[str] = None,
port: Optional[int] = None,
upgrade_region_domain: Optional[bool] = None)func NewEndpointPublicAddress(ctx *Context, name string, args EndpointPublicAddressArgs, opts ...ResourceOption) (*EndpointPublicAddress, error)public EndpointPublicAddress(string name, EndpointPublicAddressArgs args, CustomResourceOptions? opts = null)
public EndpointPublicAddress(String name, EndpointPublicAddressArgs args)
public EndpointPublicAddress(String name, EndpointPublicAddressArgs args, CustomResourceOptions options)
type: bytepluscc:redis:EndpointPublicAddress
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 EndpointPublicAddressArgs
- 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 EndpointPublicAddressArgs
- 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 EndpointPublicAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointPublicAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointPublicAddressArgs
- 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 endpointPublicAddressResource = new Bytepluscc.Redis.EndpointPublicAddress("endpointPublicAddressResource", new()
{
EipId = "string",
InstanceId = "string",
NewAddressPrefix = "string",
Port = 0,
UpgradeRegionDomain = false,
});
example, err := redis.NewEndpointPublicAddress(ctx, "endpointPublicAddressResource", &redis.EndpointPublicAddressArgs{
EipId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
NewAddressPrefix: pulumi.String("string"),
Port: pulumi.Int(0),
UpgradeRegionDomain: pulumi.Bool(false),
})
var endpointPublicAddressResource = new EndpointPublicAddress("endpointPublicAddressResource", EndpointPublicAddressArgs.builder()
.eipId("string")
.instanceId("string")
.newAddressPrefix("string")
.port(0)
.upgradeRegionDomain(false)
.build());
endpoint_public_address_resource = bytepluscc.redis.EndpointPublicAddress("endpointPublicAddressResource",
eip_id="string",
instance_id="string",
new_address_prefix="string",
port=0,
upgrade_region_domain=False)
const endpointPublicAddressResource = new bytepluscc.redis.EndpointPublicAddress("endpointPublicAddressResource", {
eipId: "string",
instanceId: "string",
newAddressPrefix: "string",
port: 0,
upgradeRegionDomain: false,
});
type: bytepluscc:redis:EndpointPublicAddress
properties:
eipId: string
instanceId: string
newAddressPrefix: string
port: 0
upgradeRegionDomain: false
EndpointPublicAddress 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 EndpointPublicAddress resource accepts the following input properties:
- Eip
Id string - 弹性公网 IP 的 ID。
- Instance
Id string - 实例 ID。
- New
Address stringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- Port int
- 端口号。
- Upgrade
Region boolDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- Eip
Id string - 弹性公网 IP 的 ID。
- Instance
Id string - 实例 ID。
- New
Address stringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- Port int
- 端口号。
- Upgrade
Region boolDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- eip
Id String - 弹性公网 IP 的 ID。
- instance
Id String - 实例 ID。
- new
Address StringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port Integer
- 端口号。
- upgrade
Region BooleanDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- eip
Id string - 弹性公网 IP 的 ID。
- instance
Id string - 实例 ID。
- new
Address stringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port number
- 端口号。
- upgrade
Region booleanDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- eip_
id str - 弹性公网 IP 的 ID。
- instance_
id str - 实例 ID。
- new_
address_ strprefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port int
- 端口号。
- upgrade_
region_ booldomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- eip
Id String - 弹性公网 IP 的 ID。
- instance
Id String - 实例 ID。
- new
Address StringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port Number
- 端口号。
- upgrade
Region BooleanDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointPublicAddress resource produces the following output properties:
- Addr
Type string - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- Address string
- IP 地址或者域名。
- Id string
- The provider-assigned unique ID for this managed resource.
- Vi
Pv6 string - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- Vip string
- 连接地址所对应的 IPv4 地址。
- Addr
Type string - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- Address string
- IP 地址或者域名。
- Id string
- The provider-assigned unique ID for this managed resource.
- Vi
Pv6 string - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- Vip string
- 连接地址所对应的 IPv4 地址。
- addr
Type String - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address String
- IP 地址或者域名。
- id String
- The provider-assigned unique ID for this managed resource.
- vi
Pv6 String - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip String
- 连接地址所对应的 IPv4 地址。
- addr
Type string - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address string
- IP 地址或者域名。
- id string
- The provider-assigned unique ID for this managed resource.
- vi
Pv6 string - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip string
- 连接地址所对应的 IPv4 地址。
- addr_
type str - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address str
- IP 地址或者域名。
- id str
- The provider-assigned unique ID for this managed resource.
- vi_
pv6 str - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip str
- 连接地址所对应的 IPv4 地址。
- addr
Type String - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address String
- IP 地址或者域名。
- id String
- The provider-assigned unique ID for this managed resource.
- vi
Pv6 String - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip String
- 连接地址所对应的 IPv4 地址。
Look up Existing EndpointPublicAddress Resource
Get an existing EndpointPublicAddress 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?: EndpointPublicAddressState, opts?: CustomResourceOptions): EndpointPublicAddress@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addr_type: Optional[str] = None,
address: Optional[str] = None,
eip_id: Optional[str] = None,
instance_id: Optional[str] = None,
new_address_prefix: Optional[str] = None,
port: Optional[int] = None,
upgrade_region_domain: Optional[bool] = None,
vi_pv6: Optional[str] = None,
vip: Optional[str] = None) -> EndpointPublicAddressfunc GetEndpointPublicAddress(ctx *Context, name string, id IDInput, state *EndpointPublicAddressState, opts ...ResourceOption) (*EndpointPublicAddress, error)public static EndpointPublicAddress Get(string name, Input<string> id, EndpointPublicAddressState? state, CustomResourceOptions? opts = null)public static EndpointPublicAddress get(String name, Output<String> id, EndpointPublicAddressState state, CustomResourceOptions options)resources: _: type: bytepluscc:redis:EndpointPublicAddress 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.
- Addr
Type string - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- Address string
- IP 地址或者域名。
- Eip
Id string - 弹性公网 IP 的 ID。
- Instance
Id string - 实例 ID。
- New
Address stringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- Port int
- 端口号。
- Upgrade
Region boolDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- Vi
Pv6 string - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- Vip string
- 连接地址所对应的 IPv4 地址。
- Addr
Type string - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- Address string
- IP 地址或者域名。
- Eip
Id string - 弹性公网 IP 的 ID。
- Instance
Id string - 实例 ID。
- New
Address stringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- Port int
- 端口号。
- Upgrade
Region boolDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- Vi
Pv6 string - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- Vip string
- 连接地址所对应的 IPv4 地址。
- addr
Type String - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address String
- IP 地址或者域名。
- eip
Id String - 弹性公网 IP 的 ID。
- instance
Id String - 实例 ID。
- new
Address StringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port Integer
- 端口号。
- upgrade
Region BooleanDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- vi
Pv6 String - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip String
- 连接地址所对应的 IPv4 地址。
- addr
Type string - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address string
- IP 地址或者域名。
- eip
Id string - 弹性公网 IP 的 ID。
- instance
Id string - 实例 ID。
- new
Address stringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port number
- 端口号。
- upgrade
Region booleanDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- vi
Pv6 string - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip string
- 连接地址所对应的 IPv4 地址。
- addr_
type str - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address str
- IP 地址或者域名。
- eip_
id str - 弹性公网 IP 的 ID。
- instance_
id str - 实例 ID。
- new_
address_ strprefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port int
- 端口号。
- upgrade_
region_ booldomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- vi_
pv6 str - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip str
- 连接地址所对应的 IPv4 地址。
- addr
Type String - 连接地址类型,取值范围如下:Private:私网连接地址。Public:公网连接地址。DirectLink:直连地址。说明仅启用分片集群的 Redis 实例申请了直连地址后,才会返回直连地址信息。关于连接地址的更多信息,请参见连接地址类型。
- address String
- IP 地址或者域名。
- eip
Id String - 弹性公网 IP 的 ID。
- instance
Id String - 实例 ID。
- new
Address StringPrefix - 修改后的连接地址前缀。连接地址前缀需同时满足如下要求:由小写字母、数字或连字符(-)组成。以字母开头,字母或数字结尾。长度为 8~53 个字符。修改后的连接地址需要保证全局唯一,不可以与火山引擎中任何地域下的任何连接地址重名。
- port Number
- 端口号。
- upgrade
Region BooleanDomain - 是否升级连接地址的域名后缀。取值范围如下:true:升级。false(默认值):不升级。注意当需要升级域名后缀(即 UpgradeRegionDomain 为 true)时,必须同时传入连接地址前缀信息(即 Address 参数不允许为空。)升级域名后缀后,原有的连接会断开,请及时修改客户端的连接信息,使用新的连接地址来连接实例。连接实例的具体方法,请参见连接实例。连接地址域名后缀升级后不支持再降级回原来的后缀,请谨慎操作。升级后的连接地址域名后缀会自动包含实例所属地域信息,旧的连接地址会保留 12 小时,12 小时保留期到期后会被自动释放。更多详情,请参见升级域名后缀。
- vi
Pv6 String - 连接地址所对应的 IPv6 地址。说明仅当实例使用了 IPv6 地址时才会返回该参数。仅私网地址和直连地址支持 IPv6 地址,公网地址不支持,因此当连接地址类型为公网地址(即 AddrType 为 Public)时,该参数值固定为空。
- vip String
- 连接地址所对应的 IPv4 地址。
Import
$ pulumi import bytepluscc:redis/endpointPublicAddress:EndpointPublicAddress example "instance_id|eip_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
