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.
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)
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
Eip
Bandwidth Args The bandwidth object.
-
Publicip
Eip
Publicip Args The elastic IP address object.
-
Auto
Pay string -
Auto
Renew string Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
Charging
Mode string 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 stringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
Period
Unit 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.
- Dictionary<string, string>
Specifies the key/value pairs to associate with the elastic IP.
-
Bandwidth
Eip
Bandwidth Args The bandwidth object.
-
Publicip
Eip
Publicip Args The elastic IP address object.
-
Auto
Pay string -
Auto
Renew string Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
Charging
Mode string 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 stringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
Period
Unit 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.
- map[string]string
Specifies the key/value pairs to associate with the elastic IP.
-
bandwidth
Eip
Bandwidth Args The bandwidth object.
-
publicip
Eip
Publicip Args The elastic IP address object.
-
auto
Pay String -
auto
Renew String Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
charging
Mode String 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 StringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
period
Unit 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.
- Map<String,String>
Specifies the key/value pairs to associate with the elastic IP.
-
bandwidth
Eip
Bandwidth Args The bandwidth object.
-
publicip
Eip
Publicip Args The elastic IP address object.
-
auto
Pay string -
auto
Renew string Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
charging
Mode string 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 stringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
period
Unit 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.
- {[key: string]: string}
Specifies the key/value pairs to associate with the elastic IP.
-
bandwidth
Eip
Bandwidth Args The bandwidth object.
-
publicip
Eip
Publicip Args 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_ strid 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_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.
- 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.
-
auto
Pay String -
auto
Renew String Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
charging
Mode String 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 StringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
period
Unit 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.
- 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.
-
Port
Id string The port ID which the EIP associated with.
-
Private
Ip 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.
-
Port
Id string The port ID which the EIP associated with.
-
Private
Ip 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.
-
port
Id String The port ID which the EIP associated with.
-
private
Ip 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.
-
port
Id string The port ID which the EIP associated with.
-
private
Ip 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.
-
port
Id String The port ID which the EIP associated with.
-
private
Ip 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.
- Address string
The IPv4 address of the EIP.
-
Auto
Pay string -
Auto
Renew string Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
Bandwidth
Eip
Bandwidth Args The bandwidth object.
-
Charging
Mode string 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 stringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
Period
Unit 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.-
Port
Id string The port ID which the EIP associated with.
-
Private
Ip string The private IP address bound to the EIP.
-
Publicip
Eip
Publicip Args 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.
- Dictionary<string, string>
Specifies the key/value pairs to associate with the elastic IP.
- Address string
The IPv4 address of the EIP.
-
Auto
Pay string -
Auto
Renew string Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
Bandwidth
Eip
Bandwidth Args The bandwidth object.
-
Charging
Mode string 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 stringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
Period
Unit 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.-
Port
Id string The port ID which the EIP associated with.
-
Private
Ip string The private IP address bound to the EIP.
-
Publicip
Eip
Publicip Args 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.
- map[string]string
Specifies the key/value pairs to associate with the elastic IP.
- address String
The IPv4 address of the EIP.
-
auto
Pay String -
auto
Renew String Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
bandwidth
Eip
Bandwidth Args The bandwidth object.
-
charging
Mode String 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 StringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
period
Unit 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.-
port
Id String The port ID which the EIP associated with.
-
private
Ip String The private IP address bound to the EIP.
-
publicip
Eip
Publicip Args 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.
- Map<String,String>
Specifies the key/value pairs to associate with the elastic IP.
- address string
The IPv4 address of the EIP.
-
auto
Pay string -
auto
Renew string Specifies whether auto renew is enabled. Valid values are true and false. Defaults to false. Changing this creates a new resource.
-
bandwidth
Eip
Bandwidth Args The bandwidth object.
-
charging
Mode string 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 stringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
period
Unit 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.-
port
Id string The port ID which the EIP associated with.
-
private
Ip string The private IP address bound to the EIP.
-
publicip
Eip
Publicip Args 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.
- {[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
Eip
Bandwidth Args 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_ strid 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_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
Eip
Publicip Args 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.
- Mapping[str, str]
Specifies the key/value pairs to associate with the elastic IP.
- address String
The IPv4 address of the EIP.
-
auto
Pay String -
auto
Renew 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.
-
charging
Mode String 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 StringId 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. Ifperiod_unit
is set to year, the value ranges from 1 to 3. This parameter is mandatory ifcharging_mode
is set to prePaid. Changing this creates a new resource.-
period
Unit 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.-
port
Id String The port ID which the EIP associated with.
-
private
Ip 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.
- Map<String>
Specifies the key/value pairs to associate with the elastic IP.
Supporting Types
EipBandwidth
- 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
-
Charge
Mode 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.
- 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
-
Charge
Mode 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.
- 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
-
charge
Mode 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.
- 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
-
charge
Mode 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.
- 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.
- 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
-
charge
Mode 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
-
Ip
Address 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.
-
Ip
Version int Specifies the IP version, either 4 (default) or 6.
-
Port
Id 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 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.
-
Ip
Version int Specifies the IP version, either 4 (default) or 6.
-
Port
Id 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 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.
-
ip
Version Integer Specifies the IP version, either 4 (default) or 6.
-
port
Id 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 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.
-
ip
Version number Specifies the IP version, either 4 (default) or 6.
-
port
Id 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.
-
ip
Address 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.
-
ip
Version Number Specifies the IP version, either 4 (default) or 6.
-
port
Id 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.