公网IP(Elastic IP Address,EIP)及其公网出口带宽,是火山引擎为云资源提供的可独立购买和持有的IP连通服务。公网IP支持直接绑定云服务器(包括ECS云服务器、EBM裸金属服务器、GPU云服务器),还支持绑定公网NAT网关、负载均衡、辅助网卡等组件,为云服务器提供公网互通能力。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
eipDemo:
type: bytepluscc:vpc:Eip
name: EipDemo
properties:
name: EipDemo
description: EipDemo description
isp: BGP
billingType: 2
bandwidth: 3
period: 5
projectName: default
bandwidthPackageId: bwp-ij5gz1lf66m874o8cth*****
tags:
- key: env
value: test
instanceId: i-ye48ymyy9s5i3z4*****
instanceType: EcsInstance
directMode: true
Create Eip Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Eip(name: string, args: EipArgs, opts?: CustomResourceOptions);@overload
def Eip(resource_name: str,
args: EipArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Eip(resource_name: str,
opts: Optional[ResourceOptions] = None,
billing_type: Optional[int] = None,
period: Optional[int] = None,
period_unit: Optional[int] = None,
description: Optional[str] = None,
bandwidth: Optional[int] = None,
instance_type: Optional[str] = None,
ip_address: Optional[str] = None,
ip_address_pool_id: Optional[str] = None,
isp: Optional[str] = None,
bandwidth_package_id: Optional[str] = None,
name: Optional[str] = None,
instance_id: Optional[str] = None,
private_ip_address: Optional[str] = None,
project_name: Optional[str] = None,
release_with_instance: Optional[bool] = None,
renew_period_times: Optional[int] = None,
renew_type: Optional[int] = None,
security_protection_instance_id: Optional[int] = None,
security_protection_types: Optional[Sequence[str]] = None,
tags: Optional[Sequence[EipTagArgs]] = None)func NewEip(ctx *Context, name string, args EipArgs, opts ...ResourceOption) (*Eip, error)public Eip(string name, EipArgs args, CustomResourceOptions? opts = null)type: bytepluscc:vpc:Eip
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 EipArgs
- 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 EipArgs
- 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 EipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EipArgs
- 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 eipResource = new Bytepluscc.Vpc.Eip("eipResource", new()
{
BillingType = 0,
Period = 0,
PeriodUnit = 0,
Description = "string",
Bandwidth = 0,
InstanceType = "string",
IpAddress = "string",
IpAddressPoolId = "string",
Isp = "string",
BandwidthPackageId = "string",
Name = "string",
InstanceId = "string",
PrivateIpAddress = "string",
ProjectName = "string",
ReleaseWithInstance = false,
RenewPeriodTimes = 0,
RenewType = 0,
SecurityProtectionInstanceId = 0,
SecurityProtectionTypes = new[]
{
"string",
},
Tags = new[]
{
new Bytepluscc.Vpc.Inputs.EipTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := vpc.NewEip(ctx, "eipResource", &vpc.EipArgs{
BillingType: pulumi.Int(0),
Period: pulumi.Int(0),
PeriodUnit: pulumi.Int(0),
Description: pulumi.String("string"),
Bandwidth: pulumi.Int(0),
InstanceType: pulumi.String("string"),
IpAddress: pulumi.String("string"),
IpAddressPoolId: pulumi.String("string"),
Isp: pulumi.String("string"),
BandwidthPackageId: pulumi.String("string"),
Name: pulumi.String("string"),
InstanceId: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
ProjectName: pulumi.String("string"),
ReleaseWithInstance: pulumi.Bool(false),
RenewPeriodTimes: pulumi.Int(0),
RenewType: pulumi.Int(0),
SecurityProtectionInstanceId: pulumi.Int(0),
SecurityProtectionTypes: pulumi.StringArray{
pulumi.String("string"),
},
Tags: vpc.EipTagArray{
&vpc.EipTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var eipResource = new Eip("eipResource", EipArgs.builder()
.billingType(0)
.period(0)
.periodUnit(0)
.description("string")
.bandwidth(0)
.instanceType("string")
.ipAddress("string")
.ipAddressPoolId("string")
.isp("string")
.bandwidthPackageId("string")
.name("string")
.instanceId("string")
.privateIpAddress("string")
.projectName("string")
.releaseWithInstance(false)
.renewPeriodTimes(0)
.renewType(0)
.securityProtectionInstanceId(0)
.securityProtectionTypes("string")
.tags(EipTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
eip_resource = bytepluscc.vpc.Eip("eipResource",
billing_type=0,
period=0,
period_unit=0,
description="string",
bandwidth=0,
instance_type="string",
ip_address="string",
ip_address_pool_id="string",
isp="string",
bandwidth_package_id="string",
name="string",
instance_id="string",
private_ip_address="string",
project_name="string",
release_with_instance=False,
renew_period_times=0,
renew_type=0,
security_protection_instance_id=0,
security_protection_types=["string"],
tags=[{
"key": "string",
"value": "string",
}])
const eipResource = new bytepluscc.vpc.Eip("eipResource", {
billingType: 0,
period: 0,
periodUnit: 0,
description: "string",
bandwidth: 0,
instanceType: "string",
ipAddress: "string",
ipAddressPoolId: "string",
isp: "string",
bandwidthPackageId: "string",
name: "string",
instanceId: "string",
privateIpAddress: "string",
projectName: "string",
releaseWithInstance: false,
renewPeriodTimes: 0,
renewType: 0,
securityProtectionInstanceId: 0,
securityProtectionTypes: ["string"],
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:vpc:Eip
properties:
bandwidth: 0
bandwidthPackageId: string
billingType: 0
description: string
instanceId: string
instanceType: string
ipAddress: string
ipAddressPoolId: string
isp: string
name: string
period: 0
periodUnit: 0
privateIpAddress: string
projectName: string
releaseWithInstance: false
renewPeriodTimes: 0
renewType: 0
securityProtectionInstanceId: 0
securityProtectionTypes:
- string
tags:
- key: string
value: string
Eip 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 Eip resource accepts the following input properties:
- Billing
Type int - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- Bandwidth int
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- Bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- Description string
- 公网IP的描述信息。
- Instance
Id string - 当前绑定的实例ID。
- Instance
Type string - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- Ip
Address string - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- Ip
Address stringPool Id - IP地址池的ID。
- Isp string
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- Name string
- 公网IP的名称。
- Period int
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- Period
Unit int - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- Private
Ip stringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- Project
Name string - 公网IP所属项目的名称。
- Release
With boolInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- Renew
Period intTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- Renew
Type int - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- Security
Protection intInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- Security
Protection List<string>Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
-
List<Byteplus.
Eip Tag>
- Billing
Type int - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- Bandwidth int
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- Bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- Description string
- 公网IP的描述信息。
- Instance
Id string - 当前绑定的实例ID。
- Instance
Type string - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- Ip
Address string - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- Ip
Address stringPool Id - IP地址池的ID。
- Isp string
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- Name string
- 公网IP的名称。
- Period int
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- Period
Unit int - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- Private
Ip stringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- Project
Name string - 公网IP所属项目的名称。
- Release
With boolInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- Renew
Period intTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- Renew
Type int - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- Security
Protection intInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- Security
Protection []stringTypes - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
-
[]Eip
Tag Args
- billing
Type Integer - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- bandwidth Integer
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth
Package StringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- description String
- 公网IP的描述信息。
- instance
Id String - 当前绑定的实例ID。
- instance
Type String - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip
Address String - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip
Address StringPool Id - IP地址池的ID。
- isp String
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- name String
- 公网IP的名称。
- period Integer
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period
Unit Integer - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private
Ip StringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project
Name String - 公网IP所属项目的名称。
- release
With BooleanInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew
Period IntegerTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew
Type Integer - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security
Protection IntegerInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security
Protection List<String>Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
-
List<Eip
Tag>
- billing
Type number - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- bandwidth number
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- description string
- 公网IP的描述信息。
- instance
Id string - 当前绑定的实例ID。
- instance
Type string - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip
Address string - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip
Address stringPool Id - IP地址池的ID。
- isp string
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- name string
- 公网IP的名称。
- period number
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period
Unit number - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private
Ip stringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project
Name string - 公网IP所属项目的名称。
- release
With booleanInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew
Period numberTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew
Type number - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security
Protection numberInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security
Protection string[]Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
-
Eip
Tag[]
- billing_
type int - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- bandwidth int
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth_
package_ strid - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- description str
- 公网IP的描述信息。
- instance_
id str - 当前绑定的实例ID。
- instance_
type str - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip_
address str - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip_
address_ strpool_ id - IP地址池的ID。
- isp str
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- name str
- 公网IP的名称。
- period int
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period_
unit int - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private_
ip_ straddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project_
name str - 公网IP所属项目的名称。
- release_
with_ boolinstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew_
period_ inttimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew_
type int - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security_
protection_ intinstance_ id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security_
protection_ Sequence[str]types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
-
Sequence[Eip
Tag Args]
- billing
Type Number - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- bandwidth Number
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth
Package StringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- description String
- 公网IP的描述信息。
- instance
Id String - 当前绑定的实例ID。
- instance
Type String - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip
Address String - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip
Address StringPool Id - IP地址池的ID。
- isp String
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- name String
- 公网IP的名称。
- period Number
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period
Unit Number - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private
Ip StringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project
Name String - 公网IP所属项目的名称。
- release
With BooleanInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew
Period NumberTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew
Type Number - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security
Protection NumberInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security
Protection List<String>Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Eip resource produces the following output properties:
- Allocation
Id string - 公网IP的ID。
- Business
Status string - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
Time string - 公网IP的创建时间。
- Deleted
Time string - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- Direct
Mode bool - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- Eip
Address string - 公网IP地址。
- Expired
Time string - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Blocked bool - 是否被封禁。true:是。false:否。
- Lock
Reason string - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- Service
Managed bool - 是否由服务管理
- Status string
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- Updated
Time string - 更新公网IP的时间。
- Allocation
Id string - 公网IP的ID。
- Business
Status string - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
Time string - 公网IP的创建时间。
- Deleted
Time string - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- Direct
Mode bool - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- Eip
Address string - 公网IP地址。
- Expired
Time string - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Blocked bool - 是否被封禁。true:是。false:否。
- Lock
Reason string - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- Service
Managed bool - 是否由服务管理
- Status string
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- Updated
Time string - 更新公网IP的时间。
- allocation
Id String - 公网IP的ID。
- business
Status String - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
Time String - 公网IP的创建时间。
- deleted
Time String - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- direct
Mode Boolean - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip
Address String - 公网IP地址。
- expired
Time String - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- id String
- The provider-assigned unique ID for this managed resource.
- is
Blocked Boolean - 是否被封禁。true:是。false:否。
- lock
Reason String - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- service
Managed Boolean - 是否由服务管理
- status String
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- updated
Time String - 更新公网IP的时间。
- allocation
Id string - 公网IP的ID。
- business
Status string - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
Time string - 公网IP的创建时间。
- deleted
Time string - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- direct
Mode boolean - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip
Address string - 公网IP地址。
- expired
Time string - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- id string
- The provider-assigned unique ID for this managed resource.
- is
Blocked boolean - 是否被封禁。true:是。false:否。
- lock
Reason string - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- service
Managed boolean - 是否由服务管理
- status string
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- updated
Time string - 更新公网IP的时间。
- allocation_
id str - 公网IP的ID。
- business_
status str - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created_
time str - 公网IP的创建时间。
- deleted_
time str - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- direct_
mode bool - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip_
address str - 公网IP地址。
- expired_
time str - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- id str
- The provider-assigned unique ID for this managed resource.
- is_
blocked bool - 是否被封禁。true:是。false:否。
- lock_
reason str - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- overdue_
time str - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- service_
managed bool - 是否由服务管理
- status str
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- updated_
time str - 更新公网IP的时间。
- allocation
Id String - 公网IP的ID。
- business
Status String - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
Time String - 公网IP的创建时间。
- deleted
Time String - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- direct
Mode Boolean - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip
Address String - 公网IP地址。
- expired
Time String - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- id String
- The provider-assigned unique ID for this managed resource.
- is
Blocked Boolean - 是否被封禁。true:是。false:否。
- lock
Reason String - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- service
Managed Boolean - 是否由服务管理
- status String
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- updated
Time String - 更新公网IP的时间。
Look up Existing Eip Resource
Get an existing Eip 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?: EipState, opts?: CustomResourceOptions): Eip@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_id: Optional[str] = None,
bandwidth: Optional[int] = None,
bandwidth_package_id: Optional[str] = None,
billing_type: Optional[int] = None,
business_status: Optional[str] = None,
created_time: Optional[str] = None,
deleted_time: Optional[str] = None,
description: Optional[str] = None,
direct_mode: Optional[bool] = None,
eip_address: Optional[str] = None,
expired_time: Optional[str] = None,
instance_id: Optional[str] = None,
instance_type: Optional[str] = None,
ip_address: Optional[str] = None,
ip_address_pool_id: Optional[str] = None,
is_blocked: Optional[bool] = None,
isp: Optional[str] = None,
lock_reason: Optional[str] = None,
name: Optional[str] = None,
overdue_time: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[int] = None,
private_ip_address: Optional[str] = None,
project_name: Optional[str] = None,
release_with_instance: Optional[bool] = None,
renew_period_times: Optional[int] = None,
renew_type: Optional[int] = None,
security_protection_instance_id: Optional[int] = None,
security_protection_types: Optional[Sequence[str]] = None,
service_managed: Optional[bool] = None,
status: Optional[str] = None,
tags: Optional[Sequence[EipTagArgs]] = None,
updated_time: Optional[str] = None) -> Eipfunc GetEip(ctx *Context, name string, id IDInput, state *EipState, opts ...ResourceOption) (*Eip, error)public static Eip Get(string name, Input<string> id, EipState? state, CustomResourceOptions? opts = null)public static Eip get(String name, Output<String> id, EipState state, CustomResourceOptions options)resources: _: type: bytepluscc:vpc:Eip 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.
- Allocation
Id string - 公网IP的ID。
- Bandwidth int
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- Bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- Billing
Type int - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- Business
Status string - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
Time string - 公网IP的创建时间。
- Deleted
Time string - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- Description string
- 公网IP的描述信息。
- Direct
Mode bool - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- Eip
Address string - 公网IP地址。
- Expired
Time string - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- Instance
Id string - 当前绑定的实例ID。
- Instance
Type string - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- Ip
Address string - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- Ip
Address stringPool Id - IP地址池的ID。
- Is
Blocked bool - 是否被封禁。true:是。false:否。
- Isp string
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- Lock
Reason string - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Name string
- 公网IP的名称。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- Period int
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- Period
Unit int - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- Private
Ip stringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- Project
Name string - 公网IP所属项目的名称。
- Release
With boolInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- Renew
Period intTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- Renew
Type int - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- Security
Protection intInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- Security
Protection List<string>Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- Service
Managed bool - 是否由服务管理
- Status string
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
-
List<Byteplus.
Eip Tag> - Updated
Time string - 更新公网IP的时间。
- Allocation
Id string - 公网IP的ID。
- Bandwidth int
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- Bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- Billing
Type int - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- Business
Status string - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- Created
Time string - 公网IP的创建时间。
- Deleted
Time string - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- Description string
- 公网IP的描述信息。
- Direct
Mode bool - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- Eip
Address string - 公网IP地址。
- Expired
Time string - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- Instance
Id string - 当前绑定的实例ID。
- Instance
Type string - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- Ip
Address string - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- Ip
Address stringPool Id - IP地址池的ID。
- Is
Blocked bool - 是否被封禁。true:是。false:否。
- Isp string
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- Lock
Reason string - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- Name string
- 公网IP的名称。
- Overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- Period int
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- Period
Unit int - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- Private
Ip stringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- Project
Name string - 公网IP所属项目的名称。
- Release
With boolInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- Renew
Period intTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- Renew
Type int - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- Security
Protection intInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- Security
Protection []stringTypes - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- Service
Managed bool - 是否由服务管理
- Status string
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
-
[]Eip
Tag Args - Updated
Time string - 更新公网IP的时间。
- allocation
Id String - 公网IP的ID。
- bandwidth Integer
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth
Package StringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- billing
Type Integer - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- business
Status String - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
Time String - 公网IP的创建时间。
- deleted
Time String - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- description String
- 公网IP的描述信息。
- direct
Mode Boolean - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip
Address String - 公网IP地址。
- expired
Time String - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- instance
Id String - 当前绑定的实例ID。
- instance
Type String - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip
Address String - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip
Address StringPool Id - IP地址池的ID。
- is
Blocked Boolean - 是否被封禁。true:是。false:否。
- isp String
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- lock
Reason String - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- name String
- 公网IP的名称。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- period Integer
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period
Unit Integer - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private
Ip StringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project
Name String - 公网IP所属项目的名称。
- release
With BooleanInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew
Period IntegerTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew
Type Integer - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security
Protection IntegerInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security
Protection List<String>Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- service
Managed Boolean - 是否由服务管理
- status String
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
-
List<Eip
Tag> - updated
Time String - 更新公网IP的时间。
- allocation
Id string - 公网IP的ID。
- bandwidth number
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth
Package stringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- billing
Type number - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- business
Status string - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
Time string - 公网IP的创建时间。
- deleted
Time string - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- description string
- 公网IP的描述信息。
- direct
Mode boolean - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip
Address string - 公网IP地址。
- expired
Time string - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- instance
Id string - 当前绑定的实例ID。
- instance
Type string - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip
Address string - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip
Address stringPool Id - IP地址池的ID。
- is
Blocked boolean - 是否被封禁。true:是。false:否。
- isp string
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- lock
Reason string - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- name string
- 公网IP的名称。
- overdue
Time string - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- period number
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period
Unit number - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private
Ip stringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project
Name string - 公网IP所属项目的名称。
- release
With booleanInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew
Period numberTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew
Type number - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security
Protection numberInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security
Protection string[]Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- service
Managed boolean - 是否由服务管理
- status string
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
-
Eip
Tag[] - updated
Time string - 更新公网IP的时间。
- allocation_
id str - 公网IP的ID。
- bandwidth int
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth_
package_ strid - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- billing_
type int - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- business_
status str - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created_
time str - 公网IP的创建时间。
- deleted_
time str - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- description str
- 公网IP的描述信息。
- direct_
mode bool - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip_
address str - 公网IP地址。
- expired_
time str - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- instance_
id str - 当前绑定的实例ID。
- instance_
type str - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip_
address str - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip_
address_ strpool_ id - IP地址池的ID。
- is_
blocked bool - 是否被封禁。true:是。false:否。
- isp str
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- lock_
reason str - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- name str
- 公网IP的名称。
- overdue_
time str - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- period int
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period_
unit int - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private_
ip_ straddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project_
name str - 公网IP所属项目的名称。
- release_
with_ boolinstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew_
period_ inttimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew_
type int - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security_
protection_ intinstance_ id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security_
protection_ Sequence[str]types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- service_
managed bool - 是否由服务管理
- status str
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
-
Sequence[Eip
Tag Args] - updated_
time str - 更新公网IP的时间。
- allocation
Id String - 公网IP的ID。
- bandwidth Number
- 公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
- bandwidth
Package StringId - 共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
- billing
Type Number - 公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
- business
Status String - 公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
- created
Time String - 公网IP的创建时间。
- deleted
Time String - 预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
- description String
- 公网IP的描述信息。
- direct
Mode Boolean - 绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
- eip
Address String - 公网IP地址。
- expired
Time String - 公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
- instance
Id String - 当前绑定的实例ID。
- instance
Type String - 当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
- ip
Address String - 申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
- ip
Address StringPool Id - IP地址池的ID。
- is
Blocked Boolean - 是否被封禁。true:是。false:否。
- isp String
- 线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
- lock
Reason String - 公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
- name String
- 公网IP的名称。
- overdue
Time String - 资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
- period Number
- 代表购买包年包月公网IP的时长时,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。代表临时升配的时长时:单位为小时,取值范围:1~720。
- period
Unit Number - 购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
- private
Ip StringAddress - 要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
- project
Name String - 公网IP所属项目的名称。
- release
With BooleanInstance - 是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
- renew
Period NumberTimes - 自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
- renew
Type Number - 包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
- security
Protection NumberInstance Id - DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
- security
Protection List<String>Types - 防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
- service
Managed Boolean - 是否由服务管理
- status String
- 公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
- List<Property Map>
- updated
Time String - 更新公网IP的时间。
Supporting Types
EipTag, EipTagArgs
Import
$ pulumi import bytepluscc:vpc/eip:Eip example "allocation_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.
