linode.ReservedIpAssignment
Explore with Pulumi AI
Create ReservedIpAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReservedIpAssignment(name: string, args: ReservedIpAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ReservedIpAssignment(resource_name: str,
args: ReservedIpAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReservedIpAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
linode_id: Optional[int] = None,
apply_immediately: Optional[bool] = None,
public: Optional[bool] = None,
rdns: Optional[str] = None)
func NewReservedIpAssignment(ctx *Context, name string, args ReservedIpAssignmentArgs, opts ...ResourceOption) (*ReservedIpAssignment, error)
public ReservedIpAssignment(string name, ReservedIpAssignmentArgs args, CustomResourceOptions? opts = null)
public ReservedIpAssignment(String name, ReservedIpAssignmentArgs args)
public ReservedIpAssignment(String name, ReservedIpAssignmentArgs args, CustomResourceOptions options)
type: linode:ReservedIpAssignment
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 ReservedIpAssignmentArgs
- 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 ReservedIpAssignmentArgs
- 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 ReservedIpAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReservedIpAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReservedIpAssignmentArgs
- 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 reservedIpAssignmentResource = new Linode.ReservedIpAssignment("reservedIpAssignmentResource", new()
{
Address = "string",
LinodeId = 0,
ApplyImmediately = false,
Public = false,
Rdns = "string",
});
example, err := linode.NewReservedIpAssignment(ctx, "reservedIpAssignmentResource", &linode.ReservedIpAssignmentArgs{
Address: pulumi.String("string"),
LinodeId: pulumi.Int(0),
ApplyImmediately: pulumi.Bool(false),
Public: pulumi.Bool(false),
Rdns: pulumi.String("string"),
})
var reservedIpAssignmentResource = new ReservedIpAssignment("reservedIpAssignmentResource", ReservedIpAssignmentArgs.builder()
.address("string")
.linodeId(0)
.applyImmediately(false)
.public_(false)
.rdns("string")
.build());
reserved_ip_assignment_resource = linode.ReservedIpAssignment("reservedIpAssignmentResource",
address="string",
linode_id=0,
apply_immediately=False,
public=False,
rdns="string")
const reservedIpAssignmentResource = new linode.ReservedIpAssignment("reservedIpAssignmentResource", {
address: "string",
linodeId: 0,
applyImmediately: false,
"public": false,
rdns: "string",
});
type: linode:ReservedIpAssignment
properties:
address: string
applyImmediately: false
linodeId: 0
public: false
rdns: string
ReservedIpAssignment 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 ReservedIpAssignment resource accepts the following input properties:
- Address string
- The resulting IPv4 address.
- Linode
Id int - The ID of the Linode to allocate an IPv4 address for.
- Apply
Immediately bool - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - Public bool
- Whether the IPv4 address is public or private.
- Rdns string
- The reverse DNS assigned to this address.
- Address string
- The resulting IPv4 address.
- Linode
Id int - The ID of the Linode to allocate an IPv4 address for.
- Apply
Immediately bool - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - Public bool
- Whether the IPv4 address is public or private.
- Rdns string
- The reverse DNS assigned to this address.
- address String
- The resulting IPv4 address.
- linode
Id Integer - The ID of the Linode to allocate an IPv4 address for.
- apply
Immediately Boolean - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - public_ Boolean
- Whether the IPv4 address is public or private.
- rdns String
- The reverse DNS assigned to this address.
- address string
- The resulting IPv4 address.
- linode
Id number - The ID of the Linode to allocate an IPv4 address for.
- apply
Immediately boolean - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - public boolean
- Whether the IPv4 address is public or private.
- rdns string
- The reverse DNS assigned to this address.
- address str
- The resulting IPv4 address.
- linode_
id int - The ID of the Linode to allocate an IPv4 address for.
- apply_
immediately bool - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - public bool
- Whether the IPv4 address is public or private.
- rdns str
- The reverse DNS assigned to this address.
- address String
- The resulting IPv4 address.
- linode
Id Number - The ID of the Linode to allocate an IPv4 address for.
- apply
Immediately Boolean - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - public Boolean
- Whether the IPv4 address is public or private.
- rdns String
- The reverse DNS assigned to this address.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReservedIpAssignment resource produces the following output properties:
- Gateway string
- The default gateway for this address
- Id string
- The provider-assigned unique ID for this managed resource.
- Prefix int
- The number of bits set in the subnet mask.
- Region string
- The region this IP resides in.
- Reserved bool
- The reservation status of the IP address
- Subnet
Mask string - The mask that separates host bits from network bits for this address.
- Type string
- The type of IP address.
- Vpc
Nat11s List<ReservedIp Assignment Vpc Nat11> - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- Gateway string
- The default gateway for this address
- Id string
- The provider-assigned unique ID for this managed resource.
- Prefix int
- The number of bits set in the subnet mask.
- Region string
- The region this IP resides in.
- Reserved bool
- The reservation status of the IP address
- Subnet
Mask string - The mask that separates host bits from network bits for this address.
- Type string
- The type of IP address.
- Vpc
Nat11s []ReservedIp Assignment Vpc Nat11 - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- gateway String
- The default gateway for this address
- id String
- The provider-assigned unique ID for this managed resource.
- prefix Integer
- The number of bits set in the subnet mask.
- region String
- The region this IP resides in.
- reserved Boolean
- The reservation status of the IP address
- subnet
Mask String - The mask that separates host bits from network bits for this address.
- type String
- The type of IP address.
- vpc
Nat11s List<ReservedIp Assignment Vpc Nat11> - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- gateway string
- The default gateway for this address
- id string
- The provider-assigned unique ID for this managed resource.
- prefix number
- The number of bits set in the subnet mask.
- region string
- The region this IP resides in.
- reserved boolean
- The reservation status of the IP address
- subnet
Mask string - The mask that separates host bits from network bits for this address.
- type string
- The type of IP address.
- vpc
Nat11s ReservedIp Assignment Vpc Nat11[] - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- gateway str
- The default gateway for this address
- id str
- The provider-assigned unique ID for this managed resource.
- prefix int
- The number of bits set in the subnet mask.
- region str
- The region this IP resides in.
- reserved bool
- The reservation status of the IP address
- subnet_
mask str - The mask that separates host bits from network bits for this address.
- type str
- The type of IP address.
- vpc_
nat11s Sequence[ReservedIp Assignment Vpc Nat11] - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- gateway String
- The default gateway for this address
- id String
- The provider-assigned unique ID for this managed resource.
- prefix Number
- The number of bits set in the subnet mask.
- region String
- The region this IP resides in.
- reserved Boolean
- The reservation status of the IP address
- subnet
Mask String - The mask that separates host bits from network bits for this address.
- type String
- The type of IP address.
- vpc
Nat11s List<Property Map> - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
Look up Existing ReservedIpAssignment Resource
Get an existing ReservedIpAssignment 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?: ReservedIpAssignmentState, opts?: CustomResourceOptions): ReservedIpAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
apply_immediately: Optional[bool] = None,
gateway: Optional[str] = None,
linode_id: Optional[int] = None,
prefix: Optional[int] = None,
public: Optional[bool] = None,
rdns: Optional[str] = None,
region: Optional[str] = None,
reserved: Optional[bool] = None,
subnet_mask: Optional[str] = None,
type: Optional[str] = None,
vpc_nat11s: Optional[Sequence[ReservedIpAssignmentVpcNat11Args]] = None) -> ReservedIpAssignment
func GetReservedIpAssignment(ctx *Context, name string, id IDInput, state *ReservedIpAssignmentState, opts ...ResourceOption) (*ReservedIpAssignment, error)
public static ReservedIpAssignment Get(string name, Input<string> id, ReservedIpAssignmentState? state, CustomResourceOptions? opts = null)
public static ReservedIpAssignment get(String name, Output<String> id, ReservedIpAssignmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Address string
- The resulting IPv4 address.
- Apply
Immediately bool - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - Gateway string
- The default gateway for this address
- Linode
Id int - The ID of the Linode to allocate an IPv4 address for.
- Prefix int
- The number of bits set in the subnet mask.
- Public bool
- Whether the IPv4 address is public or private.
- Rdns string
- The reverse DNS assigned to this address.
- Region string
- The region this IP resides in.
- Reserved bool
- The reservation status of the IP address
- Subnet
Mask string - The mask that separates host bits from network bits for this address.
- Type string
- The type of IP address.
- Vpc
Nat11s List<ReservedIp Assignment Vpc Nat11> - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- Address string
- The resulting IPv4 address.
- Apply
Immediately bool - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - Gateway string
- The default gateway for this address
- Linode
Id int - The ID of the Linode to allocate an IPv4 address for.
- Prefix int
- The number of bits set in the subnet mask.
- Public bool
- Whether the IPv4 address is public or private.
- Rdns string
- The reverse DNS assigned to this address.
- Region string
- The region this IP resides in.
- Reserved bool
- The reservation status of the IP address
- Subnet
Mask string - The mask that separates host bits from network bits for this address.
- Type string
- The type of IP address.
- Vpc
Nat11s []ReservedIp Assignment Vpc Nat11Args - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- address String
- The resulting IPv4 address.
- apply
Immediately Boolean - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - gateway String
- The default gateway for this address
- linode
Id Integer - The ID of the Linode to allocate an IPv4 address for.
- prefix Integer
- The number of bits set in the subnet mask.
- public_ Boolean
- Whether the IPv4 address is public or private.
- rdns String
- The reverse DNS assigned to this address.
- region String
- The region this IP resides in.
- reserved Boolean
- The reservation status of the IP address
- subnet
Mask String - The mask that separates host bits from network bits for this address.
- type String
- The type of IP address.
- vpc
Nat11s List<ReservedIp Assignment Vpc Nat11> - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- address string
- The resulting IPv4 address.
- apply
Immediately boolean - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - gateway string
- The default gateway for this address
- linode
Id number - The ID of the Linode to allocate an IPv4 address for.
- prefix number
- The number of bits set in the subnet mask.
- public boolean
- Whether the IPv4 address is public or private.
- rdns string
- The reverse DNS assigned to this address.
- region string
- The region this IP resides in.
- reserved boolean
- The reservation status of the IP address
- subnet
Mask string - The mask that separates host bits from network bits for this address.
- type string
- The type of IP address.
- vpc
Nat11s ReservedIp Assignment Vpc Nat11[] - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- address str
- The resulting IPv4 address.
- apply_
immediately bool - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - gateway str
- The default gateway for this address
- linode_
id int - The ID of the Linode to allocate an IPv4 address for.
- prefix int
- The number of bits set in the subnet mask.
- public bool
- Whether the IPv4 address is public or private.
- rdns str
- The reverse DNS assigned to this address.
- region str
- The region this IP resides in.
- reserved bool
- The reservation status of the IP address
- subnet_
mask str - The mask that separates host bits from network bits for this address.
- type str
- The type of IP address.
- vpc_
nat11s Sequence[ReservedIp Assignment Vpc Nat11Args] - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
- address String
- The resulting IPv4 address.
- apply
Immediately Boolean - If true, the instance will be rebooted to update network interfaces. This functionality is not affected by the
skip_implicit_reboots
provider argument. - gateway String
- The default gateway for this address
- linode
Id Number - The ID of the Linode to allocate an IPv4 address for.
- prefix Number
- The number of bits set in the subnet mask.
- public Boolean
- Whether the IPv4 address is public or private.
- rdns String
- The reverse DNS assigned to this address.
- region String
- The region this IP resides in.
- reserved Boolean
- The reservation status of the IP address
- subnet
Mask String - The mask that separates host bits from network bits for this address.
- type String
- The type of IP address.
- vpc
Nat11s List<Property Map> - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
Supporting Types
ReservedIpAssignmentVpcNat11, ReservedIpAssignmentVpcNat11Args
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.