1. Packages
  2. Outscale Provider
  3. API Docs
  4. PublicIpLink
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.PublicIpLink

Explore with Pulumi AI

Manages a public IP link.

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

Required resources

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const publicIp01 = new outscale.PublicIp("publicIp01", {});
const vm01 = new outscale.Vm("vm01", {
    imageId: _var.image_id,
    vmType: _var.vm_type,
    keypairName: _var.keypair_name,
    securityGroupIds: [_var.security_group_id],
});
Copy
import pulumi
import pulumi_outscale as outscale

public_ip01 = outscale.PublicIp("publicIp01")
vm01 = outscale.Vm("vm01",
    image_id=var["image_id"],
    vm_type=var["vm_type"],
    keypair_name=var["keypair_name"],
    security_group_ids=[var["security_group_id"]])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewPublicIp(ctx, "publicIp01", nil)
		if err != nil {
			return err
		}
		_, err = outscale.NewVm(ctx, "vm01", &outscale.VmArgs{
			ImageId:     pulumi.Any(_var.Image_id),
			VmType:      pulumi.Any(_var.Vm_type),
			KeypairName: pulumi.Any(_var.Keypair_name),
			SecurityGroupIds: pulumi.StringArray{
				_var.Security_group_id,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var publicIp01 = new Outscale.PublicIp("publicIp01");

    var vm01 = new Outscale.Vm("vm01", new()
    {
        ImageId = @var.Image_id,
        VmType = @var.Vm_type,
        KeypairName = @var.Keypair_name,
        SecurityGroupIds = new[]
        {
            @var.Security_group_id,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.PublicIp;
import com.pulumi.outscale.Vm;
import com.pulumi.outscale.VmArgs;
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 publicIp01 = new PublicIp("publicIp01");

        var vm01 = new Vm("vm01", VmArgs.builder()
            .imageId(var_.image_id())
            .vmType(var_.vm_type())
            .keypairName(var_.keypair_name())
            .securityGroupIds(var_.security_group_id())
            .build());

    }
}
Copy
resources:
  publicIp01:
    type: outscale:PublicIp
  vm01:
    type: outscale:Vm
    properties:
      imageId: ${var.image_id}
      vmType: ${var.vm_type}
      keypairName: ${var.keypair_name}
      securityGroupIds:
        - ${var.security_group_id}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const publicIpLink01 = new outscale.PublicIpLink("publicIpLink01", {
    vmId: outscale_vm.vm01.vm_id,
    publicIp: outscale_public_ip.public_ip01.public_ip,
});
Copy
import pulumi
import pulumi_outscale as outscale

public_ip_link01 = outscale.PublicIpLink("publicIpLink01",
    vm_id=outscale_vm["vm01"]["vm_id"],
    public_ip=outscale_public_ip["public_ip01"]["public_ip"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewPublicIpLink(ctx, "publicIpLink01", &outscale.PublicIpLinkArgs{
			VmId:     pulumi.Any(outscale_vm.Vm01.Vm_id),
			PublicIp: pulumi.Any(outscale_public_ip.Public_ip01.Public_ip),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var publicIpLink01 = new Outscale.PublicIpLink("publicIpLink01", new()
    {
        VmId = outscale_vm.Vm01.Vm_id,
        PublicIp = outscale_public_ip.Public_ip01.Public_ip,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.PublicIpLink;
import com.pulumi.outscale.PublicIpLinkArgs;
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 publicIpLink01 = new PublicIpLink("publicIpLink01", PublicIpLinkArgs.builder()
            .vmId(outscale_vm.vm01().vm_id())
            .publicIp(outscale_public_ip.public_ip01().public_ip())
            .build());

    }
}
Copy
resources:
  publicIpLink01:
    type: outscale:PublicIpLink
    properties:
      vmId: ${outscale_vm.vm01.vm_id}
      publicIp: ${outscale_public_ip.public_ip01.public_ip}
Copy

Create PublicIpLink Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PublicIpLink(name: string, args?: PublicIpLinkArgs, opts?: CustomResourceOptions);
@overload
def PublicIpLink(resource_name: str,
                 args: Optional[PublicIpLinkArgs] = None,
                 opts: Optional[ResourceOptions] = None)

@overload
def PublicIpLink(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 allow_relink: Optional[bool] = None,
                 nic_id: Optional[str] = None,
                 private_ip: Optional[str] = None,
                 public_ip: Optional[str] = None,
                 public_ip_id: Optional[str] = None,
                 public_ip_link_id: Optional[str] = None,
                 timeouts: Optional[PublicIpLinkTimeoutsArgs] = None,
                 vm_id: Optional[str] = None)
func NewPublicIpLink(ctx *Context, name string, args *PublicIpLinkArgs, opts ...ResourceOption) (*PublicIpLink, error)
public PublicIpLink(string name, PublicIpLinkArgs? args = null, CustomResourceOptions? opts = null)
public PublicIpLink(String name, PublicIpLinkArgs args)
public PublicIpLink(String name, PublicIpLinkArgs args, CustomResourceOptions options)
type: outscale:PublicIpLink
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 PublicIpLinkArgs
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 PublicIpLinkArgs
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 PublicIpLinkArgs
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 PublicIpLinkArgs
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. PublicIpLinkArgs
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 publicIpLinkResource = new Outscale.PublicIpLink("publicIpLinkResource", new()
{
    AllowRelink = false,
    NicId = "string",
    PrivateIp = "string",
    PublicIp = "string",
    PublicIpId = "string",
    PublicIpLinkId = "string",
    Timeouts = new Outscale.Inputs.PublicIpLinkTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    VmId = "string",
});
Copy
example, err := outscale.NewPublicIpLink(ctx, "publicIpLinkResource", &outscale.PublicIpLinkArgs{
AllowRelink: pulumi.Bool(false),
NicId: pulumi.String("string"),
PrivateIp: pulumi.String("string"),
PublicIp: pulumi.String("string"),
PublicIpId: pulumi.String("string"),
PublicIpLinkId: pulumi.String("string"),
Timeouts: &.PublicIpLinkTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VmId: pulumi.String("string"),
})
Copy
var publicIpLinkResource = new PublicIpLink("publicIpLinkResource", PublicIpLinkArgs.builder()
    .allowRelink(false)
    .nicId("string")
    .privateIp("string")
    .publicIp("string")
    .publicIpId("string")
    .publicIpLinkId("string")
    .timeouts(PublicIpLinkTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .vmId("string")
    .build());
Copy
public_ip_link_resource = outscale.PublicIpLink("publicIpLinkResource",
    allow_relink=False,
    nic_id="string",
    private_ip="string",
    public_ip="string",
    public_ip_id="string",
    public_ip_link_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    vm_id="string")
Copy
const publicIpLinkResource = new outscale.PublicIpLink("publicIpLinkResource", {
    allowRelink: false,
    nicId: "string",
    privateIp: "string",
    publicIp: "string",
    publicIpId: "string",
    publicIpLinkId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    vmId: "string",
});
Copy
type: outscale:PublicIpLink
properties:
    allowRelink: false
    nicId: string
    privateIp: string
    publicIp: string
    publicIpId: string
    publicIpLinkId: string
    timeouts:
        create: string
        delete: string
    vmId: string
Copy

PublicIpLink 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 PublicIpLink resource accepts the following input properties:

AllowRelink bool
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
NicId string
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
PrivateIp string
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
PublicIp string
The public IP. This parameter is required unless you use the public_ip_id parameter.
PublicIpId string
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
PublicIpLinkId string
Timeouts PublicIpLinkTimeouts
VmId string
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
AllowRelink bool
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
NicId string
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
PrivateIp string
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
PublicIp string
The public IP. This parameter is required unless you use the public_ip_id parameter.
PublicIpId string
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
PublicIpLinkId string
Timeouts PublicIpLinkTimeoutsArgs
VmId string
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allowRelink Boolean
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
nicId String
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
privateIp String
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
publicIp String
The public IP. This parameter is required unless you use the public_ip_id parameter.
publicIpId String
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
publicIpLinkId String
timeouts PublicIpLinkTimeouts
vmId String
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allowRelink boolean
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
nicId string
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
privateIp string
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
publicIp string
The public IP. This parameter is required unless you use the public_ip_id parameter.
publicIpId string
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
publicIpLinkId string
timeouts PublicIpLinkTimeouts
vmId string
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allow_relink bool
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
nic_id str
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
private_ip str
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
public_ip str
The public IP. This parameter is required unless you use the public_ip_id parameter.
public_ip_id str
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
public_ip_link_id str
timeouts PublicIpLinkTimeoutsArgs
vm_id str
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allowRelink Boolean
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
nicId String
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
privateIp String
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
publicIp String
The public IP. This parameter is required unless you use the public_ip_id parameter.
publicIpId String
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
publicIpLinkId String
timeouts Property Map
vmId String
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
LinkPublicIpId string
(Net only) The ID representing the association of the public IP with the VM or the NIC.
NicAccountId string
RequestId string
Tags List<PublicIpLinkTag>
Id string
The provider-assigned unique ID for this managed resource.
LinkPublicIpId string
(Net only) The ID representing the association of the public IP with the VM or the NIC.
NicAccountId string
RequestId string
Tags []PublicIpLinkTag
id String
The provider-assigned unique ID for this managed resource.
linkPublicIpId String
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nicAccountId String
requestId String
tags List<PublicIpLinkTag>
id string
The provider-assigned unique ID for this managed resource.
linkPublicIpId string
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nicAccountId string
requestId string
tags PublicIpLinkTag[]
id str
The provider-assigned unique ID for this managed resource.
link_public_ip_id str
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nic_account_id str
request_id str
tags Sequence[PublicIpLinkTag]
id String
The provider-assigned unique ID for this managed resource.
linkPublicIpId String
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nicAccountId String
requestId String
tags List<Property Map>

Look up Existing PublicIpLink Resource

Get an existing PublicIpLink 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?: PublicIpLinkState, opts?: CustomResourceOptions): PublicIpLink
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allow_relink: Optional[bool] = None,
        link_public_ip_id: Optional[str] = None,
        nic_account_id: Optional[str] = None,
        nic_id: Optional[str] = None,
        private_ip: Optional[str] = None,
        public_ip: Optional[str] = None,
        public_ip_id: Optional[str] = None,
        public_ip_link_id: Optional[str] = None,
        request_id: Optional[str] = None,
        tags: Optional[Sequence[PublicIpLinkTagArgs]] = None,
        timeouts: Optional[PublicIpLinkTimeoutsArgs] = None,
        vm_id: Optional[str] = None) -> PublicIpLink
func GetPublicIpLink(ctx *Context, name string, id IDInput, state *PublicIpLinkState, opts ...ResourceOption) (*PublicIpLink, error)
public static PublicIpLink Get(string name, Input<string> id, PublicIpLinkState? state, CustomResourceOptions? opts = null)
public static PublicIpLink get(String name, Output<String> id, PublicIpLinkState state, CustomResourceOptions options)
resources:  _:    type: outscale:PublicIpLink    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.
The following state arguments are supported:
AllowRelink bool
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
LinkPublicIpId string
(Net only) The ID representing the association of the public IP with the VM or the NIC.
NicAccountId string
NicId string
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
PrivateIp string
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
PublicIp string
The public IP. This parameter is required unless you use the public_ip_id parameter.
PublicIpId string
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
PublicIpLinkId string
RequestId string
Tags List<PublicIpLinkTag>
Timeouts PublicIpLinkTimeouts
VmId string
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
AllowRelink bool
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
LinkPublicIpId string
(Net only) The ID representing the association of the public IP with the VM or the NIC.
NicAccountId string
NicId string
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
PrivateIp string
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
PublicIp string
The public IP. This parameter is required unless you use the public_ip_id parameter.
PublicIpId string
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
PublicIpLinkId string
RequestId string
Tags []PublicIpLinkTagArgs
Timeouts PublicIpLinkTimeoutsArgs
VmId string
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allowRelink Boolean
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
linkPublicIpId String
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nicAccountId String
nicId String
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
privateIp String
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
publicIp String
The public IP. This parameter is required unless you use the public_ip_id parameter.
publicIpId String
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
publicIpLinkId String
requestId String
tags List<PublicIpLinkTag>
timeouts PublicIpLinkTimeouts
vmId String
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allowRelink boolean
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
linkPublicIpId string
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nicAccountId string
nicId string
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
privateIp string
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
publicIp string
The public IP. This parameter is required unless you use the public_ip_id parameter.
publicIpId string
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
publicIpLinkId string
requestId string
tags PublicIpLinkTag[]
timeouts PublicIpLinkTimeouts
vmId string
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allow_relink bool
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
link_public_ip_id str
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nic_account_id str
nic_id str
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
private_ip str
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
public_ip str
The public IP. This parameter is required unless you use the public_ip_id parameter.
public_ip_id str
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
public_ip_link_id str
request_id str
tags Sequence[PublicIpLinkTagArgs]
timeouts PublicIpLinkTimeoutsArgs
vm_id str
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.
allowRelink Boolean
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
linkPublicIpId String
(Net only) The ID representing the association of the public IP with the VM or the NIC.
nicAccountId String
nicId String
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the vm_id parameter instead. You cannot specify both parameters at the same time.
privateIp String
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
publicIp String
The public IP. This parameter is required unless you use the public_ip_id parameter.
publicIpId String
The allocation ID of the public IP. This parameter is required unless you use the public_ip parameter.
publicIpLinkId String
requestId String
tags List<Property Map>
timeouts Property Map
vmId String
The ID of the VM.- In the public Cloud, this parameter is required.- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the nic_id parameter instead. You cannot specify both parameters at the same time.

Supporting Types

PublicIpLinkTag
, PublicIpLinkTagArgs

Key This property is required. string
Value This property is required. string
Key This property is required. string
Value This property is required. string
key This property is required. String
value This property is required. String
key This property is required. string
value This property is required. string
key This property is required. str
value This property is required. str
key This property is required. String
value This property is required. String

PublicIpLinkTimeouts
, PublicIpLinkTimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

A public IP link can be imported using the public IP or the public IP link ID. For example:

console

$ pulumi import outscale:index/publicIpLink:PublicIpLink ImportedPublicIpLink eipassoc-12345678
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.