title: "Eip" title_tag: "huaweicloud.Vpc.Eip" meta_desc: "Documentation for the huaweicloud.Vpc.Eip resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true


Manages an EIP resource within HuaweiCloud.

## Example Usage

EIP with Dedicated Bandwidth

using System.Collections.Generic;
using Pulumi;
using Huaweicloud = Pulumi.Huaweicloud;

return await Deployment.RunAsync(() => 
{
    var eip1 = new Huaweicloud.Vpc.Eip("eip1", new()
    {
        Bandwidth = new Huaweicloud.Vpc.Inputs.EipBandwidthArgs
        {
            ChargeMode = "traffic",
            Name = "test",
            ShareType = "PER",
            Size = 10,
        },
        Publicip = new Huaweicloud.Vpc.Inputs.EipPublicipArgs
        {
            Type = "5_bgp",
        },
    });

});
package main

import (
    "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
    "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
    "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := Vpc.NewEip(ctx, "eip1", &Vpc.EipArgs{
            Bandwidth: &vpc.EipBandwidthArgs{
                ChargeMode: pulumi.String("traffic"),
                Name:       pulumi.String("test"),
                ShareType:  pulumi.String("PER"),
                Size:       pulumi.Int(10),
            },
            Publicip: &vpc.EipPublicipArgs{
                Type: pulumi.String("5_bgp"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.huaweicloud.Vpc.Eip;
import com.pulumi.huaweicloud.Vpc.EipArgs;
import com.pulumi.huaweicloud.Vpc.inputs.EipBandwidthArgs;
import com.pulumi.huaweicloud.Vpc.inputs.EipPublicipArgs;
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 eip1 = new Eip("eip1", EipArgs.builder()        
            .bandwidth(EipBandwidthArgs.builder()
                .chargeMode("traffic")
                .name("test")
                .shareType("PER")
                .size(10)
                .build())
            .publicip(EipPublicipArgs.builder()
                .type("5_bgp")
                .build())
            .build());

    }
}
import pulumi
import pulumi_huaweicloud as huaweicloud

eip1 = huaweicloud.vpc.Eip("eip1",
    bandwidth=huaweicloud.vpc.EipBandwidthArgs(
        charge_mode="traffic",
        name="test",
        share_type="PER",
        size=10,
    ),
    publicip=huaweicloud.vpc.EipPublicipArgs(
        type="5_bgp",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as huaweicloud from "@pulumi/huaweicloud";

const eip1 = new huaweicloud.Vpc.Eip("eip_1", {
    bandwidth: {
        chargeMode: "traffic",
        name: "test",
        shareType: "PER",
        size: 10,
    },
    publicip: {
        type: "5_bgp",
    },
});
resources:
  eip1:
    type: huaweicloud:Vpc:Eip
    properties:
      bandwidth:
        chargeMode: traffic
        name: test
        shareType: PER
        size: 10
      publicip:
        type: 5_bgp

EIP with Shared Bandwidth

using System.Collections.Generic;
using Pulumi;
using Huaweicloud = Pulumi.Huaweicloud;

return await Deployment.RunAsync(() => 
{
    var bandwidth1 = new Huaweicloud.Vpc.Bandwidth("bandwidth1", new()
    {
        Size = 5,
    });

    var eip1 = new Huaweicloud.Vpc.Eip("eip1", new()
    {
        Publicip = new Huaweicloud.Vpc.Inputs.EipPublicipArgs
        {
            Type = "5_bgp",
        },
        Bandwidth = new Huaweicloud.Vpc.Inputs.EipBandwidthArgs
        {
            ShareType = "WHOLE",
            Id = bandwidth1.Id,
        },
    });

});
package main

import (
    "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
    "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
    "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        bandwidth1, err := Vpc.NewBandwidth(ctx, "bandwidth1", &Vpc.BandwidthArgs{
            Size: pulumi.Int(5),
        })
        if err != nil {
            return err
        }
        _, err = Vpc.NewEip(ctx, "eip1", &Vpc.EipArgs{
            Publicip: &vpc.EipPublicipArgs{
                Type: pulumi.String("5_bgp"),
            },
            Bandwidth: &vpc.EipBandwidthArgs{
                ShareType: pulumi.String("WHOLE"),
                Id:        bandwidth1.ID(),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.huaweicloud.Vpc.Bandwidth;
import com.pulumi.huaweicloud.Vpc.BandwidthArgs;
import com.pulumi.huaweicloud.Vpc.Eip;
import com.pulumi.huaweicloud.Vpc.EipArgs;
import com.pulumi.huaweicloud.Vpc.inputs.EipPublicipArgs;
import com.pulumi.huaweicloud.Vpc.inputs.EipBandwidthArgs;
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 bandwidth1 = new Bandwidth("bandwidth1", BandwidthArgs.builder()        
            .size(5)
            .build());

        var eip1 = new Eip("eip1", EipArgs.builder()        
            .publicip(EipPublicipArgs.builder()
                .type("5_bgp")
                .build())
            .bandwidth(EipBandwidthArgs.builder()
                .shareType("WHOLE")
                .id(bandwidth1.id())
                .build())
            .build());

    }
}
import pulumi
import pulumi_huaweicloud as huaweicloud

bandwidth1 = huaweicloud.vpc.Bandwidth("bandwidth1", size=5)
eip1 = huaweicloud.vpc.Eip("eip1",
    publicip=huaweicloud.vpc.EipPublicipArgs(
        type="5_bgp",
    ),
    bandwidth=huaweicloud.vpc.EipBandwidthArgs(
        share_type="WHOLE",
        id=bandwidth1.id,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as pulumi from "@huaweicloudos/pulumi";

const bandwidth1 = new huaweicloud.vpc.Bandwidth("bandwidth1", {size: 5});
const eip1 = new huaweicloud.vpc.Eip("eip1", {
    publicip: {
        type: "5_bgp",
    },
    bandwidth: {
        shareType: "WHOLE",
        id: bandwidth1.id,
    },
});
resources:
  bandwidth1:
    type: huaweicloud:Vpc:Bandwidth
    properties:
      size: 5
  eip1:
    type: huaweicloud:Vpc:Eip
    properties:
      publicip:
        type: 5_bgp
      bandwidth:
        shareType: WHOLE
        id: ${bandwidth1.id}

Create Eip Resource {#create}

new Eip(name: string, args: EipArgs, opts?: CustomResourceOptions);
@overload
def Eip(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        auto_pay: Optional[str] = None,
        auto_renew: Optional[str] = None,
        bandwidth: Optional[_vpc.EipBandwidthArgs] = None,
        charging_mode: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        name: Optional[str] = None,
        period: Optional[int] = None,
        period_unit: Optional[str] = None,
        publicip: Optional[_vpc.EipPublicipArgs] = None,
        region: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None)
@overload
def Eip(resource_name: str,
        args: EipArgs,
        opts: Optional[ResourceOptions] = 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: huaweicloud:Vpc:Eip
properties: # The arguments to resource properties.
options: # 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.
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 {#properties}

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Eip resource accepts the following input properties:

Bandwidth EipBandwidthArgs

The bandwidth object.

Publicip EipPublicipArgs

The elastic IP address object.

AutoPay string
AutoRenew string

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

ChargingMode string

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

EnterpriseProjectId string

The enterprise project id of the elastic IP. Changing this creates a new eip.

Name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

Period int

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

PeriodUnit string

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

Region string

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

Tags Dictionary<string, string>

Specifies the key/value pairs to associate with the elastic IP.

Bandwidth EipBandwidthArgs

The bandwidth object.

Publicip EipPublicipArgs

The elastic IP address object.

AutoPay string
AutoRenew string

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

ChargingMode string

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

EnterpriseProjectId string

The enterprise project id of the elastic IP. Changing this creates a new eip.

Name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

Period int

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

PeriodUnit string

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

Region string

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

Tags map[string]string

Specifies the key/value pairs to associate with the elastic IP.

bandwidth EipBandwidthArgs

The bandwidth object.

publicip EipPublicipArgs

The elastic IP address object.

autoPay String
autoRenew String

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

chargingMode String

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterpriseProjectId String

The enterprise project id of the elastic IP. Changing this creates a new eip.

name String

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period Integer

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

periodUnit String

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

region String

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

tags Map<String,String>

Specifies the key/value pairs to associate with the elastic IP.

bandwidth EipBandwidthArgs

The bandwidth object.

publicip EipPublicipArgs

The elastic IP address object.

autoPay string
autoRenew string

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

chargingMode string

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterpriseProjectId string

The enterprise project id of the elastic IP. Changing this creates a new eip.

name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period number

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

periodUnit string

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

region string

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

tags {[key: string]: string}

Specifies the key/value pairs to associate with the elastic IP.

bandwidth EipBandwidthArgs

The bandwidth object.

publicip EipPublicipArgs

The elastic IP address object.

auto_pay str
auto_renew str

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

charging_mode str

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterprise_project_id str

The enterprise project id of the elastic IP. Changing this creates a new eip.

name str

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period int

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

period_unit str

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

region str

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

tags Mapping[str, str]

Specifies the key/value pairs to associate with the elastic IP.

bandwidth Property Map

The bandwidth object.

publicip Property Map

The elastic IP address object.

autoPay String
autoRenew String

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

chargingMode String

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterpriseProjectId String

The enterprise project id of the elastic IP. Changing this creates a new eip.

name String

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period Number

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

periodUnit String

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

region String

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

tags Map<String>

Specifies the key/value pairs to associate with the elastic IP.

Outputs

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

Address string

The IPv4 address of the EIP.

Id string

The provider-assigned unique ID for this managed resource.

Ipv6Address string

The IPv6 address of the EIP.

PortId string

The port ID which the EIP associated with.

PrivateIp string

The private IP address bound to the EIP.

Status string

The status of EIP.

Address string

The IPv4 address of the EIP.

Id string

The provider-assigned unique ID for this managed resource.

Ipv6Address string

The IPv6 address of the EIP.

PortId string

The port ID which the EIP associated with.

PrivateIp string

The private IP address bound to the EIP.

Status string

The status of EIP.

address String

The IPv4 address of the EIP.

id String

The provider-assigned unique ID for this managed resource.

ipv6Address String

The IPv6 address of the EIP.

portId String

The port ID which the EIP associated with.

privateIp String

The private IP address bound to the EIP.

status String

The status of EIP.

address string

The IPv4 address of the EIP.

id string

The provider-assigned unique ID for this managed resource.

ipv6Address string

The IPv6 address of the EIP.

portId string

The port ID which the EIP associated with.

privateIp string

The private IP address bound to the EIP.

status string

The status of EIP.

address str

The IPv4 address of the EIP.

id str

The provider-assigned unique ID for this managed resource.

ipv6_address str

The IPv6 address of the EIP.

port_id str

The port ID which the EIP associated with.

private_ip str

The private IP address bound to the EIP.

status str

The status of EIP.

address String

The IPv4 address of the EIP.

id String

The provider-assigned unique ID for this managed resource.

ipv6Address String

The IPv6 address of the EIP.

portId String

The port ID which the EIP associated with.

privateIp String

The private IP address bound to the EIP.

status String

The status of EIP.

Look up Existing Eip Resource {#look-up}

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,
        address: Optional[str] = None,
        auto_pay: Optional[str] = None,
        auto_renew: Optional[str] = None,
        bandwidth: Optional[_vpc.EipBandwidthArgs] = None,
        charging_mode: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        ipv6_address: Optional[str] = None,
        name: Optional[str] = None,
        period: Optional[int] = None,
        period_unit: Optional[str] = None,
        port_id: Optional[str] = None,
        private_ip: Optional[str] = None,
        publicip: Optional[_vpc.EipPublicipArgs] = None,
        region: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, 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)
Resource lookup is not supported in YAML
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:
Address string

The IPv4 address of the EIP.

AutoPay string
AutoRenew string

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

Bandwidth EipBandwidthArgs

The bandwidth object.

ChargingMode string

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

EnterpriseProjectId string

The enterprise project id of the elastic IP. Changing this creates a new eip.

Ipv6Address string

The IPv6 address of the EIP.

Name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

Period int

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

PeriodUnit string

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

PortId string

The port ID which the EIP associated with.

PrivateIp string

The private IP address bound to the EIP.

Publicip EipPublicipArgs

The elastic IP address object.

Region string

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

Status string

The status of EIP.

Tags Dictionary<string, string>

Specifies the key/value pairs to associate with the elastic IP.

Address string

The IPv4 address of the EIP.

AutoPay string
AutoRenew string

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

Bandwidth EipBandwidthArgs

The bandwidth object.

ChargingMode string

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

EnterpriseProjectId string

The enterprise project id of the elastic IP. Changing this creates a new eip.

Ipv6Address string

The IPv6 address of the EIP.

Name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

Period int

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

PeriodUnit string

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

PortId string

The port ID which the EIP associated with.

PrivateIp string

The private IP address bound to the EIP.

Publicip EipPublicipArgs

The elastic IP address object.

Region string

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

Status string

The status of EIP.

Tags map[string]string

Specifies the key/value pairs to associate with the elastic IP.

address String

The IPv4 address of the EIP.

autoPay String
autoRenew String

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

bandwidth EipBandwidthArgs

The bandwidth object.

chargingMode String

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterpriseProjectId String

The enterprise project id of the elastic IP. Changing this creates a new eip.

ipv6Address String

The IPv6 address of the EIP.

name String

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period Integer

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

periodUnit String

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

portId String

The port ID which the EIP associated with.

privateIp String

The private IP address bound to the EIP.

publicip EipPublicipArgs

The elastic IP address object.

region String

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

status String

The status of EIP.

tags Map<String,String>

Specifies the key/value pairs to associate with the elastic IP.

address string

The IPv4 address of the EIP.

autoPay string
autoRenew string

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

bandwidth EipBandwidthArgs

The bandwidth object.

chargingMode string

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterpriseProjectId string

The enterprise project id of the elastic IP. Changing this creates a new eip.

ipv6Address string

The IPv6 address of the EIP.

name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period number

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

periodUnit string

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

portId string

The port ID which the EIP associated with.

privateIp string

The private IP address bound to the EIP.

publicip EipPublicipArgs

The elastic IP address object.

region string

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

status string

The status of EIP.

tags {[key: string]: string}

Specifies the key/value pairs to associate with the elastic IP.

address str

The IPv4 address of the EIP.

auto_pay str
auto_renew str

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

bandwidth EipBandwidthArgs

The bandwidth object.

charging_mode str

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterprise_project_id str

The enterprise project id of the elastic IP. Changing this creates a new eip.

ipv6_address str

The IPv6 address of the EIP.

name str

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period int

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

period_unit str

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

port_id str

The port ID which the EIP associated with.

private_ip str

The private IP address bound to the EIP.

publicip EipPublicipArgs

The elastic IP address object.

region str

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

status str

The status of EIP.

tags Mapping[str, str]

Specifies the key/value pairs to associate with the elastic IP.

address String

The IPv4 address of the EIP.

autoPay String
autoRenew String

Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.

bandwidth Property Map

The bandwidth object.

chargingMode String

Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. Changing this creates a new eip.

enterpriseProjectId String

The enterprise project id of the elastic IP. Changing this creates a new eip.

ipv6Address String

The IPv6 address of the EIP.

name String

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

period Number

Specifies the charging period of the elastic IP. If period_unit is set to month, the value ranges from 1 to 9. If period_unit is set to year, the value ranges from 1 to 3. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new resource.

periodUnit String

Specifies the charging period unit of the elastic IP. Valid values are month and year. This parameter is mandatory if charging_mode is set to prePaid. Changing this creates a new eip.

portId String

The port ID which the EIP associated with.

privateIp String

The private IP address bound to the EIP.

publicip Property Map

The elastic IP address object.

region String

The region in which to create the EIP resource. If omitted, the provider-level region will be used. Changing this creates a new resource.

status String

The status of EIP.

tags Map<String>

Specifies the key/value pairs to associate with the elastic IP.

Supporting Types

EipBandwidth

ShareType string

Whether the bandwidth is dedicated or shared. Changing this creates a new resource. Possible values are as follows:

  • PER: Dedicated bandwidth
  • WHOLE: Shared bandwidth
ChargeMode string

Specifies whether the bandwidth is billed by traffic or by bandwidth size. The value can be traffic or bandwidth. Changing this creates a new resource.

Id string

The shared bandwidth id. This parameter is mandatory when share_type is set to WHOLE. Changing this creates a new resource.

Name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

Size int

The bandwidth size. The value ranges from 1 to 300 Mbit/s. This parameter is mandatory when share_type is set to PER.

ShareType string

Whether the bandwidth is dedicated or shared. Changing this creates a new resource. Possible values are as follows:

  • PER: Dedicated bandwidth
  • WHOLE: Shared bandwidth
ChargeMode string

Specifies whether the bandwidth is billed by traffic or by bandwidth size. The value can be traffic or bandwidth. Changing this creates a new resource.

Id string

The shared bandwidth id. This parameter is mandatory when share_type is set to WHOLE. Changing this creates a new resource.

Name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

Size int

The bandwidth size. The value ranges from 1 to 300 Mbit/s. This parameter is mandatory when share_type is set to PER.

shareType String

Whether the bandwidth is dedicated or shared. Changing this creates a new resource. Possible values are as follows:

  • PER: Dedicated bandwidth
  • WHOLE: Shared bandwidth
chargeMode String

Specifies whether the bandwidth is billed by traffic or by bandwidth size. The value can be traffic or bandwidth. Changing this creates a new resource.

id String

The shared bandwidth id. This parameter is mandatory when share_type is set to WHOLE. Changing this creates a new resource.

name String

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

size Integer

The bandwidth size. The value ranges from 1 to 300 Mbit/s. This parameter is mandatory when share_type is set to PER.

shareType string

Whether the bandwidth is dedicated or shared. Changing this creates a new resource. Possible values are as follows:

  • PER: Dedicated bandwidth
  • WHOLE: Shared bandwidth
chargeMode string

Specifies whether the bandwidth is billed by traffic or by bandwidth size. The value can be traffic or bandwidth. Changing this creates a new resource.

id string

The shared bandwidth id. This parameter is mandatory when share_type is set to WHOLE. Changing this creates a new resource.

name string

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

size number

The bandwidth size. The value ranges from 1 to 300 Mbit/s. This parameter is mandatory when share_type is set to PER.

share_type str

Whether the bandwidth is dedicated or shared. Changing this creates a new resource. Possible values are as follows:

  • PER: Dedicated bandwidth
  • WHOLE: Shared bandwidth
charge_mode str

Specifies whether the bandwidth is billed by traffic or by bandwidth size. The value can be traffic or bandwidth. Changing this creates a new resource.

id str

The shared bandwidth id. This parameter is mandatory when share_type is set to WHOLE. Changing this creates a new resource.

name str

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

size int

The bandwidth size. The value ranges from 1 to 300 Mbit/s. This parameter is mandatory when share_type is set to PER.

shareType String

Whether the bandwidth is dedicated or shared. Changing this creates a new resource. Possible values are as follows:

  • PER: Dedicated bandwidth
  • WHOLE: Shared bandwidth
chargeMode String

Specifies whether the bandwidth is billed by traffic or by bandwidth size. The value can be traffic or bandwidth. Changing this creates a new resource.

id String

The shared bandwidth id. This parameter is mandatory when share_type is set to WHOLE. Changing this creates a new resource.

name String

The bandwidth name, which is a string of 1 to 64 characters that contain letters, digits, underscores (_), and hyphens (-). This parameter is mandatory when share_type is set to PER.

size Number

The bandwidth size. The value ranges from 1 to 300 Mbit/s. This parameter is mandatory when share_type is set to PER.

EipPublicip

IpAddress string

Specifies the EIP to be assigned. The value must be a valid IPv4 address in the available IP address range. The system automatically assigns an EIP if you do not specify it. Changing this creates a new resource.

IpVersion int

Specifies the IP version, either 4 (default) or 6.

PortId string

The port ID which the EIP associated with.

Type string

Specifies the EIP type. Possible values are 5_bgp (dynamic BGP) and 5_sbgp (static BGP), the default value is 5_bgp. Changing this creates a new resource.

IpAddress string

Specifies the EIP to be assigned. The value must be a valid IPv4 address in the available IP address range. The system automatically assigns an EIP if you do not specify it. Changing this creates a new resource.

IpVersion int

Specifies the IP version, either 4 (default) or 6.

PortId string

The port ID which the EIP associated with.

Type string

Specifies the EIP type. Possible values are 5_bgp (dynamic BGP) and 5_sbgp (static BGP), the default value is 5_bgp. Changing this creates a new resource.

ipAddress String

Specifies the EIP to be assigned. The value must be a valid IPv4 address in the available IP address range. The system automatically assigns an EIP if you do not specify it. Changing this creates a new resource.

ipVersion Integer

Specifies the IP version, either 4 (default) or 6.

portId String

The port ID which the EIP associated with.

type String

Specifies the EIP type. Possible values are 5_bgp (dynamic BGP) and 5_sbgp (static BGP), the default value is 5_bgp. Changing this creates a new resource.

ipAddress string

Specifies the EIP to be assigned. The value must be a valid IPv4 address in the available IP address range. The system automatically assigns an EIP if you do not specify it. Changing this creates a new resource.

ipVersion number

Specifies the IP version, either 4 (default) or 6.

portId string

The port ID which the EIP associated with.

type string

Specifies the EIP type. Possible values are 5_bgp (dynamic BGP) and 5_sbgp (static BGP), the default value is 5_bgp. Changing this creates a new resource.

ip_address str

Specifies the EIP to be assigned. The value must be a valid IPv4 address in the available IP address range. The system automatically assigns an EIP if you do not specify it. Changing this creates a new resource.

ip_version int

Specifies the IP version, either 4 (default) or 6.

port_id str

The port ID which the EIP associated with.

type str

Specifies the EIP type. Possible values are 5_bgp (dynamic BGP) and 5_sbgp (static BGP), the default value is 5_bgp. Changing this creates a new resource.

ipAddress String

Specifies the EIP to be assigned. The value must be a valid IPv4 address in the available IP address range. The system automatically assigns an EIP if you do not specify it. Changing this creates a new resource.

ipVersion Number

Specifies the IP version, either 4 (default) or 6.

portId String

The port ID which the EIP associated with.

type String

Specifies the EIP type. Possible values are 5_bgp (dynamic BGP) and 5_sbgp (static BGP), the default value is 5_bgp. Changing this creates a new resource.

Import

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

 $ pulumi import huaweicloud:Vpc/eip:Eip eip_1 2c7f39f3-702b-48d1-940c-b50384177ee1

Package Details

Repository
https://github.com/huaweicloud/pulumi-huaweicloud
License
Apache-2.0
Notes

This Pulumi package is based on the huaweicloud Terraform Provider.