ucloud.Eip
Explore with Pulumi AI
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)
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:
- Internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
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
). - Charge
Mode string - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - Charge
Type 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - Eip
Id 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 string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
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
). - Charge
Mode string - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - Charge
Type 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - Eip
Id 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 String - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
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
). - charge
Mode String - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - charge
Type 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - eip
Id 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 string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
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
). - charge
Mode string - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - charge
Type 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - eip
Id 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 andbgp
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:bandwidth
for 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 whendynamic
(pay by hour), the value is0
whenmonth
(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
).
- internet
Type String - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
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
). - charge
Mode String - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - charge
Type 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - eip
Id 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:
- Create
Time string - The time of creation for EIP, formatted in RFC3339 time string.
- Expire
Time string - The expiration time for EIP, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets List<EipIp Set> - It is a nested type which documented below.
- Public
Ip 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 andfreeze
as associating.
- Create
Time string - The time of creation for EIP, formatted in RFC3339 time string.
- Expire
Time string - The expiration time for EIP, formatted in RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets []EipIp Set - It is a nested type which documented below.
- Public
Ip 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 andfreeze
as associating.
- create
Time String - The time of creation for EIP, formatted in RFC3339 time string.
- expire
Time String - The expiration time for EIP, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Sets List<EipIp Set> - It is a nested type which documented below.
- public
Ip 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 andfreeze
as associating.
- create
Time string - The time of creation for EIP, formatted in RFC3339 time string.
- expire
Time string - The expiration time for EIP, formatted in RFC3339 time string.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Sets EipIp Set[] - It is a nested type which documented below.
- public
Ip 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 andfreeze
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[EipIp Set] - 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 andfreeze
as associating.
- create
Time String - The time of creation for EIP, formatted in RFC3339 time string.
- expire
Time String - The expiration time for EIP, formatted in RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Sets List<Property Map> - It is a nested type which documented below.
- public
Ip 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 andfreeze
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.
- 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
). - Charge
Mode string - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - Charge
Type 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
). - Create
Time 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - Eip
Id string - The ID of the resource with EIP attached.
- Expire
Time string - The expiration time for EIP, formatted in RFC3339 time string.
- Internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - Ip
Sets List<EipIp Set> - It is a nested type which documented below.
- Name string
- Public
Ip 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 andfreeze
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
). - Charge
Mode string - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - Charge
Type 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
). - Create
Time 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - Eip
Id string - The ID of the resource with EIP attached.
- Expire
Time string - The expiration time for EIP, formatted in RFC3339 time string.
- Internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - Ip
Sets []EipIp Set Args - It is a nested type which documented below.
- Name string
- Public
Ip 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 andfreeze
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
). - charge
Mode String - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - charge
Type 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
). - create
Time 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - eip
Id String - The ID of the resource with EIP attached.
- expire
Time String - The expiration time for EIP, formatted in RFC3339 time string.
- internet
Type String - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - ip
Sets List<EipIp Set> - It is a nested type which documented below.
- name String
- public
Ip 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 andfreeze
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
). - charge
Mode string - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - charge
Type 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
). - create
Time 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - eip
Id string - The ID of the resource with EIP attached.
- expire
Time string - The expiration time for EIP, formatted in RFC3339 time string.
- internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - ip
Sets EipIp Set[] - It is a nested type which documented below.
- name string
- public
Ip 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 andfreeze
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:bandwidth
for 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 whendynamic
(pay by hour), the value is0
whenmonth
(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 andbgp
as china mainland BGP IP. - ip_
sets Sequence[EipIp Set Args] - 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 andfreeze
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
). - charge
Mode String - Elastic IP charge mode. Possible values are:
traffic
as pay by traffic,bandwidth
as pay by bandwidth mode. (Default:bandwidth
for the Elastic IP). - charge
Type 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
). - create
Time 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 whendynamic
(pay by hour), the value is0
whenmonth
(pay by month) and the instance will be valid till the last day of that month. - eip
Id String - The ID of the resource with EIP attached.
- expire
Time String - The expiration time for EIP, formatted in RFC3339 time string.
- internet
Type String - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - ip
Sets List<Property Map> - It is a nested type which documented below.
- name String
- public
Ip 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 andfreeze
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
- Internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - Ip string
- Internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - Ip string
- internet
Type String - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - ip String
- internet
Type string - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - ip string
- internet_
type str - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
as china mainland BGP IP. - ip str
- internet
Type String - Type of Elastic IP routes. Possible values are:
international
as international BGP IP andbgp
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.