1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. vpc
  5. Eip
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

volcenginecc.vpc.Eip

Deploy with Pulumi
volcenginecc logo
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

    公网IP(Elastic IP Address,EIP)及其公网出口带宽,是火山引擎为云资源提供的可独立购买和持有的IP连通服务。公网IP支持直接绑定云服务器(包括ECS云服务器、EBM裸金属服务器、GPU云服务器),还支持绑定公网NAT网关、负载均衡、辅助网卡等组件,为云服务器提供公网互通能力。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const eipDemo = new volcenginecc.vpc.Eip("EipDemo", {
        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,
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    eip_demo = volcenginecc.vpc.Eip("EipDemo",
        name="EipDemo",
        description="EipDemo description",
        isp="BGP",
        billing_type=2,
        bandwidth=3,
        period=5,
        project_name="default",
        bandwidth_package_id="bwp-ij5gz1lf66m874o8cth*****",
        tags=[{
            "key": "env",
            "value": "test",
        }],
        instance_id="i-ye48ymyy9s5i3z4*****",
        instance_type="EcsInstance",
        direct_mode=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpc.NewEip(ctx, "EipDemo", &vpc.EipArgs{
    			Name:               pulumi.String("EipDemo"),
    			Description:        pulumi.String("EipDemo description"),
    			Isp:                pulumi.String("BGP"),
    			BillingType:        pulumi.Int(2),
    			Bandwidth:          pulumi.Int(3),
    			Period:             pulumi.Int(5),
    			ProjectName:        pulumi.String("default"),
    			BandwidthPackageId: pulumi.String("bwp-ij5gz1lf66m874o8cth*****"),
    			Tags: vpc.EipTagArray{
    				&vpc.EipTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    			InstanceId:   pulumi.String("i-ye48ymyy9s5i3z4*****"),
    			InstanceType: pulumi.String("EcsInstance"),
    			DirectMode:   pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var eipDemo = new Volcenginecc.Vpc.Eip("EipDemo", new()
        {
            Name = "EipDemo",
            Description = "EipDemo description",
            Isp = "BGP",
            BillingType = 2,
            Bandwidth = 3,
            Period = 5,
            ProjectName = "default",
            BandwidthPackageId = "bwp-ij5gz1lf66m874o8cth*****",
            Tags = new[]
            {
                new Volcenginecc.Vpc.Inputs.EipTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
            InstanceId = "i-ye48ymyy9s5i3z4*****",
            InstanceType = "EcsInstance",
            DirectMode = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.vpc.Eip;
    import com.volcengine.volcenginecc.vpc.EipArgs;
    import com.pulumi.volcenginecc.vpc.inputs.EipTagArgs;
    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 eipDemo = new Eip("eipDemo", EipArgs.builder()
                .name("EipDemo")
                .description("EipDemo description")
                .isp("BGP")
                .billingType(2)
                .bandwidth(3)
                .period(5)
                .projectName("default")
                .bandwidthPackageId("bwp-ij5gz1lf66m874o8cth*****")
                .tags(EipTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .instanceId("i-ye48ymyy9s5i3z4*****")
                .instanceType("EcsInstance")
                .directMode(true)
                .build());
    
        }
    }
    
    resources:
      eipDemo:
        type: volcenginecc: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,
            name: Optional[str] = None,
            period_unit: Optional[int] = None,
            description: Optional[str] = None,
            direct_mode: Optional[bool] = None,
            instance_id: Optional[str] = None,
            instance_type: Optional[str] = None,
            ip_address: Optional[str] = None,
            ip_address_pool_id: Optional[str] = None,
            isp: Optional[str] = None,
            bandwidth: Optional[int] = None,
            bandwidth_package_id: Optional[str] = None,
            private_ip_address: Optional[str] = None,
            period: Optional[int] = 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,
            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)
    public Eip(String name, EipArgs args)
    public Eip(String name, EipArgs args, CustomResourceOptions options)
    
    type: volcenginecc: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 Volcenginecc.Vpc.Eip("eipResource", new()
    {
        BillingType = 0,
        Name = "string",
        PeriodUnit = 0,
        Description = "string",
        DirectMode = false,
        InstanceId = "string",
        InstanceType = "string",
        IpAddress = "string",
        IpAddressPoolId = "string",
        Isp = "string",
        Bandwidth = 0,
        BandwidthPackageId = "string",
        PrivateIpAddress = "string",
        Period = 0,
        ProjectName = "string",
        ReleaseWithInstance = false,
        RenewPeriodTimes = 0,
        RenewType = 0,
        SecurityProtectionInstanceId = 0,
        SecurityProtectionTypes = new[]
        {
            "string",
        },
        ServiceManaged = false,
        Tags = new[]
        {
            new Volcenginecc.Vpc.Inputs.EipTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vpc.NewEip(ctx, "eipResource", &vpc.EipArgs{
    	BillingType:                  pulumi.Int(0),
    	Name:                         pulumi.String("string"),
    	PeriodUnit:                   pulumi.Int(0),
    	Description:                  pulumi.String("string"),
    	DirectMode:                   pulumi.Bool(false),
    	InstanceId:                   pulumi.String("string"),
    	InstanceType:                 pulumi.String("string"),
    	IpAddress:                    pulumi.String("string"),
    	IpAddressPoolId:              pulumi.String("string"),
    	Isp:                          pulumi.String("string"),
    	Bandwidth:                    pulumi.Int(0),
    	BandwidthPackageId:           pulumi.String("string"),
    	PrivateIpAddress:             pulumi.String("string"),
    	Period:                       pulumi.Int(0),
    	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"),
    	},
    	ServiceManaged: pulumi.Bool(false),
    	Tags: vpc.EipTagArray{
    		&vpc.EipTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var eipResource = new Eip("eipResource", EipArgs.builder()
        .billingType(0)
        .name("string")
        .periodUnit(0)
        .description("string")
        .directMode(false)
        .instanceId("string")
        .instanceType("string")
        .ipAddress("string")
        .ipAddressPoolId("string")
        .isp("string")
        .bandwidth(0)
        .bandwidthPackageId("string")
        .privateIpAddress("string")
        .period(0)
        .projectName("string")
        .releaseWithInstance(false)
        .renewPeriodTimes(0)
        .renewType(0)
        .securityProtectionInstanceId(0)
        .securityProtectionTypes("string")
        .serviceManaged(false)
        .tags(EipTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    eip_resource = volcenginecc.vpc.Eip("eipResource",
        billing_type=0,
        name="string",
        period_unit=0,
        description="string",
        direct_mode=False,
        instance_id="string",
        instance_type="string",
        ip_address="string",
        ip_address_pool_id="string",
        isp="string",
        bandwidth=0,
        bandwidth_package_id="string",
        private_ip_address="string",
        period=0,
        project_name="string",
        release_with_instance=False,
        renew_period_times=0,
        renew_type=0,
        security_protection_instance_id=0,
        security_protection_types=["string"],
        service_managed=False,
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const eipResource = new volcenginecc.vpc.Eip("eipResource", {
        billingType: 0,
        name: "string",
        periodUnit: 0,
        description: "string",
        directMode: false,
        instanceId: "string",
        instanceType: "string",
        ipAddress: "string",
        ipAddressPoolId: "string",
        isp: "string",
        bandwidth: 0,
        bandwidthPackageId: "string",
        privateIpAddress: "string",
        period: 0,
        projectName: "string",
        releaseWithInstance: false,
        renewPeriodTimes: 0,
        renewType: 0,
        securityProtectionInstanceId: 0,
        securityProtectionTypes: ["string"],
        serviceManaged: false,
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcenginecc:vpc:Eip
    properties:
        bandwidth: 0
        bandwidthPackageId: string
        billingType: 0
        description: string
        directMode: false
        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
        serviceManaged: false
        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:

    BillingType int
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    Bandwidth int
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    BandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    Description string
    公网IP的描述信息。
    DirectMode bool
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    InstanceId string
    当前绑定的实例ID。
    InstanceType string
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    IpAddress string
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    IpAddressPoolId string
    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。
    PeriodUnit int
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    PrivateIpAddress string
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    ProjectName string
    公网IP所属项目的名称。
    ReleaseWithInstance bool
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    RenewPeriodTimes int
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    RenewType int
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    SecurityProtectionInstanceId int
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    SecurityProtectionTypes List<string>
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    ServiceManaged bool
    是否由服务管理
    Tags List<Volcengine.EipTag>
    BillingType int
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    Bandwidth int
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    BandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    Description string
    公网IP的描述信息。
    DirectMode bool
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    InstanceId string
    当前绑定的实例ID。
    InstanceType string
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    IpAddress string
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    IpAddressPoolId string
    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。
    PeriodUnit int
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    PrivateIpAddress string
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    ProjectName string
    公网IP所属项目的名称。
    ReleaseWithInstance bool
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    RenewPeriodTimes int
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    RenewType int
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    SecurityProtectionInstanceId int
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    SecurityProtectionTypes []string
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    ServiceManaged bool
    是否由服务管理
    Tags []EipTagArgs
    billingType Integer
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    bandwidth Integer
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    bandwidthPackageId String
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    description String
    公网IP的描述信息。
    directMode Boolean
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    instanceId String
    当前绑定的实例ID。
    instanceType String
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ipAddress String
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ipAddressPoolId String
    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。
    periodUnit Integer
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    privateIpAddress String
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    projectName String
    公网IP所属项目的名称。
    releaseWithInstance Boolean
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renewPeriodTimes Integer
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renewType Integer
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    securityProtectionInstanceId Integer
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    securityProtectionTypes List<String>
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    serviceManaged Boolean
    是否由服务管理
    tags List<EipTag>
    billingType number
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    bandwidth number
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    bandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    description string
    公网IP的描述信息。
    directMode boolean
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    instanceId string
    当前绑定的实例ID。
    instanceType string
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ipAddress string
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ipAddressPoolId string
    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。
    periodUnit number
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    privateIpAddress string
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    projectName string
    公网IP所属项目的名称。
    releaseWithInstance boolean
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renewPeriodTimes number
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renewType number
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    securityProtectionInstanceId number
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    securityProtectionTypes string[]
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    serviceManaged boolean
    是否由服务管理
    tags EipTag[]
    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_id str
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    description str
    公网IP的描述信息。
    direct_mode bool
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    instance_id str
    当前绑定的实例ID。
    instance_type str
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ip_address str
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ip_address_pool_id str
    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。
    period_unit int
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    private_ip_address str
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    project_name str
    公网IP所属项目的名称。
    release_with_instance bool
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renew_period_times int
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renew_type int
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    security_protection_instance_id int
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    security_protection_types Sequence[str]
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    service_managed bool
    是否由服务管理
    tags Sequence[EipTagArgs]
    billingType Number
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    bandwidth Number
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    bandwidthPackageId String
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    description String
    公网IP的描述信息。
    directMode Boolean
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    instanceId String
    当前绑定的实例ID。
    instanceType String
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ipAddress String
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ipAddressPoolId String
    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。
    periodUnit Number
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    privateIpAddress String
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    projectName String
    公网IP所属项目的名称。
    releaseWithInstance Boolean
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renewPeriodTimes Number
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renewType Number
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    securityProtectionInstanceId Number
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    securityProtectionTypes List<String>
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    serviceManaged Boolean
    是否由服务管理
    tags List<Property Map>

    Outputs

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

    AllocationId string
    公网IP的ID。
    BusinessStatus string
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedTime string
    公网IP的创建时间。
    DeletedTime string
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    EipAddress string
    公网IP地址。
    ExpiredTime string
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    Id string
    The provider-assigned unique ID for this managed resource.
    IsBlocked bool
    是否被封禁。true:是。false:否。
    LockReason string
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    Status string
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    UpdatedTime string
    更新公网IP的时间。
    AllocationId string
    公网IP的ID。
    BusinessStatus string
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedTime string
    公网IP的创建时间。
    DeletedTime string
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    EipAddress string
    公网IP地址。
    ExpiredTime string
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    Id string
    The provider-assigned unique ID for this managed resource.
    IsBlocked bool
    是否被封禁。true:是。false:否。
    LockReason string
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    Status string
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    UpdatedTime string
    更新公网IP的时间。
    allocationId String
    公网IP的ID。
    businessStatus String
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdTime String
    公网IP的创建时间。
    deletedTime String
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    eipAddress String
    公网IP地址。
    expiredTime String
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    id String
    The provider-assigned unique ID for this managed resource.
    isBlocked Boolean
    是否被封禁。true:是。false:否。
    lockReason String
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    status String
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    updatedTime String
    更新公网IP的时间。
    allocationId string
    公网IP的ID。
    businessStatus string
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdTime string
    公网IP的创建时间。
    deletedTime string
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    eipAddress string
    公网IP地址。
    expiredTime string
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    id string
    The provider-assigned unique ID for this managed resource.
    isBlocked boolean
    是否被封禁。true:是。false:否。
    lockReason string
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    overdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    status string
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    updatedTime string
    更新公网IP的时间。
    allocation_id str
    公网IP的ID。
    business_status str
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    created_time str
    公网IP的创建时间。
    deleted_time str
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    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
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    status str
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    updated_time str
    更新公网IP的时间。
    allocationId String
    公网IP的ID。
    businessStatus String
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdTime String
    公网IP的创建时间。
    deletedTime String
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    eipAddress String
    公网IP地址。
    expiredTime String
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    id String
    The provider-assigned unique ID for this managed resource.
    isBlocked Boolean
    是否被封禁。true:是。false:否。
    lockReason String
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    status String
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    updatedTime 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) -> Eip
    func 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: volcenginecc: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.
    The following state arguments are supported:
    AllocationId string
    公网IP的ID。
    Bandwidth int
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    BandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    BillingType int
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    BusinessStatus string
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedTime string
    公网IP的创建时间。
    DeletedTime string
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    Description string
    公网IP的描述信息。
    DirectMode bool
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    EipAddress string
    公网IP地址。
    ExpiredTime string
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    InstanceId string
    当前绑定的实例ID。
    InstanceType string
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    IpAddress string
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    IpAddressPoolId string
    IP地址池的ID。
    IsBlocked bool
    是否被封禁。true:是。false:否。
    Isp string
    线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
    LockReason string
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    Name string
    公网IP的名称。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    Period int
    购买包年包月公网IP的时长,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。
    PeriodUnit int
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    PrivateIpAddress string
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    ProjectName string
    公网IP所属项目的名称。
    ReleaseWithInstance bool
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    RenewPeriodTimes int
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    RenewType int
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    SecurityProtectionInstanceId int
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    SecurityProtectionTypes List<string>
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    ServiceManaged bool
    是否由服务管理
    Status string
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    Tags List<Volcengine.EipTag>
    UpdatedTime string
    更新公网IP的时间。
    AllocationId string
    公网IP的ID。
    Bandwidth int
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    BandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    BillingType int
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    BusinessStatus string
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    CreatedTime string
    公网IP的创建时间。
    DeletedTime string
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    Description string
    公网IP的描述信息。
    DirectMode bool
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    EipAddress string
    公网IP地址。
    ExpiredTime string
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    InstanceId string
    当前绑定的实例ID。
    InstanceType string
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    IpAddress string
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    IpAddressPoolId string
    IP地址池的ID。
    IsBlocked bool
    是否被封禁。true:是。false:否。
    Isp string
    线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
    LockReason string
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    Name string
    公网IP的名称。
    OverdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    Period int
    购买包年包月公网IP的时长,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。
    PeriodUnit int
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    PrivateIpAddress string
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    ProjectName string
    公网IP所属项目的名称。
    ReleaseWithInstance bool
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    RenewPeriodTimes int
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    RenewType int
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    SecurityProtectionInstanceId int
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    SecurityProtectionTypes []string
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    ServiceManaged bool
    是否由服务管理
    Status string
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    Tags []EipTagArgs
    UpdatedTime string
    更新公网IP的时间。
    allocationId String
    公网IP的ID。
    bandwidth Integer
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    bandwidthPackageId String
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    billingType Integer
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    businessStatus String
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdTime String
    公网IP的创建时间。
    deletedTime String
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    description String
    公网IP的描述信息。
    directMode Boolean
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    eipAddress String
    公网IP地址。
    expiredTime String
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    instanceId String
    当前绑定的实例ID。
    instanceType String
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ipAddress String
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ipAddressPoolId String
    IP地址池的ID。
    isBlocked Boolean
    是否被封禁。true:是。false:否。
    isp String
    线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
    lockReason String
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    name String
    公网IP的名称。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    period Integer
    购买包年包月公网IP的时长,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。
    periodUnit Integer
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    privateIpAddress String
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    projectName String
    公网IP所属项目的名称。
    releaseWithInstance Boolean
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renewPeriodTimes Integer
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renewType Integer
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    securityProtectionInstanceId Integer
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    securityProtectionTypes List<String>
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    serviceManaged Boolean
    是否由服务管理
    status String
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    tags List<EipTag>
    updatedTime String
    更新公网IP的时间。
    allocationId string
    公网IP的ID。
    bandwidth number
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    bandwidthPackageId string
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    billingType number
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    businessStatus string
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdTime string
    公网IP的创建时间。
    deletedTime string
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    description string
    公网IP的描述信息。
    directMode boolean
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    eipAddress string
    公网IP地址。
    expiredTime string
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    instanceId string
    当前绑定的实例ID。
    instanceType string
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ipAddress string
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ipAddressPoolId string
    IP地址池的ID。
    isBlocked boolean
    是否被封禁。true:是。false:否。
    isp string
    线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
    lockReason string
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    name string
    公网IP的名称。
    overdueTime string
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    period number
    购买包年包月公网IP的时长,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。
    periodUnit number
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    privateIpAddress string
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    projectName string
    公网IP所属项目的名称。
    releaseWithInstance boolean
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renewPeriodTimes number
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renewType number
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    securityProtectionInstanceId number
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    securityProtectionTypes string[]
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    serviceManaged boolean
    是否由服务管理
    status string
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    tags EipTag[]
    updatedTime 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_id str
    共享带宽包的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_pool_id str
    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。
    period_unit int
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    private_ip_address str
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    project_name str
    公网IP所属项目的名称。
    release_with_instance bool
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renew_period_times int
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renew_type int
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    security_protection_instance_id int
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    security_protection_types Sequence[str]
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    service_managed bool
    是否由服务管理
    status str
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    tags Sequence[EipTagArgs]
    updated_time str
    更新公网IP的时间。
    allocationId String
    公网IP的ID。
    bandwidth Number
    公网IP的带宽上限,默认为“1”,单位:Mbps,BillingType传入1:取值范围1 ~ 500。BillingType传入2:取值范围1 ~ 500。BillingType传入3:取值范围1 ~ 200。
    bandwidthPackageId String
    共享带宽包的ID,表示将公网IP加入到共享带宽包。公网IP加入到共享带宽包必须同时满足如下条件:二者的安全防护类型相同。二者的地域相同。公网IP的计费方式必须是按量计费。共享带宽包为IPv4类型。
    billingType Number
    公网IP的计费方式。取值如下:1:包年包月。2:按量计费-按带宽上限计费。3:按量计费-按实际流量计费。
    businessStatus String
    公网IP是否被锁定。Normal: 正常。FinancialLocked: 被锁定。
    createdTime String
    公网IP的创建时间。
    deletedTime String
    预期资源强制回收时间。包年包月公网IP,此参数有返回值。按量计费公网IP,仅欠费冻结时,此参数有返回值。
    description String
    公网IP的描述信息。
    directMode Boolean
    绑定公网IP时是否启用直通模式。请严格按照以下枚举值的大小写输入,不要传入其他取值。false(默认):不使用直通模式。true:使用直通模式。
    eipAddress String
    公网IP地址。
    expiredTime String
    公网IP的到期时间。包年包月,返回值为到期时间。按量计费,返回值为空。
    instanceId String
    当前绑定的实例ID。
    instanceType String
    当前绑定的实例类型。Nat:公网NAT网关。NetworkInterface: 弹性网卡。ClbInstance: 负载均衡。EcsInstance:云服务器。HaVip:高可用虚拟IP。
    ipAddress String
    申请申请指定的公网IP地址。仅支持填写使用后释放的IP地址,不填则表示自动分配。指定的公网IP地址
    ipAddressPoolId String
    IP地址池的ID。
    isBlocked Boolean
    是否被封禁。true:是。false:否。
    isp String
    线路类型。BGP:BGP(多线)。ChinaMobile:中国移动静态单线。ChinaTelecom:中国电信静态单线。ChinaUnicom:中国联通静态单线。SingleLineBGP:BGP单线。FusionBGP:融合BGP。ChinaMobileValue:中国移动惠选型静态单线。ChinaUnicomValue:中国联通惠选型静态单线。ChinaTelecom_Value:中国电信惠选型静态单线。
    lockReason String
    公网IP被锁定的原因。financial: 因欠费被锁定。unlock: 欠费关停后充值恢复过程中。空值 : 没有被锁定。
    name String
    公网IP的名称。
    overdueTime String
    资源冻结时间。仅当资源因为欠费冻结,此参数才会有返回值。
    period Number
    购买包年包月公网IP的时长,默认为“1”。当PeriodUnit传入1,Period取值范围:1~9、12、24、36、48、60。当PeriodUnit传入2,Period取值范围:1~5。
    periodUnit Number
    购买包年包月公网IP时长的单位。取值如下:1(默认值):月。2 :年。
    privateIpAddress String
    要绑定公网IP的实例的私网IP地址。只支持传入云服务ECS主网卡的私网IP地址和辅助网卡IP地址。若不填写:InstanceType传入EcsInstance,则绑定云服务器ECS主网卡的主私网IP地址。InstanceType传入NetworkInterface,则绑定辅助网卡主私网IP地址。
    projectName String
    公网IP所属项目的名称。
    releaseWithInstance Boolean
    是否随云服务器实例删除。仅按量计费公网IP有效。开启后,当云服务器实例被系统自动回收(退订24小时后、到期回收、欠费回收)或被调用DeleteInstances接口时,公网IP随其一同释放。true:是。false:否。
    renewPeriodTimes Number
    自动续费的时长,取值范围1、2、3、6、12,单位:月。若RenewType传入2,则必须传入RenewPeriodTimes
    renewType Number
    包年包月公网IP续费的方式。取值如下:1(默认值):手动续费。2:自动续费。3:到期不续费。
    securityProtectionInstanceId Number
    DDoS原生防护(企业版)ID。您可以调用 DescInstanceList 接口,查询DDoS原生防护(企业版)的ID。当SecurityProtectionTypes传入AntiDDoS_Enhanced时,此参数必须传入。
    securityProtectionTypes List<String>
    防护类型。AntiDDoS_Enhanced:增强防护类型的公网IP,可以加入到DDoS原生防护(企业版)实例。空值:默认防护类型的公网IP。
    serviceManaged Boolean
    是否由服务管理
    status String
    公网IP的状态。Attaching:绑定中。Detaching:解绑中。Attached:已绑定。Available:可用。Deleting:删除中。
    tags List<Property Map>
    updatedTime String
    更新公网IP的时间。

    Supporting Types

    EipTag, EipTagArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    Import

    $ pulumi import volcenginecc:vpc/eip:Eip example "allocation_id"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate