1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. Eip
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.Eip

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides an EIP resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.Eip("foo", {
        bandwidthPackageId: "bwp-jtvzuky6",
        internetChargeType: "BANDWIDTH_PACKAGE",
        type: "EIP",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.Eip("foo",
        bandwidth_package_id="bwp-jtvzuky6",
        internet_charge_type="BANDWIDTH_PACKAGE",
        type="EIP")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewEip(ctx, "foo", &tencentcloud.EipArgs{
    			BandwidthPackageId: pulumi.String("bwp-jtvzuky6"),
    			InternetChargeType: pulumi.String("BANDWIDTH_PACKAGE"),
    			Type:               pulumi.String("EIP"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.Eip("foo", new()
        {
            BandwidthPackageId = "bwp-jtvzuky6",
            InternetChargeType = "BANDWIDTH_PACKAGE",
            Type = "EIP",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Eip;
    import com.pulumi.tencentcloud.EipArgs;
    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 foo = new Eip("foo", EipArgs.builder()
                .bandwidthPackageId("bwp-jtvzuky6")
                .internetChargeType("BANDWIDTH_PACKAGE")
                .type("EIP")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:Eip
        properties:
          bandwidthPackageId: bwp-jtvzuky6
          internetChargeType: BANDWIDTH_PACKAGE
          type: EIP
    

    AntiDDos Eip

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.Eip("foo", {
        antiDdosPackageId: "xxxxxxxx",
        bandwidthPackageId: "bwp-4ocyia9s",
        internetChargeType: "BANDWIDTH_PACKAGE",
        tags: {
            test: "test",
        },
        type: "AntiDDoSEIP",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.Eip("foo",
        anti_ddos_package_id="xxxxxxxx",
        bandwidth_package_id="bwp-4ocyia9s",
        internet_charge_type="BANDWIDTH_PACKAGE",
        tags={
            "test": "test",
        },
        type="AntiDDoSEIP")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewEip(ctx, "foo", &tencentcloud.EipArgs{
    			AntiDdosPackageId:  pulumi.String("xxxxxxxx"),
    			BandwidthPackageId: pulumi.String("bwp-4ocyia9s"),
    			InternetChargeType: pulumi.String("BANDWIDTH_PACKAGE"),
    			Tags: pulumi.StringMap{
    				"test": pulumi.String("test"),
    			},
    			Type: pulumi.String("AntiDDoSEIP"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.Eip("foo", new()
        {
            AntiDdosPackageId = "xxxxxxxx",
            BandwidthPackageId = "bwp-4ocyia9s",
            InternetChargeType = "BANDWIDTH_PACKAGE",
            Tags = 
            {
                { "test", "test" },
            },
            Type = "AntiDDoSEIP",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Eip;
    import com.pulumi.tencentcloud.EipArgs;
    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 foo = new Eip("foo", EipArgs.builder()
                .antiDdosPackageId("xxxxxxxx")
                .bandwidthPackageId("bwp-4ocyia9s")
                .internetChargeType("BANDWIDTH_PACKAGE")
                .tags(Map.of("test", "test"))
                .type("AntiDDoSEIP")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:Eip
        properties:
          antiDdosPackageId: xxxxxxxx
          bandwidthPackageId: bwp-4ocyia9s
          internetChargeType: BANDWIDTH_PACKAGE
          tags:
            test: test
          type: AntiDDoSEIP
    

    Eip With Network Egress

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.Eip("foo", {
        egress: "center_egress2",
        internetChargeType: "BANDWIDTH_PACKAGE",
        internetMaxBandwidthOut: 1,
        internetServiceProvider: "CMCC",
        type: "EIP",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.Eip("foo",
        egress="center_egress2",
        internet_charge_type="BANDWIDTH_PACKAGE",
        internet_max_bandwidth_out=1,
        internet_service_provider="CMCC",
        type="EIP")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewEip(ctx, "foo", &tencentcloud.EipArgs{
    			Egress:                  pulumi.String("center_egress2"),
    			InternetChargeType:      pulumi.String("BANDWIDTH_PACKAGE"),
    			InternetMaxBandwidthOut: pulumi.Float64(1),
    			InternetServiceProvider: pulumi.String("CMCC"),
    			Type:                    pulumi.String("EIP"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Tencentcloud.Eip("foo", new()
        {
            Egress = "center_egress2",
            InternetChargeType = "BANDWIDTH_PACKAGE",
            InternetMaxBandwidthOut = 1,
            InternetServiceProvider = "CMCC",
            Type = "EIP",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Eip;
    import com.pulumi.tencentcloud.EipArgs;
    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 foo = new Eip("foo", EipArgs.builder()
                .egress("center_egress2")
                .internetChargeType("BANDWIDTH_PACKAGE")
                .internetMaxBandwidthOut(1)
                .internetServiceProvider("CMCC")
                .type("EIP")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:Eip
        properties:
          egress: center_egress2
          internetChargeType: BANDWIDTH_PACKAGE
          internetMaxBandwidthOut: 1
          internetServiceProvider: CMCC
          type: EIP
    

    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: Optional[EipArgs] = None,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Eip(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            anti_ddos_package_id: Optional[str] = None,
            anycast_zone: Optional[str] = None,
            applicable_for_clb: Optional[bool] = None,
            auto_renew_flag: Optional[float] = None,
            bandwidth_package_id: Optional[str] = None,
            cdc_id: Optional[str] = None,
            egress: Optional[str] = None,
            eip_id: Optional[str] = None,
            internet_charge_type: Optional[str] = None,
            internet_max_bandwidth_out: Optional[float] = None,
            internet_service_provider: Optional[str] = None,
            name: Optional[str] = None,
            prepaid_period: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None)
    func NewEip(ctx *Context, name string, args *EipArgs, opts ...ResourceOption) (*Eip, error)
    public Eip(string name, EipArgs? args = null, CustomResourceOptions? opts = null)
    public Eip(String name, EipArgs args)
    public Eip(String name, EipArgs args, CustomResourceOptions options)
    
    type: tencentcloud: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.

    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:

    AntiDdosPackageId string
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    AnycastZone string
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    ApplicableForClb bool
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    AutoRenewFlag double
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    BandwidthPackageId string
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    CdcId string
    CDC Unique ID.
    Egress string
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    EipId string
    ID of the resource.
    InternetChargeType string
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut double
    The bandwidth limit of EIP, unit is Mbps.
    InternetServiceProvider string
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    Name string
    The name of eip.
    PrepaidPeriod double
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    Tags Dictionary<string, string>
    The tags of eip.
    Type string
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    AntiDdosPackageId string
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    AnycastZone string
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    ApplicableForClb bool
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    AutoRenewFlag float64
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    BandwidthPackageId string
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    CdcId string
    CDC Unique ID.
    Egress string
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    EipId string
    ID of the resource.
    InternetChargeType string
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut float64
    The bandwidth limit of EIP, unit is Mbps.
    InternetServiceProvider string
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    Name string
    The name of eip.
    PrepaidPeriod float64
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    Tags map[string]string
    The tags of eip.
    Type string
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    antiDdosPackageId String
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycastZone String
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicableForClb Boolean
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    autoRenewFlag Double
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidthPackageId String
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdcId String
    CDC Unique ID.
    egress String
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eipId String
    ID of the resource.
    internetChargeType String
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Double
    The bandwidth limit of EIP, unit is Mbps.
    internetServiceProvider String
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name String
    The name of eip.
    prepaidPeriod Double
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    tags Map<String,String>
    The tags of eip.
    type String
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    antiDdosPackageId string
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycastZone string
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicableForClb boolean
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    autoRenewFlag number
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidthPackageId string
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdcId string
    CDC Unique ID.
    egress string
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eipId string
    ID of the resource.
    internetChargeType string
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut number
    The bandwidth limit of EIP, unit is Mbps.
    internetServiceProvider string
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name string
    The name of eip.
    prepaidPeriod number
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    tags {[key: string]: string}
    The tags of eip.
    type string
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    anti_ddos_package_id str
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycast_zone str
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicable_for_clb bool
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    auto_renew_flag float
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidth_package_id str
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdc_id str
    CDC Unique ID.
    egress str
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eip_id str
    ID of the resource.
    internet_charge_type str
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internet_max_bandwidth_out float
    The bandwidth limit of EIP, unit is Mbps.
    internet_service_provider str
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name str
    The name of eip.
    prepaid_period float
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    tags Mapping[str, str]
    The tags of eip.
    type str
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    antiDdosPackageId String
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycastZone String
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicableForClb Boolean
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    autoRenewFlag Number
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidthPackageId String
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdcId String
    CDC Unique ID.
    egress String
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eipId String
    ID of the resource.
    internetChargeType String
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Number
    The bandwidth limit of EIP, unit is Mbps.
    internetServiceProvider String
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name String
    The name of eip.
    prepaidPeriod Number
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    tags Map<String>
    The tags of eip.
    type String
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PublicIp string
    The elastic IP address.
    Status string
    The EIP current status.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublicIp string
    The elastic IP address.
    Status string
    The EIP current status.
    id String
    The provider-assigned unique ID for this managed resource.
    publicIp String
    The elastic IP address.
    status String
    The EIP current status.
    id string
    The provider-assigned unique ID for this managed resource.
    publicIp string
    The elastic IP address.
    status string
    The EIP current status.
    id str
    The provider-assigned unique ID for this managed resource.
    public_ip str
    The elastic IP address.
    status str
    The EIP current status.
    id String
    The provider-assigned unique ID for this managed resource.
    publicIp String
    The elastic IP address.
    status String
    The EIP current status.

    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,
            anti_ddos_package_id: Optional[str] = None,
            anycast_zone: Optional[str] = None,
            applicable_for_clb: Optional[bool] = None,
            auto_renew_flag: Optional[float] = None,
            bandwidth_package_id: Optional[str] = None,
            cdc_id: Optional[str] = None,
            egress: Optional[str] = None,
            eip_id: Optional[str] = None,
            internet_charge_type: Optional[str] = None,
            internet_max_bandwidth_out: Optional[float] = None,
            internet_service_provider: Optional[str] = None,
            name: Optional[str] = None,
            prepaid_period: Optional[float] = None,
            public_ip: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            type: 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: tencentcloud: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:
    AntiDdosPackageId string
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    AnycastZone string
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    ApplicableForClb bool
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    AutoRenewFlag double
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    BandwidthPackageId string
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    CdcId string
    CDC Unique ID.
    Egress string
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    EipId string
    ID of the resource.
    InternetChargeType string
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut double
    The bandwidth limit of EIP, unit is Mbps.
    InternetServiceProvider string
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    Name string
    The name of eip.
    PrepaidPeriod double
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    PublicIp string
    The elastic IP address.
    Status string
    The EIP current status.
    Tags Dictionary<string, string>
    The tags of eip.
    Type string
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    AntiDdosPackageId string
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    AnycastZone string
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    ApplicableForClb bool
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    AutoRenewFlag float64
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    BandwidthPackageId string
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    CdcId string
    CDC Unique ID.
    Egress string
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    EipId string
    ID of the resource.
    InternetChargeType string
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut float64
    The bandwidth limit of EIP, unit is Mbps.
    InternetServiceProvider string
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    Name string
    The name of eip.
    PrepaidPeriod float64
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    PublicIp string
    The elastic IP address.
    Status string
    The EIP current status.
    Tags map[string]string
    The tags of eip.
    Type string
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    antiDdosPackageId String
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycastZone String
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicableForClb Boolean
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    autoRenewFlag Double
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidthPackageId String
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdcId String
    CDC Unique ID.
    egress String
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eipId String
    ID of the resource.
    internetChargeType String
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Double
    The bandwidth limit of EIP, unit is Mbps.
    internetServiceProvider String
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name String
    The name of eip.
    prepaidPeriod Double
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    publicIp String
    The elastic IP address.
    status String
    The EIP current status.
    tags Map<String,String>
    The tags of eip.
    type String
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    antiDdosPackageId string
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycastZone string
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicableForClb boolean
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    autoRenewFlag number
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidthPackageId string
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdcId string
    CDC Unique ID.
    egress string
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eipId string
    ID of the resource.
    internetChargeType string
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut number
    The bandwidth limit of EIP, unit is Mbps.
    internetServiceProvider string
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name string
    The name of eip.
    prepaidPeriod number
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    publicIp string
    The elastic IP address.
    status string
    The EIP current status.
    tags {[key: string]: string}
    The tags of eip.
    type string
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    anti_ddos_package_id str
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycast_zone str
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicable_for_clb bool
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    auto_renew_flag float
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidth_package_id str
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdc_id str
    CDC Unique ID.
    egress str
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eip_id str
    ID of the resource.
    internet_charge_type str
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internet_max_bandwidth_out float
    The bandwidth limit of EIP, unit is Mbps.
    internet_service_provider str
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name str
    The name of eip.
    prepaid_period float
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    public_ip str
    The elastic IP address.
    status str
    The EIP current status.
    tags Mapping[str, str]
    The tags of eip.
    type str
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.
    antiDdosPackageId String
    ID of anti DDos package, it must set when type is AntiDDoSEIP.
    anycastZone String
    The zone of anycast. Valid value: ANYCAST_ZONE_GLOBAL and ANYCAST_ZONE_OVERSEAS.
    applicableForClb Boolean
    It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.

    Deprecated: Deprecated

    autoRenewFlag Number
    Auto renew flag. 0 - default state (manual renew); 1 - automatic renew; 2 - explicit no automatic renew. NOTES: Only supported prepaid EIP.
    bandwidthPackageId String
    ID of bandwidth package, it will set when internet_charge_type is BANDWIDTH_PACKAGE.
    cdcId String
    CDC Unique ID.
    egress String
    Network egress. It defaults to center_egress1. If you want to try the egress feature, please submit a ticket.
    eipId String
    ID of the resource.
    internetChargeType String
    The charge type of eip. Valid values: BANDWIDTH_PACKAGE, BANDWIDTH_POSTPAID_BY_HOUR, BANDWIDTH_PREPAID_BY_MONTH and TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Number
    The bandwidth limit of EIP, unit is Mbps.
    internetServiceProvider String
    Internet service provider of eip. Valid value: BGP, CMCC, CTCC and CUCC.
    name String
    The name of eip.
    prepaidPeriod Number
    Period of instance. Default value: 1. Valid value: 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36. NOTES: must set when internet_charge_type is BANDWIDTH_PREPAID_BY_MONTH.
    publicIp String
    The elastic IP address.
    status String
    The EIP current status.
    tags Map<String>
    The tags of eip.
    type String
    The type of eip. Valid value: EIP and AnycastEIP and HighQualityEIP and AntiDDoSEIP. Default is EIP.

    Import

    EIP can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/eip:Eip foo eip-nyvf60va
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack