flexibleengine.VpcEipAssociate
Associates an EIP to a specified IP address or port.
Example Usage
Associate with a fixed IP
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const exampleEipAssociated = new flexibleengine.VpcEipAssociate("exampleEipAssociated", {
    publicIp: flexibleengine_vpc_eip.example_eip.address,
    networkId: flexibleengine_vpc_subnet_v1.example_subnet.id,
    fixedIp: "192.168.0.100",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_eip_associated = flexibleengine.VpcEipAssociate("exampleEipAssociated",
    public_ip=flexibleengine_vpc_eip["example_eip"]["address"],
    network_id=flexibleengine_vpc_subnet_v1["example_subnet"]["id"],
    fixed_ip="192.168.0.100")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.NewVpcEipAssociate(ctx, "exampleEipAssociated", &flexibleengine.VpcEipAssociateArgs{
			PublicIp:  pulumi.Any(flexibleengine_vpc_eip.Example_eip.Address),
			NetworkId: pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Id),
			FixedIp:   pulumi.String("192.168.0.100"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() => 
{
    var exampleEipAssociated = new Flexibleengine.VpcEipAssociate("exampleEipAssociated", new()
    {
        PublicIp = flexibleengine_vpc_eip.Example_eip.Address,
        NetworkId = flexibleengine_vpc_subnet_v1.Example_subnet.Id,
        FixedIp = "192.168.0.100",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcEipAssociate;
import com.pulumi.flexibleengine.VpcEipAssociateArgs;
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 exampleEipAssociated = new VpcEipAssociate("exampleEipAssociated", VpcEipAssociateArgs.builder()
            .publicIp(flexibleengine_vpc_eip.example_eip().address())
            .networkId(flexibleengine_vpc_subnet_v1.example_subnet().id())
            .fixedIp("192.168.0.100")
            .build());
    }
}
resources:
  exampleEipAssociated:
    type: flexibleengine:VpcEipAssociate
    properties:
      publicIp: ${flexibleengine_vpc_eip.example_eip.address}
      networkId: ${flexibleengine_vpc_subnet_v1.example_subnet.id}
      fixedIp: 192.168.0.100
Associate with a port
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const examplePort = flexibleengine.getNetworkingPort({
    networkId: flexibleengine_vpc_subnet_v1.example_subnet.id,
    fixedIp: "192.168.0.100",
});
const exampleEip = new flexibleengine.VpcEip("exampleEip", {
    publicip: {
        type: "5_bgp",
    },
    bandwidth: {
        name: "test",
        size: 5,
        shareType: "PER",
        chargeMode: "traffic",
    },
});
const associated = new flexibleengine.VpcEipAssociate("associated", {
    publicIp: exampleEip.address,
    portId: examplePort.then(examplePort => examplePort.id),
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_port = flexibleengine.get_networking_port(network_id=flexibleengine_vpc_subnet_v1["example_subnet"]["id"],
    fixed_ip="192.168.0.100")
example_eip = flexibleengine.VpcEip("exampleEip",
    publicip={
        "type": "5_bgp",
    },
    bandwidth={
        "name": "test",
        "size": 5,
        "share_type": "PER",
        "charge_mode": "traffic",
    })
associated = flexibleengine.VpcEipAssociate("associated",
    public_ip=example_eip.address,
    port_id=example_port.id)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		examplePort, err := flexibleengine.GetNetworkingPort(ctx, &flexibleengine.GetNetworkingPortArgs{
			NetworkId: pulumi.StringRef(flexibleengine_vpc_subnet_v1.Example_subnet.Id),
			FixedIp:   pulumi.StringRef("192.168.0.100"),
		}, nil)
		if err != nil {
			return err
		}
		exampleEip, err := flexibleengine.NewVpcEip(ctx, "exampleEip", &flexibleengine.VpcEipArgs{
			Publicip: &flexibleengine.VpcEipPublicipArgs{
				Type: pulumi.String("5_bgp"),
			},
			Bandwidth: &flexibleengine.VpcEipBandwidthArgs{
				Name:       pulumi.String("test"),
				Size:       pulumi.Float64(5),
				ShareType:  pulumi.String("PER"),
				ChargeMode: pulumi.String("traffic"),
			},
		})
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewVpcEipAssociate(ctx, "associated", &flexibleengine.VpcEipAssociateArgs{
			PublicIp: exampleEip.Address,
			PortId:   pulumi.String(examplePort.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() => 
{
    var examplePort = Flexibleengine.GetNetworkingPort.Invoke(new()
    {
        NetworkId = flexibleengine_vpc_subnet_v1.Example_subnet.Id,
        FixedIp = "192.168.0.100",
    });
    var exampleEip = new Flexibleengine.VpcEip("exampleEip", new()
    {
        Publicip = new Flexibleengine.Inputs.VpcEipPublicipArgs
        {
            Type = "5_bgp",
        },
        Bandwidth = new Flexibleengine.Inputs.VpcEipBandwidthArgs
        {
            Name = "test",
            Size = 5,
            ShareType = "PER",
            ChargeMode = "traffic",
        },
    });
    var associated = new Flexibleengine.VpcEipAssociate("associated", new()
    {
        PublicIp = exampleEip.Address,
        PortId = examplePort.Apply(getNetworkingPortResult => getNetworkingPortResult.Id),
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetNetworkingPortArgs;
import com.pulumi.flexibleengine.VpcEip;
import com.pulumi.flexibleengine.VpcEipArgs;
import com.pulumi.flexibleengine.inputs.VpcEipPublicipArgs;
import com.pulumi.flexibleengine.inputs.VpcEipBandwidthArgs;
import com.pulumi.flexibleengine.VpcEipAssociate;
import com.pulumi.flexibleengine.VpcEipAssociateArgs;
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) {
        final var examplePort = FlexibleengineFunctions.getNetworkingPort(GetNetworkingPortArgs.builder()
            .networkId(flexibleengine_vpc_subnet_v1.example_subnet().id())
            .fixedIp("192.168.0.100")
            .build());
        var exampleEip = new VpcEip("exampleEip", VpcEipArgs.builder()
            .publicip(VpcEipPublicipArgs.builder()
                .type("5_bgp")
                .build())
            .bandwidth(VpcEipBandwidthArgs.builder()
                .name("test")
                .size(5)
                .shareType("PER")
                .chargeMode("traffic")
                .build())
            .build());
        var associated = new VpcEipAssociate("associated", VpcEipAssociateArgs.builder()
            .publicIp(exampleEip.address())
            .portId(examplePort.applyValue(getNetworkingPortResult -> getNetworkingPortResult.id()))
            .build());
    }
}
resources:
  exampleEip:
    type: flexibleengine:VpcEip
    properties:
      publicip:
        type: 5_bgp
      bandwidth:
        name: test
        size: 5
        shareType: PER
        chargeMode: traffic
  associated:
    type: flexibleengine:VpcEipAssociate
    properties:
      publicIp: ${exampleEip.address}
      portId: ${examplePort.id}
variables:
  examplePort:
    fn::invoke:
      function: flexibleengine:getNetworkingPort
      arguments:
        networkId: ${flexibleengine_vpc_subnet_v1.example_subnet.id}
        fixedIp: 192.168.0.100
Create VpcEipAssociate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEipAssociate(name: string, args: VpcEipAssociateArgs, opts?: CustomResourceOptions);@overload
def VpcEipAssociate(resource_name: str,
                    args: VpcEipAssociateArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def VpcEipAssociate(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    public_ip: Optional[str] = None,
                    fixed_ip: Optional[str] = None,
                    network_id: Optional[str] = None,
                    port_id: Optional[str] = None,
                    region: Optional[str] = None,
                    timeouts: Optional[VpcEipAssociateTimeoutsArgs] = None,
                    vpc_eip_associate_id: Optional[str] = None)func NewVpcEipAssociate(ctx *Context, name string, args VpcEipAssociateArgs, opts ...ResourceOption) (*VpcEipAssociate, error)public VpcEipAssociate(string name, VpcEipAssociateArgs args, CustomResourceOptions? opts = null)
public VpcEipAssociate(String name, VpcEipAssociateArgs args)
public VpcEipAssociate(String name, VpcEipAssociateArgs args, CustomResourceOptions options)
type: flexibleengine:VpcEipAssociate
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 VpcEipAssociateArgs
- 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 VpcEipAssociateArgs
- 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 VpcEipAssociateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcEipAssociateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcEipAssociateArgs
- 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 vpcEipAssociateResource = new Flexibleengine.VpcEipAssociate("vpcEipAssociateResource", new()
{
    PublicIp = "string",
    FixedIp = "string",
    NetworkId = "string",
    PortId = "string",
    Region = "string",
    Timeouts = new Flexibleengine.Inputs.VpcEipAssociateTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    VpcEipAssociateId = "string",
});
example, err := flexibleengine.NewVpcEipAssociate(ctx, "vpcEipAssociateResource", &flexibleengine.VpcEipAssociateArgs{
	PublicIp:  pulumi.String("string"),
	FixedIp:   pulumi.String("string"),
	NetworkId: pulumi.String("string"),
	PortId:    pulumi.String("string"),
	Region:    pulumi.String("string"),
	Timeouts: &flexibleengine.VpcEipAssociateTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
	},
	VpcEipAssociateId: pulumi.String("string"),
})
var vpcEipAssociateResource = new VpcEipAssociate("vpcEipAssociateResource", VpcEipAssociateArgs.builder()
    .publicIp("string")
    .fixedIp("string")
    .networkId("string")
    .portId("string")
    .region("string")
    .timeouts(VpcEipAssociateTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .vpcEipAssociateId("string")
    .build());
vpc_eip_associate_resource = flexibleengine.VpcEipAssociate("vpcEipAssociateResource",
    public_ip="string",
    fixed_ip="string",
    network_id="string",
    port_id="string",
    region="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    vpc_eip_associate_id="string")
const vpcEipAssociateResource = new flexibleengine.VpcEipAssociate("vpcEipAssociateResource", {
    publicIp: "string",
    fixedIp: "string",
    networkId: "string",
    portId: "string",
    region: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    vpcEipAssociateId: "string",
});
type: flexibleengine:VpcEipAssociate
properties:
    fixedIp: string
    networkId: string
    portId: string
    publicIp: string
    region: string
    timeouts:
        create: string
        delete: string
    vpcEipAssociateId: string
VpcEipAssociate 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 VpcEipAssociate resource accepts the following input properties:
- PublicIp string
- Specifies the EIP address to associate. Changing this creates a new resource.
- FixedIp string
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- NetworkId string
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- PortId string
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- Region string
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Timeouts
VpcEip Associate Timeouts 
- VpcEip stringAssociate Id 
- The resource ID in UUID format.
- PublicIp string
- Specifies the EIP address to associate. Changing this creates a new resource.
- FixedIp string
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- NetworkId string
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- PortId string
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- Region string
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Timeouts
VpcEip Associate Timeouts Args 
- VpcEip stringAssociate Id 
- The resource ID in UUID format.
- publicIp String
- Specifies the EIP address to associate. Changing this creates a new resource.
- fixedIp String
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- networkId String
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- portId String
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- region String
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
VpcEip Associate Timeouts 
- vpcEip StringAssociate Id 
- The resource ID in UUID format.
- publicIp string
- Specifies the EIP address to associate. Changing this creates a new resource.
- fixedIp string
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- networkId string
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- portId string
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- region string
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
VpcEip Associate Timeouts 
- vpcEip stringAssociate Id 
- The resource ID in UUID format.
- public_ip str
- Specifies the EIP address to associate. Changing this creates a new resource.
- fixed_ip str
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- network_id str
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- port_id str
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- region str
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
VpcEip Associate Timeouts Args 
- vpc_eip_ strassociate_ id 
- The resource ID in UUID format.
- publicIp String
- Specifies the EIP address to associate. Changing this creates a new resource.
- fixedIp String
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- networkId String
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- portId String
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- region String
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts Property Map
- vpcEip StringAssociate Id 
- The resource ID in UUID format.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcEipAssociate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- MacAddress string
- The MAC address of the private IP.
- Status string
- The status of EIP, should be BOUND.
- Id string
- The provider-assigned unique ID for this managed resource.
- MacAddress string
- The MAC address of the private IP.
- Status string
- The status of EIP, should be BOUND.
- id String
- The provider-assigned unique ID for this managed resource.
- macAddress String
- The MAC address of the private IP.
- status String
- The status of EIP, should be BOUND.
- id string
- The provider-assigned unique ID for this managed resource.
- macAddress string
- The MAC address of the private IP.
- status string
- The status of EIP, should be BOUND.
- id str
- The provider-assigned unique ID for this managed resource.
- mac_address str
- The MAC address of the private IP.
- status str
- The status of EIP, should be BOUND.
- id String
- The provider-assigned unique ID for this managed resource.
- macAddress String
- The MAC address of the private IP.
- status String
- The status of EIP, should be BOUND.
Look up Existing VpcEipAssociate Resource
Get an existing VpcEipAssociate 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?: VpcEipAssociateState, opts?: CustomResourceOptions): VpcEipAssociate@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        fixed_ip: Optional[str] = None,
        mac_address: Optional[str] = None,
        network_id: Optional[str] = None,
        port_id: Optional[str] = None,
        public_ip: Optional[str] = None,
        region: Optional[str] = None,
        status: Optional[str] = None,
        timeouts: Optional[VpcEipAssociateTimeoutsArgs] = None,
        vpc_eip_associate_id: Optional[str] = None) -> VpcEipAssociatefunc GetVpcEipAssociate(ctx *Context, name string, id IDInput, state *VpcEipAssociateState, opts ...ResourceOption) (*VpcEipAssociate, error)public static VpcEipAssociate Get(string name, Input<string> id, VpcEipAssociateState? state, CustomResourceOptions? opts = null)public static VpcEipAssociate get(String name, Output<String> id, VpcEipAssociateState state, CustomResourceOptions options)resources:  _:    type: flexibleengine:VpcEipAssociate    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.
- FixedIp string
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- MacAddress string
- The MAC address of the private IP.
- NetworkId string
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- PortId string
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- PublicIp string
- Specifies the EIP address to associate. Changing this creates a new resource.
- Region string
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Status string
- The status of EIP, should be BOUND.
- Timeouts
VpcEip Associate Timeouts 
- VpcEip stringAssociate Id 
- The resource ID in UUID format.
- FixedIp string
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- MacAddress string
- The MAC address of the private IP.
- NetworkId string
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- PortId string
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- PublicIp string
- Specifies the EIP address to associate. Changing this creates a new resource.
- Region string
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Status string
- The status of EIP, should be BOUND.
- Timeouts
VpcEip Associate Timeouts Args 
- VpcEip stringAssociate Id 
- The resource ID in UUID format.
- fixedIp String
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- macAddress String
- The MAC address of the private IP.
- networkId String
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- portId String
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- publicIp String
- Specifies the EIP address to associate. Changing this creates a new resource.
- region String
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- status String
- The status of EIP, should be BOUND.
- timeouts
VpcEip Associate Timeouts 
- vpcEip StringAssociate Id 
- The resource ID in UUID format.
- fixedIp string
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- macAddress string
- The MAC address of the private IP.
- networkId string
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- portId string
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- publicIp string
- Specifies the EIP address to associate. Changing this creates a new resource.
- region string
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- status string
- The status of EIP, should be BOUND.
- timeouts
VpcEip Associate Timeouts 
- vpcEip stringAssociate Id 
- The resource ID in UUID format.
- fixed_ip str
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- mac_address str
- The MAC address of the private IP.
- network_id str
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- port_id str
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- public_ip str
- Specifies the EIP address to associate. Changing this creates a new resource.
- region str
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- status str
- The status of EIP, should be BOUND.
- timeouts
VpcEip Associate Timeouts Args 
- vpc_eip_ strassociate_ id 
- The resource ID in UUID format.
- fixedIp String
- Specifies a private IP address to associate with the EIP. Changing this creates a new resource.
- macAddress String
- The MAC address of the private IP.
- networkId String
- Specifies the ID of the VPC Subnet to which the fixed_ip belongs.
It is mandatory when fixed_ipis set. Changing this creates a new resource.
- portId String
- Specifies an existing port ID to associate with the EIP.
This parameter and fixed_ipare alternative. Changing this creates a new resource.
- publicIp String
- Specifies the EIP address to associate. Changing this creates a new resource.
- region String
- Specifies the region in which to associate the EIP. If omitted, the provider-level region will be used. Changing this creates a new resource.
- status String
- The status of EIP, should be BOUND.
- timeouts Property Map
- vpcEip StringAssociate Id 
- The resource ID in UUID format.
Supporting Types
VpcEipAssociateTimeouts, VpcEipAssociateTimeoutsArgs        
Import
EIP associations can be imported using the id of the EIP, e.g.
$ pulumi import flexibleengine:index/vpcEipAssociate:VpcEipAssociate eip 2c7f39f3-702b-48d1-940c-b50384177ee1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the flexibleengineTerraform Provider.
