1. Packages
  2. Ucloud Provider
  3. API Docs
  4. Eip
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.Eip

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    Provides an Elastic IP resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const example = new ucloud.Eip("example", {
        bandwidth: 2,
        chargeMode: "bandwidth",
        internetType: "bgp",
        tag: "tf-example",
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    example = ucloud.Eip("example",
        bandwidth=2,
        charge_mode="bandwidth",
        internet_type="bgp",
        tag="tf-example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ucloud.NewEip(ctx, "example", &ucloud.EipArgs{
    			Bandwidth:    pulumi.Float64(2),
    			ChargeMode:   pulumi.String("bandwidth"),
    			InternetType: pulumi.String("bgp"),
    			Tag:          pulumi.String("tf-example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ucloud.Eip("example", new()
        {
            Bandwidth = 2,
            ChargeMode = "bandwidth",
            InternetType = "bgp",
            Tag = "tf-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.Eip;
    import com.pulumi.ucloud.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 example = new Eip("example", EipArgs.builder()
                .bandwidth(2)
                .chargeMode("bandwidth")
                .internetType("bgp")
                .tag("tf-example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ucloud:Eip
        properties:
          bandwidth: 2
          chargeMode: bandwidth
          internetType: bgp
          tag: tf-example
    

    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,
            internet_type: Optional[str] = None,
            bandwidth: Optional[float] = None,
            charge_mode: Optional[str] = None,
            charge_type: Optional[str] = None,
            duration: Optional[float] = None,
            eip_id: Optional[str] = None,
            name: Optional[str] = None,
            remark: Optional[str] = None,
            tag: Optional[str] = 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: ucloud: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 Ucloud.Eip("eipResource", new()
    {
        InternetType = "string",
        Bandwidth = 0,
        ChargeMode = "string",
        ChargeType = "string",
        Duration = 0,
        EipId = "string",
        Name = "string",
        Remark = "string",
        Tag = "string",
    });
    
    example, err := ucloud.NewEip(ctx, "eipResource", &ucloud.EipArgs{
    	InternetType: pulumi.String("string"),
    	Bandwidth:    pulumi.Float64(0),
    	ChargeMode:   pulumi.String("string"),
    	ChargeType:   pulumi.String("string"),
    	Duration:     pulumi.Float64(0),
    	EipId:        pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Remark:       pulumi.String("string"),
    	Tag:          pulumi.String("string"),
    })
    
    var eipResource = new Eip("eipResource", EipArgs.builder()
        .internetType("string")
        .bandwidth(0)
        .chargeMode("string")
        .chargeType("string")
        .duration(0)
        .eipId("string")
        .name("string")
        .remark("string")
        .tag("string")
        .build());
    
    eip_resource = ucloud.Eip("eipResource",
        internet_type="string",
        bandwidth=0,
        charge_mode="string",
        charge_type="string",
        duration=0,
        eip_id="string",
        name="string",
        remark="string",
        tag="string")
    
    const eipResource = new ucloud.Eip("eipResource", {
        internetType: "string",
        bandwidth: 0,
        chargeMode: "string",
        chargeType: "string",
        duration: 0,
        eipId: "string",
        name: "string",
        remark: "string",
        tag: "string",
    });
    
    type: ucloud:Eip
    properties:
        bandwidth: 0
        chargeMode: string
        chargeType: string
        duration: 0
        eipId: string
        internetType: string
        name: string
        remark: string
        tag: 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:

    InternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    Bandwidth double
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    ChargeMode string
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    ChargeType string
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    Duration double
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    EipId string
    The ID of the resource with EIP attached.
    Name string
    Remark string
    The remarks of the EIP. (Default: "").
    Tag string
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    InternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    Bandwidth float64
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    ChargeMode string
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    ChargeType string
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    Duration float64
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    EipId string
    The ID of the resource with EIP attached.
    Name string
    Remark string
    The remarks of the EIP. (Default: "").
    Tag string
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    internetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    bandwidth Double
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    chargeMode String
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    chargeType String
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    duration Double
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eipId String
    The ID of the resource with EIP attached.
    name String
    remark String
    The remarks of the EIP. (Default: "").
    tag String
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    internetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    bandwidth number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    chargeMode string
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    chargeType string
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    duration number
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eipId string
    The ID of the resource with EIP attached.
    name string
    remark string
    The remarks of the EIP. (Default: "").
    tag string
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    internet_type str
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    bandwidth float
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    charge_mode str
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    charge_type str
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    duration float
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eip_id str
    The ID of the resource with EIP attached.
    name str
    remark str
    The remarks of the EIP. (Default: "").
    tag str
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    internetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    bandwidth Number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    chargeMode String
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    chargeType String
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    duration Number
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eipId String
    The ID of the resource with EIP attached.
    name String
    remark String
    The remarks of the EIP. (Default: "").
    tag String
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).

    Outputs

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

    CreateTime string
    The time of creation for EIP, formatted in RFC3339 time string.
    ExpireTime string
    The expiration time for EIP, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpSets List<EipIpSet>
    It is a nested type which documented below.
    PublicIp string
    Public IP address of Elastic IP.
    Resource Dictionary<string, string>
    It is a nested type which documented below.
    Status string
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    CreateTime string
    The time of creation for EIP, formatted in RFC3339 time string.
    ExpireTime string
    The expiration time for EIP, formatted in RFC3339 time string.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpSets []EipIpSet
    It is a nested type which documented below.
    PublicIp string
    Public IP address of Elastic IP.
    Resource map[string]string
    It is a nested type which documented below.
    Status string
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    createTime String
    The time of creation for EIP, formatted in RFC3339 time string.
    expireTime String
    The expiration time for EIP, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    ipSets List<EipIpSet>
    It is a nested type which documented below.
    publicIp String
    Public IP address of Elastic IP.
    resource Map<String,String>
    It is a nested type which documented below.
    status String
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    createTime string
    The time of creation for EIP, formatted in RFC3339 time string.
    expireTime string
    The expiration time for EIP, formatted in RFC3339 time string.
    id string
    The provider-assigned unique ID for this managed resource.
    ipSets EipIpSet[]
    It is a nested type which documented below.
    publicIp string
    Public IP address of Elastic IP.
    resource {[key: string]: string}
    It is a nested type which documented below.
    status string
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    create_time str
    The time of creation for EIP, formatted in RFC3339 time string.
    expire_time str
    The expiration time for EIP, formatted in RFC3339 time string.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_sets Sequence[EipIpSet]
    It is a nested type which documented below.
    public_ip str
    Public IP address of Elastic IP.
    resource Mapping[str, str]
    It is a nested type which documented below.
    status str
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    createTime String
    The time of creation for EIP, formatted in RFC3339 time string.
    expireTime String
    The expiration time for EIP, formatted in RFC3339 time string.
    id String
    The provider-assigned unique ID for this managed resource.
    ipSets List<Property Map>
    It is a nested type which documented below.
    publicIp String
    Public IP address of Elastic IP.
    resource Map<String>
    It is a nested type which documented below.
    status String
    EIP status. Possible values are: used as in use, free as available and freeze as associating.

    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,
            bandwidth: Optional[float] = None,
            charge_mode: Optional[str] = None,
            charge_type: Optional[str] = None,
            create_time: Optional[str] = None,
            duration: Optional[float] = None,
            eip_id: Optional[str] = None,
            expire_time: Optional[str] = None,
            internet_type: Optional[str] = None,
            ip_sets: Optional[Sequence[EipIpSetArgs]] = None,
            name: Optional[str] = None,
            public_ip: Optional[str] = None,
            remark: Optional[str] = None,
            resource: Optional[Mapping[str, str]] = None,
            status: Optional[str] = None,
            tag: 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: ucloud: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:
    Bandwidth double
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    ChargeMode string
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    ChargeType string
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    CreateTime string
    The time of creation for EIP, formatted in RFC3339 time string.
    Duration double
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    EipId string
    The ID of the resource with EIP attached.
    ExpireTime string
    The expiration time for EIP, formatted in RFC3339 time string.
    InternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    IpSets List<EipIpSet>
    It is a nested type which documented below.
    Name string
    PublicIp string
    Public IP address of Elastic IP.
    Remark string
    The remarks of the EIP. (Default: "").
    Resource Dictionary<string, string>
    It is a nested type which documented below.
    Status string
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    Tag string
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    Bandwidth float64
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    ChargeMode string
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    ChargeType string
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    CreateTime string
    The time of creation for EIP, formatted in RFC3339 time string.
    Duration float64
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    EipId string
    The ID of the resource with EIP attached.
    ExpireTime string
    The expiration time for EIP, formatted in RFC3339 time string.
    InternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    IpSets []EipIpSetArgs
    It is a nested type which documented below.
    Name string
    PublicIp string
    Public IP address of Elastic IP.
    Remark string
    The remarks of the EIP. (Default: "").
    Resource map[string]string
    It is a nested type which documented below.
    Status string
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    Tag string
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    bandwidth Double
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    chargeMode String
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    chargeType String
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    createTime String
    The time of creation for EIP, formatted in RFC3339 time string.
    duration Double
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eipId String
    The ID of the resource with EIP attached.
    expireTime String
    The expiration time for EIP, formatted in RFC3339 time string.
    internetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ipSets List<EipIpSet>
    It is a nested type which documented below.
    name String
    publicIp String
    Public IP address of Elastic IP.
    remark String
    The remarks of the EIP. (Default: "").
    resource Map<String,String>
    It is a nested type which documented below.
    status String
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    tag String
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    bandwidth number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    chargeMode string
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    chargeType string
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    createTime string
    The time of creation for EIP, formatted in RFC3339 time string.
    duration number
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eipId string
    The ID of the resource with EIP attached.
    expireTime string
    The expiration time for EIP, formatted in RFC3339 time string.
    internetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ipSets EipIpSet[]
    It is a nested type which documented below.
    name string
    publicIp string
    Public IP address of Elastic IP.
    remark string
    The remarks of the EIP. (Default: "").
    resource {[key: string]: string}
    It is a nested type which documented below.
    status string
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    tag string
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    bandwidth float
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    charge_mode str
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    charge_type str
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    create_time str
    The time of creation for EIP, formatted in RFC3339 time string.
    duration float
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eip_id str
    The ID of the resource with EIP attached.
    expire_time str
    The expiration time for EIP, formatted in RFC3339 time string.
    internet_type str
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ip_sets Sequence[EipIpSetArgs]
    It is a nested type which documented below.
    name str
    public_ip str
    Public IP address of Elastic IP.
    remark str
    The remarks of the EIP. (Default: "").
    resource Mapping[str, str]
    It is a nested type which documented below.
    status str
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    tag str
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).
    bandwidth Number
    Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). The ranges for bandwidth are: 1-200 for pay by traffic, 1-800 for pay by bandwidth. (Default: 1).
    chargeMode String
    Elastic IP charge mode. Possible values are: traffic as pay by traffic, bandwidth as pay by bandwidth mode. (Default: bandwidthfor the Elastic IP).
    chargeType String
    Elastic IP charge type. Possible values are: year as pay by year, month as pay by month, dynamic as pay by hour (specific permission required). (Default: month).
    createTime String
    The time of creation for EIP, formatted in RFC3339 time string.
    duration Number
    The duration that you will buy the resource. (Default: 1). It is not required when dynamic (pay by hour), the value is 0 when month(pay by month) and the instance will be valid till the last day of that month.
    eipId String
    The ID of the resource with EIP attached.
    expireTime String
    The expiration time for EIP, formatted in RFC3339 time string.
    internetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ipSets List<Property Map>
    It is a nested type which documented below.
    name String
    publicIp String
    Public IP address of Elastic IP.
    remark String
    The remarks of the EIP. (Default: "").
    resource Map<String>
    It is a nested type which documented below.
    status String
    EIP status. Possible values are: used as in use, free as available and freeze as associating.
    tag String
    A tag assigned to Elastic IP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: Default).

    Supporting Types

    EipIpSet, EipIpSetArgs

    InternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    Ip string
    InternetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    Ip string
    internetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ip String
    internetType string
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ip string
    internet_type str
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ip str
    internetType String
    Type of Elastic IP routes. Possible values are: international as international BGP IP and bgp as china mainland BGP IP.


    ip String

    Import

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

    $ pulumi import ucloud:index/eip:Eip example eip-abcdefg
    

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

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud