1. Packages
  2. Linode Provider
  3. API Docs
  4. NetworkingIpAssignment
Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi

linode.NetworkingIpAssignment

Explore with Pulumi AI

Manages the assignment of multiple IPv4 addresses and/or IPv6 ranges to multiple Linodes in a specified region.

For more information, see the corresponding API documentation.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  foobar:
    type: linode:NetworkingIpAssignment
    properties:
      region: us-mia
      assignments:
        - address: ${reservedIp1.address}
          linode_id: ${["terraform-web1"].id}
        - address: ${reservedIp2.address}
          linode_id: ${["terraform-web2"].id}
Copy

Create NetworkingIpAssignment Resource

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

Constructor syntax

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

@overload
def NetworkingIpAssignment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           region: Optional[str] = None,
                           assignments: Optional[Sequence[NetworkingIpAssignmentAssignmentArgs]] = None)
func NewNetworkingIpAssignment(ctx *Context, name string, args NetworkingIpAssignmentArgs, opts ...ResourceOption) (*NetworkingIpAssignment, error)
public NetworkingIpAssignment(string name, NetworkingIpAssignmentArgs args, CustomResourceOptions? opts = null)
public NetworkingIpAssignment(String name, NetworkingIpAssignmentArgs args)
public NetworkingIpAssignment(String name, NetworkingIpAssignmentArgs args, CustomResourceOptions options)
type: linode:NetworkingIpAssignment
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 This property is required. NetworkingIpAssignmentArgs
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 This property is required. NetworkingIpAssignmentArgs
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 This property is required. NetworkingIpAssignmentArgs
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 This property is required. NetworkingIpAssignmentArgs
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. NetworkingIpAssignmentArgs
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 networkingIpAssignmentResource = new Linode.NetworkingIpAssignment("networkingIpAssignmentResource", new()
{
    Region = "string",
    Assignments = new[]
    {
        new Linode.Inputs.NetworkingIpAssignmentAssignmentArgs
        {
            Address = "string",
            LinodeId = 0,
        },
    },
});
Copy
example, err := linode.NewNetworkingIpAssignment(ctx, "networkingIpAssignmentResource", &linode.NetworkingIpAssignmentArgs{
	Region: pulumi.String("string"),
	Assignments: linode.NetworkingIpAssignmentAssignmentArray{
		&linode.NetworkingIpAssignmentAssignmentArgs{
			Address:  pulumi.String("string"),
			LinodeId: pulumi.Int(0),
		},
	},
})
Copy
var networkingIpAssignmentResource = new NetworkingIpAssignment("networkingIpAssignmentResource", NetworkingIpAssignmentArgs.builder()
    .region("string")
    .assignments(NetworkingIpAssignmentAssignmentArgs.builder()
        .address("string")
        .linodeId(0)
        .build())
    .build());
Copy
networking_ip_assignment_resource = linode.NetworkingIpAssignment("networkingIpAssignmentResource",
    region="string",
    assignments=[{
        "address": "string",
        "linode_id": 0,
    }])
Copy
const networkingIpAssignmentResource = new linode.NetworkingIpAssignment("networkingIpAssignmentResource", {
    region: "string",
    assignments: [{
        address: "string",
        linodeId: 0,
    }],
});
Copy
type: linode:NetworkingIpAssignment
properties:
    assignments:
        - address: string
          linodeId: 0
    region: string
Copy

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

Region This property is required. string
The region where the IP addresses will be assigned.
Assignments List<NetworkingIpAssignmentAssignment>
A list of IP/Linode assignments to apply.
Region This property is required. string
The region where the IP addresses will be assigned.
Assignments []NetworkingIpAssignmentAssignmentArgs
A list of IP/Linode assignments to apply.
region This property is required. String
The region where the IP addresses will be assigned.
assignments List<NetworkingIpAssignmentAssignment>
A list of IP/Linode assignments to apply.
region This property is required. string
The region where the IP addresses will be assigned.
assignments NetworkingIpAssignmentAssignment[]
A list of IP/Linode assignments to apply.
region This property is required. str
The region where the IP addresses will be assigned.
assignments Sequence[NetworkingIpAssignmentAssignmentArgs]
A list of IP/Linode assignments to apply.
region This property is required. String
The region where the IP addresses will be assigned.
assignments List<Property Map>
A list of IP/Linode assignments to apply.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing NetworkingIpAssignment Resource

Get an existing NetworkingIpAssignment 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?: NetworkingIpAssignmentState, opts?: CustomResourceOptions): NetworkingIpAssignment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assignments: Optional[Sequence[NetworkingIpAssignmentAssignmentArgs]] = None,
        region: Optional[str] = None) -> NetworkingIpAssignment
func GetNetworkingIpAssignment(ctx *Context, name string, id IDInput, state *NetworkingIpAssignmentState, opts ...ResourceOption) (*NetworkingIpAssignment, error)
public static NetworkingIpAssignment Get(string name, Input<string> id, NetworkingIpAssignmentState? state, CustomResourceOptions? opts = null)
public static NetworkingIpAssignment get(String name, Output<String> id, NetworkingIpAssignmentState state, CustomResourceOptions options)
resources:  _:    type: linode:NetworkingIpAssignment    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:
Assignments List<NetworkingIpAssignmentAssignment>
A list of IP/Linode assignments to apply.
Region string
The region where the IP addresses will be assigned.
Assignments []NetworkingIpAssignmentAssignmentArgs
A list of IP/Linode assignments to apply.
Region string
The region where the IP addresses will be assigned.
assignments List<NetworkingIpAssignmentAssignment>
A list of IP/Linode assignments to apply.
region String
The region where the IP addresses will be assigned.
assignments NetworkingIpAssignmentAssignment[]
A list of IP/Linode assignments to apply.
region string
The region where the IP addresses will be assigned.
assignments Sequence[NetworkingIpAssignmentAssignmentArgs]
A list of IP/Linode assignments to apply.
region str
The region where the IP addresses will be assigned.
assignments List<Property Map>
A list of IP/Linode assignments to apply.
region String
The region where the IP addresses will be assigned.

Supporting Types

NetworkingIpAssignmentAssignment
, NetworkingIpAssignmentAssignmentArgs

Address This property is required. string
The IPv4 address or IPv6 range to assign.
LinodeId This property is required. int
The ID of the Linode to which the IP address will be assigned.
Address This property is required. string
The IPv4 address or IPv6 range to assign.
LinodeId This property is required. int
The ID of the Linode to which the IP address will be assigned.
address This property is required. String
The IPv4 address or IPv6 range to assign.
linodeId This property is required. Integer
The ID of the Linode to which the IP address will be assigned.
address This property is required. string
The IPv4 address or IPv6 range to assign.
linodeId This property is required. number
The ID of the Linode to which the IP address will be assigned.
address This property is required. str
The IPv4 address or IPv6 range to assign.
linode_id This property is required. int
The ID of the Linode to which the IP address will be assigned.
address This property is required. String
The IPv4 address or IPv6 range to assign.
linodeId This property is required. Number
The ID of the Linode to which the IP address will be assigned.

Import

Network IP assignments cannot be imported.

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

Package Details

Repository
Linode pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.