alicloud.ecs.Eip
Explore with Pulumi AI
Provides an elastic IP resource.
DEPRECATED: This resource has been deprecated from version
1.126.0
. Please use new resource alicloud_eip_address.
NOTE: The resource only supports to create
PostPaid PayByTraffic
orPrePaid PayByBandwidth
elastic IP for international account. Otherwise, you will happened errorCOMMODITY.INVALID_COMPONENT
. Your account is international if you can use it to login in International Web Console.
NOTE: From version 1.10.1, this resource supports creating “PrePaid” EIP. In addition, it supports setting EIP name and description.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a new EIP.
const example = new alicloud.ecs.Eip("example", {
bandwidth: "10",
internetChargeType: "PayByBandwidth",
});
import pulumi
import pulumi_alicloud as alicloud
# Create a new EIP.
example = alicloud.ecs.Eip("example",
bandwidth="10",
internet_charge_type="PayByBandwidth")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new EIP.
_, err := ecs.NewEip(ctx, "example", &ecs.EipArgs{
Bandwidth: pulumi.String("10"),
InternetChargeType: pulumi.String("PayByBandwidth"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Create a new EIP.
var example = new AliCloud.Ecs.Eip("example", new()
{
Bandwidth = "10",
InternetChargeType = "PayByBandwidth",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.Eip;
import com.pulumi.alicloud.ecs.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) {
// Create a new EIP.
var example = new Eip("example", EipArgs.builder()
.bandwidth("10")
.internetChargeType("PayByBandwidth")
.build());
}
}
resources:
# Create a new EIP.
example:
type: alicloud:ecs:Eip
properties:
bandwidth: '10'
internetChargeType: PayByBandwidth
Module Support
You can use the existing eip module to create several EIP instances and associate them with other resources one-click, like ECS instances, SLB, Nat Gateway and so on.
Create Eip Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Eip(name: string, args?: EipArgs, opts?: CustomResourceOptions);
@overload
def Eip(resource_name: str,
args: Optional[EipArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Eip(resource_name: str,
opts: Optional[ResourceOptions] = None,
activity_id: Optional[str] = None,
address_name: Optional[str] = None,
allocation_id: Optional[str] = None,
auto_pay: Optional[bool] = None,
bandwidth: Optional[str] = None,
deletion_protection: Optional[bool] = None,
description: Optional[str] = None,
high_definition_monitor_log_status: Optional[str] = None,
instance_charge_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
ip_address: Optional[str] = None,
isp: Optional[str] = None,
log_project: Optional[str] = None,
log_store: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
netmode: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
pricing_cycle: Optional[str] = None,
public_ip_address_pool_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_protection_types: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
zone: Optional[str] = None)
func NewEip(ctx *Context, name string, args *EipArgs, opts ...ResourceOption) (*Eip, error)
public Eip(string name, EipArgs? args = null, CustomResourceOptions? opts = null)
type: alicloud:ecs:Eip
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. 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
This property is required. 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
This property is required. 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
This property is required. 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
This property is required. String - The unique name of the resource.
- args
This property is required. EipArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Eip Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Eip resource accepts the following input properties:
- Activity
Id string - Address
Name string - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Allocation
Id Changes to this property will trigger replacement.
- Auto
Pay bool - Bandwidth string
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- Deletion
Protection bool - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- Description string
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- High
Definition Monitor Log Status Changes to this property will trigger replacement.
- Instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - Internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - Ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- Isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - Log
Project string - Log
Store string - Mode string
- Name string
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - Netmode
Changes to this property will trigger replacement.
- Payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - Pricing
Cycle string - Public
Ip Address Pool Id Changes to this property will trigger replacement.
- Resource
Group stringId - The Id of resource group which the eip belongs.
- Security
Protection Types Changes to this property will trigger replacement.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zone
Changes to this property will trigger replacement.
- Activity
Id string - Address
Name string - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Allocation
Id Changes to this property will trigger replacement.
- Auto
Pay bool - Bandwidth string
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- Deletion
Protection bool - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- Description string
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- High
Definition Monitor Log Status Changes to this property will trigger replacement.
- Instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - Internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - Ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- Isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - Log
Project string - Log
Store string - Mode string
- Name string
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - Netmode
Changes to this property will trigger replacement.
- Payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - Pricing
Cycle string - Public
Ip Address Pool Id Changes to this property will trigger replacement.
- Resource
Group stringId - The Id of resource group which the eip belongs.
- Security
Protection Types Changes to this property will trigger replacement.
- map[string]string
- A mapping of tags to assign to the resource.
- Zone
Changes to this property will trigger replacement.
- activity
Id String - address
Name String - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation
Id Changes to this property will trigger replacement.
- auto
Pay Boolean - bandwidth String
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- deletion
Protection Boolean - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description String
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high
Definition Monitor Log Status Changes to this property will trigger replacement.
- instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log
Project String - log
Store String - mode String
- name String
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period Integer
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing
Cycle String - public
Ip Address Pool Id Changes to this property will trigger replacement.
- resource
Group StringId - The Id of resource group which the eip belongs.
- security
Protection Types Changes to this property will trigger replacement.
- Map<String,String>
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
- activity
Id string - address
Name string - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation
Id Changes to this property will trigger replacement.
- auto
Pay boolean - bandwidth string
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- deletion
Protection boolean - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description string
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high
Definition Monitor Log Status Changes to this property will trigger replacement.
- instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log
Project string - log
Store string - mode string
- name string
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing
Cycle string - public
Ip Address Pool Id Changes to this property will trigger replacement.
- resource
Group stringId - The Id of resource group which the eip belongs.
- security
Protection Types Changes to this property will trigger replacement.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
- activity_
id str - address_
name str - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation_
id Changes to this property will trigger replacement.
- auto_
pay bool - bandwidth str
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- deletion_
protection bool - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description str
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high_
definition_ monitor_ log_ status Changes to this property will trigger replacement.
- instance_
charge_ type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet_
charge_ type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip_
address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log_
project str - log_
store str - mode str
- name str
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment_
type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing_
cycle str - public_
ip_ address_ pool_ id Changes to this property will trigger replacement.
- resource_
group_ strid - The Id of resource group which the eip belongs.
- security_
protection_ types Changes to this property will trigger replacement.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
- activity
Id String - address
Name String - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation
Id Changes to this property will trigger replacement.
- auto
Pay Boolean - bandwidth String
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- deletion
Protection Boolean - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description String
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high
Definition Monitor Log Status Changes to this property will trigger replacement.
- instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log
Project String - log
Store String - mode String
- name String
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period Number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing
Cycle String - public
Ip Address Pool Id Changes to this property will trigger replacement.
- resource
Group StringId - The Id of resource group which the eip belongs.
- security
Protection Types Changes to this property will trigger replacement.
- Map<String>
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
Outputs
All input properties are implicitly available as output properties. Additionally, the Eip resource produces the following output properties:
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The EIP current status.
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The EIP current status.
- create
Time String - id String
- The provider-assigned unique ID for this managed resource.
- status String
- The EIP current status.
- create
Time string - id string
- The provider-assigned unique ID for this managed resource.
- status string
- The EIP current status.
- create_
time str - id str
- The provider-assigned unique ID for this managed resource.
- status str
- The EIP current status.
- create
Time String - id String
- The provider-assigned unique ID for this managed resource.
- status String
- The EIP current status.
Look up Existing Eip Resource
Get an existing Eip resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EipState, opts?: CustomResourceOptions): Eip
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
activity_id: Optional[str] = None,
address_name: Optional[str] = None,
allocation_id: Optional[str] = None,
auto_pay: Optional[bool] = None,
bandwidth: Optional[str] = None,
create_time: Optional[str] = None,
deletion_protection: Optional[bool] = None,
description: Optional[str] = None,
high_definition_monitor_log_status: Optional[str] = None,
instance_charge_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
ip_address: Optional[str] = None,
isp: Optional[str] = None,
log_project: Optional[str] = None,
log_store: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
netmode: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
pricing_cycle: Optional[str] = None,
public_ip_address_pool_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_protection_types: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zone: 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: alicloud:ecs:Eip get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Activity
Id string - Address
Name string - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Allocation
Id Changes to this property will trigger replacement.
- Auto
Pay bool - Bandwidth string
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- Create
Time string - Deletion
Protection bool - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- Description string
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- High
Definition Monitor Log Status Changes to this property will trigger replacement.
- Instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - Internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - Ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- Isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - Log
Project string - Log
Store string - Mode string
- Name string
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - Netmode
Changes to this property will trigger replacement.
- Payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - Pricing
Cycle string - Public
Ip Address Pool Id Changes to this property will trigger replacement.
- Resource
Group stringId - The Id of resource group which the eip belongs.
- Security
Protection Types Changes to this property will trigger replacement.
- Status string
- The EIP current status.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zone
Changes to this property will trigger replacement.
- Activity
Id string - Address
Name string - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- Allocation
Id Changes to this property will trigger replacement.
- Auto
Pay bool - Bandwidth string
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- Create
Time string - Deletion
Protection bool - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- Description string
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- High
Definition Monitor Log Status Changes to this property will trigger replacement.
- Instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - Internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - Ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- Isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - Log
Project string - Log
Store string - Mode string
- Name string
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - Netmode
Changes to this property will trigger replacement.
- Payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - Pricing
Cycle string - Public
Ip Address Pool Id Changes to this property will trigger replacement.
- Resource
Group stringId - The Id of resource group which the eip belongs.
- Security
Protection Types Changes to this property will trigger replacement.
- Status string
- The EIP current status.
- map[string]string
- A mapping of tags to assign to the resource.
- Zone
Changes to this property will trigger replacement.
- activity
Id String - address
Name String - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation
Id Changes to this property will trigger replacement.
- auto
Pay Boolean - bandwidth String
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- create
Time String - deletion
Protection Boolean - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description String
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high
Definition Monitor Log Status Changes to this property will trigger replacement.
- instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log
Project String - log
Store String - mode String
- name String
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period Integer
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing
Cycle String - public
Ip Address Pool Id Changes to this property will trigger replacement.
- resource
Group StringId - The Id of resource group which the eip belongs.
- security
Protection Types Changes to this property will trigger replacement.
- status String
- The EIP current status.
- Map<String,String>
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
- activity
Id string - address
Name string - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation
Id Changes to this property will trigger replacement.
- auto
Pay boolean - bandwidth string
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- create
Time string - deletion
Protection boolean - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description string
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high
Definition Monitor Log Status Changes to this property will trigger replacement.
- instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log
Project string - log
Store string - mode string
- name string
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing
Cycle string - public
Ip Address Pool Id Changes to this property will trigger replacement.
- resource
Group stringId - The Id of resource group which the eip belongs.
- security
Protection Types Changes to this property will trigger replacement.
- status string
- The EIP current status.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
- activity_
id str - address_
name str - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation_
id Changes to this property will trigger replacement.
- auto_
pay bool - bandwidth str
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- create_
time str - deletion_
protection bool - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description str
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high_
definition_ monitor_ log_ status Changes to this property will trigger replacement.
- instance_
charge_ type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet_
charge_ type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip_
address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log_
project str - log_
store str - mode str
- name str
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment_
type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing_
cycle str - public_
ip_ address_ pool_ id Changes to this property will trigger replacement.
- resource_
group_ strid - The Id of resource group which the eip belongs.
- security_
protection_ types Changes to this property will trigger replacement.
- status str
- The EIP current status.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
- activity
Id String - address
Name String - The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.
- allocation
Id Changes to this property will trigger replacement.
- auto
Pay Boolean - bandwidth String
- Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.
- create
Time String - deletion
Protection Boolean - Whether enable the deletion protection or not. Default value:
false
.- true: Enable deletion protection.
- false: Disable deletion protection.
- description String
- Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
- high
Definition Monitor Log Status Changes to this property will trigger replacement.
- instance
Charge Type Changes to this property will trigger replacement.
- (It has been deprecated from version 1.126.0 and using new attribute
payment_type
instead) Elastic IP instance charge type. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". - internet
Charge Type Changes to this property will trigger replacement.
- Internet charge type of the EIP, Valid values are
PayByBandwidth
,PayByTraffic
. Default toPayByBandwidth
. NOTE: From version1.7.1
to1.125.0
, it defaults toPayByTraffic
. It is only "PayByBandwidth" wheninstance_charge_type
is PrePaid. - ip
Address Changes to this property will trigger replacement.
- The elastic ip address
- isp
Changes to this property will trigger replacement.
- The line type of the Elastic IP instance. Default to
BGP
. Other type of the isp need to open a whitelist. - log
Project String - log
Store String - mode String
- name String
- It has been deprecated from version 1.126.0 and using new attribute
address_name
instead. - netmode
Changes to this property will trigger replacement.
- payment
Type Changes to this property will trigger replacement.
- The billing method of the EIP. Valid values:
Subscription
andPayAsYouGo
. Default value isPayAsYouGo
. - period Number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: The attributeperiod
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource. - pricing
Cycle String - public
Ip Address Pool Id Changes to this property will trigger replacement.
- resource
Group StringId - The Id of resource group which the eip belongs.
- security
Protection Types Changes to this property will trigger replacement.
- status String
- The EIP current status.
- Map<String>
- A mapping of tags to assign to the resource.
- zone
Changes to this property will trigger replacement.
Import
Elastic IP address can be imported using the id, e.g.
$ pulumi import alicloud:ecs/eip:Eip example eip-abc12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.